Lines Matching refs:dest_buf
177 static void _JpegEncode(const CFX_DIBSource* pSource, FX_LPBYTE& dest_buf, FX_STRSIZE& dest_size, int quality, FX_LPCBYTE icc_buf, FX_DWORD icc_length)
194 dest_buf = FX_Alloc(FX_BYTE, dest_buf_length);
195 while (dest_buf == NULL) {
197 dest_buf = FX_Alloc(FX_BYTE, dest_buf_length);
199 FXSYS_memset32(dest_buf, 0, dest_buf_length);
204 dest.next_output_byte = dest_buf;
256 dest_buf = FX_Realloc(FX_BYTE, dest_buf, dest_buf_length + JPEG_BLOCK_SIZE);
257 if (dest_buf == NULL) {
261 dest.next_output_byte = dest_buf + dest_buf_length - dest.free_in_buffer;
570 FX_BOOL CCodec_JpegModule::Encode(const CFX_DIBSource* pSource, FX_LPBYTE& dest_buf, FX_STRSIZE& dest_size, int quality, FX_LPCBYTE icc_buf, FX_DWORD icc_length)
573 return m_pExtProvider->Encode(pSource, dest_buf, dest_size, quality, icc_buf, icc_length);
579 _JpegEncode(pSource, dest_buf, dest_size, quality, icc_buf, icc_length);
711 FX_BOOL CCodec_JpegModule::ReadScanline(void* pContext, unsigned char* dest_buf)
714 return m_pExtProvider->ReadScanline(pContext, dest_buf);
720 int nlines = jpeg_read_scanlines(&p->m_Info, &dest_buf, 1);