/external/pdfium/core/fxcodec/codec/ |
D | fx_codec_a85_unittest.cpp | 15 uint8_t* dest_buf = nullptr; in TEST() local 23 EXPECT_FALSE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, nullptr)); in TEST() 25 EXPECT_FALSE(pEncoders->A85Encode(src_buf, 0, &dest_buf, &dest_size)); in TEST() 26 EXPECT_FALSE(pEncoders->A85Encode(nullptr, src_size, &dest_buf, &dest_size)); in TEST() 33 uint8_t* dest_buf = nullptr; in TEST() local 41 EXPECT_TRUE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, &dest_size)); in TEST() 50 EXPECT_EQ(expected_out[i], dest_buf[i]) << " at " << i; in TEST() 51 FX_Free(dest_buf); in TEST() 58 uint8_t* dest_buf = nullptr; in TEST() local 67 pEncoders->A85Encode(src_buf_1leftover, src_size, &dest_buf, &dest_size)); in TEST() [all …]
|
D | fx_codec_rle_unittest.cpp | 16 uint8_t* dest_buf = nullptr; in TEST() local 25 pEncoders->RunLengthEncode(src_buf, src_size, &dest_buf, nullptr)); in TEST() 28 EXPECT_FALSE(pEncoders->RunLengthEncode(src_buf, 0, &dest_buf, &dest_size)); in TEST() 30 pEncoders->RunLengthEncode(nullptr, src_size, &dest_buf, &dest_size)); in TEST() 36 uint8_t* dest_buf = nullptr; in TEST() local 44 pEncoders->RunLengthEncode(src_buf, src_size, &dest_buf, &dest_size)); in TEST() 46 EXPECT_EQ(0, dest_buf[0]); in TEST() 47 EXPECT_EQ(1, dest_buf[1]); in TEST() 48 EXPECT_EQ(128, dest_buf[2]); in TEST() 50 FX_Free(dest_buf); in TEST() [all …]
|
D | fx_codec_fax.cpp | 108 void FaxFillBits(uint8_t* dest_buf, int columns, int startpos, int endpos) { in FaxFillBits() argument 118 dest_buf[first_byte] -= 1 << (7 - i); in FaxFillBits() 123 dest_buf[first_byte] -= 1 << (7 - i); in FaxFillBits() 125 dest_buf[last_byte] -= 1 << (7 - i); in FaxFillBits() 128 memset(dest_buf + first_byte + 1, 0, last_byte - first_byte - 1); in FaxFillBits() 281 uint8_t* dest_buf, in FaxG4GetRow() argument 324 FaxFillBits(dest_buf, columns, a0, a1); in FaxG4GetRow() 338 FaxFillBits(dest_buf, columns, a1, a2); in FaxG4GetRow() 351 FaxFillBits(dest_buf, columns, a0, b2); in FaxG4GetRow() 390 FaxFillBits(dest_buf, columns, a0, a1); in FaxG4GetRow() [all …]
|
D | fx_codec_flate.cpp | 52 bool FlateCompress(unsigned char* dest_buf, in FlateCompress() argument 56 return compress(dest_buf, dest_size, src_buf, src_size) == Z_OK; in FlateCompress() 77 unsigned char* dest_buf, in FlateOutput() argument 79 static_cast<z_stream*>(context)->next_out = dest_buf; in FlateOutput() 89 memset(dest_buf + written, '\0', dest_size - written); in FlateOutput() 158 int CLZWDecoder::Decode(uint8_t* dest_buf, in Decode() argument 167 m_pOutput = dest_buf; in Decode() 268 uint8_t* dest_buf = FX_Alloc2D(uint8_t, row_size + 1, row_count); in PNG_PredictorEncode() local 271 uint8_t* pDestData = dest_buf; in PNG_PredictorEncode() 285 *data_buf = dest_buf; in PNG_PredictorEncode() [all …]
|
D | fx_codec.cpp | 1388 uint8_t** dest_buf, in RunLengthEncode() argument 1391 if (!src_buf || !dest_buf || !dest_size || src_size == 0) in RunLengthEncode() 1396 *dest_buf = FX_Alloc(uint8_t, 3); in RunLengthEncode() 1397 (*dest_buf)[0] = 0; in RunLengthEncode() 1398 (*dest_buf)[1] = src_buf[0]; in RunLengthEncode() 1399 (*dest_buf)[2] = 128; in RunLengthEncode() 1408 *dest_buf = FX_Alloc(uint8_t, est_size); in RunLengthEncode() 1411 uint8_t* out = *dest_buf; in RunLengthEncode() 1462 *dest_size = out + 1 - *dest_buf; in RunLengthEncode() 1468 uint8_t** dest_buf, in A85Encode() argument [all …]
|
D | fx_codec_jbig.cpp | 49 uint8_t* dest_buf, in StartDecode() argument 61 pJbig2Context->m_dest_buf = dest_buf; in StartDecode() 63 memset(dest_buf, 0, height * dest_pitch); in StartDecode() 67 int ret = pJbig2Context->m_pContext->getFirstPage(dest_buf, width, height, in StartDecode()
|
D | ccodec_flatemodule.h | 37 uint8_t** dest_buf, 42 uint8_t** dest_buf, 47 uint8_t** dest_buf,
|
D | fx_codec_jpeg.cpp | 484 unsigned char* dest_buf) { argument 486 unsigned int nlines = jpeg_read_scanlines(&ctx->m_Info, &dest_buf, 1); 505 uint8_t** dest_buf, argument 531 *dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); 533 while (!(*dest_buf) && dest_buf_length > MIN_TRY_BUF_LEN) { 535 *dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); 537 if (!(*dest_buf)) 544 dest.next_output_byte = *dest_buf; 589 *dest_buf = 590 FX_Realloc(uint8_t, *dest_buf, dest_buf_length + JPEG_BLOCK_SIZE); [all …]
|
D | ccodec_basicmodule.h | 27 uint8_t** dest_buf, 31 uint8_t** dest_buf,
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_dibtransferfunc.cpp | 41 std::vector<uint8_t>* dest_buf) const { in TranslateScanline() 54 (*dest_buf)[index++] = b1; in TranslateScanline() 55 (*dest_buf)[index++] = g1; in TranslateScanline() 56 (*dest_buf)[index++] = r1; in TranslateScanline() 58 (*dest_buf)[index++] = b0; in TranslateScanline() 59 (*dest_buf)[index++] = g0; in TranslateScanline() 60 (*dest_buf)[index++] = r0; in TranslateScanline() 74 (*dest_buf)[index++] = m1; in TranslateScanline() 76 (*dest_buf)[index++] = m0; in TranslateScanline() 86 (*dest_buf)[index++] = m_RampB[FXARGB_R(src_argb)]; in TranslateScanline() [all …]
|
D | cpdf_dibtransferfunc.h | 29 std::vector<uint8_t>* dest_buf) const override; 30 void TranslateDownSamples(uint8_t* dest_buf,
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_crypto_handler.cpp | 53 uint8_t* dest_buf, in CryptBlock() argument 56 memcpy(dest_buf, src_buf, src_size); in CryptBlock() 85 memcpy(dest_buf, iv, 16); in CryptBlock() 87 CRYPT_AESEncrypt(m_pAESContext.get(), dest_buf + 16, src_buf, in CryptBlock() 92 CRYPT_AESEncrypt(m_pAESContext.get(), dest_buf + nblocks * 16 + 16, in CryptBlock() 97 CRYPT_AESDecrypt(m_pAESContext.get(), dest_buf, src_buf + 16, in CryptBlock() 100 dest_size -= dest_buf[dest_size - 1]; in CryptBlock() 104 if (dest_buf != src_buf) { in CryptBlock() 105 memcpy(dest_buf, src_buf, src_size); in CryptBlock() 107 CRYPT_ArcFourCryptBlock(dest_buf, dest_size, realkey, realkeylen); in CryptBlock() [all …]
|
D | fpdf_parser_decode.cpp | 83 uint8_t** dest_buf, in A85Decode() argument 86 *dest_buf = nullptr; in A85Decode() 113 *dest_buf = FX_Alloc(uint8_t, zcount * 4 + space_for_non_zeroes); in A85Decode() 123 memset(*dest_buf + *dest_size, 0, 4); in A85Decode() 141 (*dest_buf)[(*dest_size)++] = static_cast<uint8_t>(res >> (3 - i) * 8); in A85Decode() 151 (*dest_buf)[(*dest_size)++] = static_cast<uint8_t>(res >> (3 - i) * 8); in A85Decode() 160 uint8_t** dest_buf, in HexDecode() argument 164 *dest_buf = nullptr; in HexDecode() 173 *dest_buf = FX_Alloc(uint8_t, i / 2 + 1); in HexDecode() 189 (*dest_buf)[*dest_size] = digit * 16; in HexDecode() [all …]
|
D | fpdf_parser_decode.h | 31 uint8_t** dest_buf, 39 uint8_t** dest_buf, 44 uint8_t** dest_buf, 49 uint8_t** dest_buf, 70 uint8_t** dest_buf, 75 uint8_t** dest_buf, 83 uint8_t** dest_buf, 91 uint8_t** dest_buf,
|
D | cpdf_crypto_handler.h | 41 uint8_t* dest_buf, 53 CFX_BinaryBuf& dest_buf); 54 bool DecryptFinish(void* context, CFX_BinaryBuf& dest_buf); 62 uint8_t* dest_buf, 68 CFX_BinaryBuf& dest_buf, 70 bool CryptFinish(void* context, CFX_BinaryBuf& dest_buf, bool bEncrypt);
|
D | fpdf_parser_utility.cpp | 135 char* dest_buf = res.GetBuffer(dest_len); in PDF_NameEncode() local 141 dest_buf[dest_len++] = '#'; in PDF_NameEncode() 142 FXSYS_IntToTwoHexChars(ch, dest_buf + dest_len); in PDF_NameEncode() 145 dest_buf[dest_len++] = ch; in PDF_NameEncode() 148 dest_buf[dest_len] = 0; in PDF_NameEncode()
|
/external/pdfium/core/fxge/dib/ |
D | cfx_dibsource.cpp | 101 void ConvertBuffer_1bppMask2Gray(uint8_t* dest_buf, in ConvertBuffer_1bppMask2Gray() argument 112 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_1bppMask2Gray() 123 void ConvertBuffer_8bppMask2Gray(uint8_t* dest_buf, in ConvertBuffer_8bppMask2Gray() argument 131 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_8bppMask2Gray() 137 void ConvertBuffer_1bppPlt2Gray(uint8_t* dest_buf, in ConvertBuffer_1bppPlt2Gray() argument 171 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_1bppPlt2Gray() 182 void ConvertBuffer_8bppPlt2Gray(uint8_t* dest_buf, in ConvertBuffer_8bppPlt2Gray() argument 209 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_8bppPlt2Gray() 216 void ConvertBuffer_RgbOrCmyk2Gray(uint8_t* dest_buf, in ConvertBuffer_RgbOrCmyk2Gray() argument 226 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_RgbOrCmyk2Gray() [all …]
|
D | cfx_bitmapstorer.cpp | 28 uint8_t* dest_buf = const_cast<uint8_t*>(m_pBitmap->GetScanline(line)); in ComposeScanline() local 33 if (dest_buf) in ComposeScanline() 34 memcpy(dest_buf, scanline, m_pBitmap->GetPitch()); in ComposeScanline()
|
D | cfx_bitmapcomposer.cpp | 136 uint8_t* dest_buf = in ComposeScanlineV() local 143 dest_buf += dest_pitch * (m_DestHeight - 1); in ComposeScanlineV() 153 uint8_t* dest_scan = dest_buf; in ComposeScanlineV() 187 dest_scan = dest_buf; in ComposeScanlineV()
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_streamparser.cpp | 40 uint8_t** dest_buf, in DecodeAllScanlines() argument 52 *dest_buf = FX_Alloc2D(uint8_t, pitch, height); in DecodeAllScanlines() 59 memcpy(*dest_buf + row * pitch, pLine, pitch); in DecodeAllScanlines() 70 uint8_t** dest_buf, in DecodeInlineStream() argument 75 return DecodeAllScanlines(std::move(pDecoder), dest_buf, dest_size); in DecodeInlineStream() 78 return A85Decode(src_buf, limit, dest_buf, dest_size); in DecodeInlineStream() 80 return HexDecode(src_buf, limit, dest_buf, dest_size); in DecodeInlineStream() 83 dest_buf, dest_size); in DecodeInlineStream() 86 return FPDFAPI_FlateOrLZWDecode(true, src_buf, limit, pParam, 0, dest_buf, in DecodeInlineStream() 94 return DecodeAllScanlines(std::move(pDecoder), dest_buf, dest_size); in DecodeInlineStream() [all …]
|
/external/pdfium/testing/libfuzzer/ |
D | pdf_codec_a85_fuzzer.cc | 12 uint8_t* dest_buf = nullptr; in LLVMFuzzerTestOneInput() local 15 encoder_module.A85Encode(data, size, &dest_buf, &dest_size); in LLVMFuzzerTestOneInput() 16 FX_Free(dest_buf); in LLVMFuzzerTestOneInput()
|
D | pdf_codec_rle_fuzzer.cc | 12 uint8_t* dest_buf = nullptr; in LLVMFuzzerTestOneInput() local 15 encoder_module.RunLengthEncode(data, size, &dest_buf, &dest_size); in LLVMFuzzerTestOneInput() 16 FX_Free(dest_buf); in LLVMFuzzerTestOneInput()
|
/external/pdfium/core/fxge/win32/ |
D | cfx_psrenderer.cpp | 33 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, in FaxCompressData() argument 37 dest_buf, dest_size); in FaxCompressData() 40 dest_buf->reset(src_buf); in FaxCompressData() 58 uint8_t* dest_buf = nullptr; in PSCompressData() local 61 if (pEncoders->GetFlateModule()->Encode(src_buf, src_size, &dest_buf, in PSCompressData() 67 &dest_buf, &dest_size)) { in PSCompressData() 72 *output_buf = dest_buf; in PSCompressData() 76 FX_Free(dest_buf); in PSCompressData() 689 uint8_t* dest_buf; in WritePSBinary() local 692 if (pEncoders->GetBasicModule()->A85Encode(data, len, &dest_buf, in WritePSBinary() [all …]
|
/external/u-boot/common/ |
D | hash.c | 48 static int hash_finish_sha1(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_sha1() argument 54 sha1_finish((sha1_context *)ctx, dest_buf); in hash_finish_sha1() 77 *dest_buf, int size) in hash_finish_sha256() argument 82 sha256_finish((sha256_context *)ctx, dest_buf); in hash_finish_sha256() 103 static int hash_finish_crc32(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_crc32() argument 109 *((uint32_t *)dest_buf) = *((uint32_t *)ctx); in hash_finish_crc32()
|
/external/u-boot/drivers/crypto/fsl/ |
D | fsl_hash.c | 128 static int caam_hash_finish(void *hash_ctx, void *dest_buf, in caam_hash_finish() argument 155 memcpy(dest_buf, ctx->hash, sizeof(ctx->hash)); in caam_hash_finish() 226 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, in hw_sha_finish() argument 229 return caam_hash_finish(ctx, dest_buf, size, get_hash_type(algo)); in hw_sha_finish()
|