/external/pdfium/core/src/fxcodec/codec/ |
D | fx_codec_flate.cpp | 30 static void FPDFAPI_FlateCompress(unsigned char* dest_buf, in FPDFAPI_FlateCompress() argument 34 compress(dest_buf, dest_size, src_buf, src_size); in FPDFAPI_FlateCompress() 55 unsigned char* dest_buf, in FPDFAPI_FlateOutput() argument 57 ((z_stream*)context)->next_out = dest_buf; in FPDFAPI_FlateOutput() 64 FXSYS_memset(dest_buf + written, '\0', dest_size - written); in FPDFAPI_FlateOutput() 136 int CLZWDecoder::Decode(uint8_t* dest_buf, in Decode() argument 145 m_pOutput = dest_buf; in Decode() 256 uint8_t* dest_buf = FX_Alloc2D(uint8_t, row_size + 1, row_count); in PNG_PredictorEncode() local 259 uint8_t* pDestData = dest_buf; in PNG_PredictorEncode() 328 data_buf = dest_buf; in PNG_PredictorEncode() [all …]
|
D | fx_codec_fax.cpp | 99 void FaxFillBits(uint8_t* dest_buf, int columns, int startpos, int endpos) { in FaxFillBits() argument 116 dest_buf[first_byte] -= 1 << (7 - i); in FaxFillBits() 122 dest_buf[first_byte] -= 1 << (7 - i); in FaxFillBits() 125 dest_buf[last_byte] -= 1 << (7 - i); in FaxFillBits() 128 FXSYS_memset(dest_buf + first_byte + 1, 0, last_byte - first_byte - 1); in FaxFillBits() 287 uint8_t* dest_buf, in FaxG4GetRow() argument 329 FaxFillBits(dest_buf, columns, a0, a1); in FaxG4GetRow() 342 FaxFillBits(dest_buf, columns, a1, a2); in FaxG4GetRow() 356 FaxFillBits(dest_buf, columns, a0, b2); in FaxG4GetRow() 404 FaxFillBits(dest_buf, columns, a0, a1); in FaxG4GetRow() [all …]
|
D | fx_codec_jbig.cpp | 64 uint8_t* dest_buf, in StartDecode() argument 77 m_pJbig2Context->m_dest_buf = dest_buf; in StartDecode() 80 FXSYS_memset(dest_buf, 0, height * dest_pitch); in StartDecode() 87 int ret = m_pJbig2Context->m_pContext->getFirstPage(dest_buf, width, height, in StartDecode() 97 FX_DWORD* dword_buf = (FX_DWORD*)dest_buf; in StartDecode()
|
D | fx_codec_jpeg.cpp | 124 uint8_t*& dest_buf, in _JpegEncode() argument 155 dest_buf = nullptr; in _JpegEncode() 158 dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); in _JpegEncode() 160 while (!dest_buf && dest_buf_length > MIN_TRY_BUF_LEN) { in _JpegEncode() 162 dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); in _JpegEncode() 165 if (!dest_buf) { in _JpegEncode() 172 dest.next_output_byte = dest_buf; in _JpegEncode() 221 dest_buf = in _JpegEncode() 222 FX_Realloc(uint8_t, dest_buf, dest_buf_length + JPEG_BLOCK_SIZE); in _JpegEncode() 223 dest.next_output_byte = dest_buf + dest_buf_length - dest.free_in_buffer; in _JpegEncode() [all …]
|
D | codec_int.h | 29 uint8_t*& dest_buf, 33 uint8_t*& dest_buf, 122 uint8_t*& dest_buf, 147 uint8_t*& dest_buf, 155 uint8_t*& dest_buf, 159 uint8_t*& dest_buf, 182 uint8_t*& dest_buf, 202 FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf) override; 398 uint8_t* dest_buf,
|
D | fx_codec.cpp | 154 uint8_t*& dest_buf, in RunLengthEncode() argument 263 uint8_t*& dest_buf, in A85Encode() argument
|
D | fx_codec_jpx_opj.cpp | 668 bool Decode(uint8_t* dest_buf, 787 bool CJPX_Decoder::Decode(uint8_t* dest_buf, in Decode() argument 796 FXSYS_memset(dest_buf, 0xff, image->y1 * pitch); in Decode() 800 channel_bufs[i] = dest_buf + offsets[i]; in Decode()
|
/external/pdfium/core/src/fxge/dib/ |
D | fx_dib_convert.cpp | 256 FX_BOOL _ConvertBuffer_1bppMask2Gray(uint8_t* dest_buf, in _ConvertBuffer_1bppMask2Gray() argument 267 uint8_t* dest_scan = dest_buf + row * dest_pitch; in _ConvertBuffer_1bppMask2Gray() 279 FX_BOOL _ConvertBuffer_8bppMask2Gray(uint8_t* dest_buf, in _ConvertBuffer_8bppMask2Gray() argument 287 uint8_t* dest_scan = dest_buf + row * dest_pitch; in _ConvertBuffer_8bppMask2Gray() 293 FX_BOOL _ConvertBuffer_1bppPlt2Gray(uint8_t* dest_buf, in _ConvertBuffer_1bppPlt2Gray() argument 343 uint8_t* dest_scan = dest_buf + row * dest_pitch; in _ConvertBuffer_1bppPlt2Gray() 355 FX_BOOL _ConvertBuffer_8bppPlt2Gray(uint8_t* dest_buf, in _ConvertBuffer_8bppPlt2Gray() argument 399 uint8_t* dest_scan = dest_buf + row * dest_pitch; in _ConvertBuffer_8bppPlt2Gray() 407 FX_BOOL _ConvertBuffer_RgbOrCmyk2Gray(uint8_t* dest_buf, in _ConvertBuffer_RgbOrCmyk2Gray() argument 421 uint8_t* dest_scan = dest_buf + row * dest_pitch; in _ConvertBuffer_RgbOrCmyk2Gray() [all …]
|
D | fx_dib_transform.cpp | 195 uint8_t* dest_buf = pTransBitmap->GetBuffer(); in SwapXY() local 201 FXSYS_memset(dest_buf, 0xff, dest_pitch * result_height); in SwapXY() 206 uint8_t* dest_scan = dest_buf; in SwapXY() 227 uint8_t* dest_scan = dest_buf + dest_col * nBytes; in SwapXY() 257 dest_buf = pTransBitmap->m_pAlphaMask->GetBuffer(); in SwapXY() 262 uint8_t* dest_scan = dest_buf + dest_col; in SwapXY()
|
D | fx_dib_main.cpp | 16 uint8_t* dest_buf, 423 uint8_t* dest_buf = in TransferBitmap() local 426 if (!ConvertBuffer(dest_format, dest_buf, m_Pitch, width, height, in TransferBitmap() 1697 uint8_t* dest_buf = (uint8_t*)m_pBitmap->GetScanline(line); local 1702 if (dest_buf) { 1703 FXSYS_memcpy(dest_buf, scanline, m_pBitmap->GetPitch());
|
/external/pdfium/core/src/fpdfapi/fpdf_parser/ |
D | fpdf_parser_decode.cpp | 49 uint8_t*& dest_buf, in A85Decode() argument 52 dest_buf = NULL; in A85Decode() 79 dest_buf = FX_Alloc(uint8_t, zcount * 4 + (pos - zcount)); in A85Decode() 89 FXSYS_memset(dest_buf + dest_size, 0, 4); in A85Decode() 101 dest_buf[dest_size++] = (uint8_t)(res >> (3 - i) * 8); in A85Decode() 114 dest_buf[dest_size++] = (uint8_t)(res >> (3 - i) * 8); in A85Decode() 124 uint8_t*& dest_buf, in HexDecode() argument 131 dest_buf = FX_Alloc(uint8_t, i / 2 + 1); in HexDecode() 148 dest_buf[dest_size] = digit * 16; in HexDecode() 150 dest_buf[dest_size++] += digit; in HexDecode() [all …]
|
D | fpdf_parser_encrypt.cpp | 724 uint8_t* dest_buf, in CryptBlock() argument 727 FXSYS_memcpy(dest_buf, src_buf, src_size); in CryptBlock() 761 FXSYS_memcpy(dest_buf, iv, 16); in CryptBlock() 763 CRYPT_AESEncrypt(m_pAESContext, dest_buf + 16, src_buf, nblocks * 16); in CryptBlock() 768 CRYPT_AESEncrypt(m_pAESContext, dest_buf + nblocks * 16 + 16, padding, in CryptBlock() 773 CRYPT_AESDecrypt(m_pAESContext, dest_buf, src_buf + 16, src_size - 16); in CryptBlock() 775 dest_size -= dest_buf[dest_size - 1]; in CryptBlock() 779 if (dest_buf != src_buf) { in CryptBlock() 780 FXSYS_memcpy(dest_buf, src_buf, src_size); in CryptBlock() 782 CRYPT_ArcFourCryptBlock(dest_buf, dest_size, realkey, realkeylen); in CryptBlock() [all …]
|
D | fpdf_parser_utility.cpp | 327 FX_CHAR* dest_buf = res.GetBuffer(dest_len); in PDF_NameEncode() local 333 dest_buf[dest_len++] = '#'; in PDF_NameEncode() 334 dest_buf[dest_len++] = "0123456789ABCDEF"[ch / 16]; in PDF_NameEncode() 335 dest_buf[dest_len++] = "0123456789ABCDEF"[ch % 16]; in PDF_NameEncode() 337 dest_buf[dest_len++] = ch; in PDF_NameEncode() 340 dest_buf[dest_len] = 0; in PDF_NameEncode()
|
/external/pdfium/core/src/fpdfapi/fpdf_edit/ |
D | fpdf_edit_image.cpp | 122 uint8_t* dest_buf = NULL; in SetImage() local 266 _JBIG2EncodeBitmap(pDict, pBitmap, m_pDocument, dest_buf, dest_size, in SetImage() 271 _JBIG2EncodeBitmap(pDict, pBitmap, m_pDocument, dest_buf, dest_size, in SetImage() 282 FX_Free(dest_buf); in SetImage() 283 dest_buf = NULL; in SetImage() 307 dest_buf, dest_size); in SetImage() 311 dest_buf, dest_size); in SetImage() 316 pFileWrite->WriteBlock(dest_buf, dest_size); in SetImage() 317 FX_Free(dest_buf); in SetImage() 318 dest_buf = NULL; in SetImage() [all …]
|
/external/pdfium/core/src/fpdfapi/fpdf_render/ |
D | fpdf_render_image.cpp | 170 void CPDF_DIBTransferFunc::TranslateScanline(uint8_t* dest_buf, in TranslateScanline() argument 180 *dest_buf++ = b1; in TranslateScanline() 181 *dest_buf++ = g1; in TranslateScanline() 182 *dest_buf++ = r1; in TranslateScanline() 184 *dest_buf++ = b0; in TranslateScanline() 185 *dest_buf++ = g0; in TranslateScanline() 186 *dest_buf++ = r0; in TranslateScanline() 189 dest_buf++; in TranslateScanline() 198 *dest_buf++ = m1; in TranslateScanline() 200 *dest_buf++ = m0; in TranslateScanline() [all …]
|
D | render_int.h | 605 void TranslateScanline(uint8_t* dest_buf, 607 void TranslateDownSamples(uint8_t* dest_buf,
|
/external/pdfium/core/include/fpdfapi/ |
D | fpdf_parser.h | 694 CFX_BinaryBuf& dest_buf) = 0; 696 virtual FX_BOOL DecryptFinish(void* context, CFX_BinaryBuf& dest_buf) = 0; 707 uint8_t* dest_buf, 725 CFX_BinaryBuf& dest_buf) override; 726 FX_BOOL DecryptFinish(void* context, CFX_BinaryBuf& dest_buf) override; 735 uint8_t* dest_buf, 746 uint8_t* dest_buf, 752 CFX_BinaryBuf& dest_buf, 755 CFX_BinaryBuf& dest_buf, 829 uint8_t*& dest_buf, [all …]
|
/external/pdfium/core/include/fxcodec/ |
D | fx_codec.h | 103 uint8_t*& dest_buf, 107 uint8_t*& dest_buf, 164 uint8_t*& dest_buf, 172 uint8_t*& dest_buf, 176 uint8_t*& dest_buf, 198 uint8_t*& dest_buf, 223 uint8_t*& dest_buf, 252 virtual FX_BOOL ReadScanline(void* pContext, uint8_t* dest_buf) = 0; 420 uint8_t* dest_buf, 553 uint8_t* dest_buf,
|
D | fx_codec_flate.h | 20 unsigned char* dest_buf,
|
/external/pdfium/core/src/fxge/ge/ |
D | fx_ge_ps.cpp | 276 uint8_t*& dest_buf, in FaxCompressData() argument 281 dest_buf, dest_size)) { in FaxCompressData() 284 dest_buf = src_buf; in FaxCompressData() 301 uint8_t* dest_buf = NULL; in PSCompressData() local 305 pEncoders->GetFlateModule()->Encode(src_buf, src_size, dest_buf, in PSCompressData() 312 dest_buf, dest_size)) { in PSCompressData() 317 output_buf = dest_buf; in PSCompressData() 321 FX_Free(dest_buf); in PSCompressData() 689 uint8_t* dest_buf; in WritePSBinary() local 693 pEncoders->GetBasicModule()->A85Encode(data, len, dest_buf, dest_size)) { in WritePSBinary() [all …]
|
/external/pdfium/core/src/fpdfapi/fpdf_page/ |
D | fpdf_page_parser_old.cpp | 251 uint8_t*& dest_buf, in _DecodeAllScanlines() argument 265 dest_buf = FX_Alloc2D(uint8_t, pitch, height); in _DecodeAllScanlines() 272 FXSYS_memcpy(dest_buf + row * pitch, pLine, pitch); in _DecodeAllScanlines() 291 uint8_t*& dest_buf, in PDF_DecodeInlineStream() argument 296 return _DecodeAllScanlines(pDecoder, dest_buf, dest_size); in PDF_DecodeInlineStream() 299 return A85Decode(src_buf, limit, dest_buf, dest_size); in PDF_DecodeInlineStream() 302 return HexDecode(src_buf, limit, dest_buf, dest_size); in PDF_DecodeInlineStream() 306 dest_buf, dest_size); in PDF_DecodeInlineStream() 309 return FPDFAPI_FlateOrLZWDecode(TRUE, src_buf, limit, pParam, 0, dest_buf, in PDF_DecodeInlineStream() 317 return _DecodeAllScanlines(pDecoder, dest_buf, dest_size); in PDF_DecodeInlineStream() [all …]
|
D | fpdf_page_colors.cpp | 1357 void CPDF_ColorSpace::TranslateImageLine(uint8_t* dest_buf, in TranslateImageLine() argument 1374 *dest_buf++ = (int32_t)(B * 255); in TranslateImageLine() 1375 *dest_buf++ = (int32_t)(G * 255); in TranslateImageLine() 1376 *dest_buf++ = (int32_t)(R * 255); in TranslateImageLine()
|
/external/pdfium/core/src/fxge/win32/ |
D | fx_win32_print.cpp | 181 uint8_t* dest_buf = pTempBitmap->GetBuffer(); in Transform1bppBitmap() local 183 FXSYS_memset(dest_buf, pSrc->IsAlphaMask() ? 0 : 0xff, in Transform1bppBitmap() 187 uint8_t* dest_scan = dest_buf + dest_y * dest_pitch; in Transform1bppBitmap() 204 uint8_t* dest_scan = dest_buf + dest_y * dest_pitch; in Transform1bppBitmap()
|
/external/pdfium/core/src/fxcrt/ |
D | fx_basic_wstring.cpp | 1004 FX_CHAR* dest_buf = bytestr.GetBuffer(dest_len); in _DefMap_GetByteString() local 1005 FXSYS_WideCharToMultiByte(codepage, 0, widestr.c_str(), src_len, dest_buf, in _DefMap_GetByteString() 1020 FX_WCHAR* dest_buf = widestr.GetBuffer(dest_len); in _DefMap_GetWideString() local 1021 FXSYS_MultiByteToWideChar(codepage, 0, bytestr, src_len, dest_buf, dest_len); in _DefMap_GetWideString()
|
/external/pdfium/core/include/fxge/ |
D | fx_dib.h | 425 virtual void TranslateScanline(uint8_t* dest_buf, 428 virtual void TranslateDownSamples(uint8_t* dest_buf,
|