Home
last modified time | relevance | path

Searched refs:dest_buf (Results 1 – 25 of 47) sorted by relevance

12

/external/pdfium/core/fxcodec/codec/
Dfx_codec_a85_unittest.cpp15 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 …]
Dfx_codec_rle_unittest.cpp16 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 …]
Dfx_codec_fax.cpp108 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 …]
Dfx_codec_flate.cpp52 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 …]
Dfx_codec.cpp1388 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 …]
Dfx_codec_jbig.cpp49 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()
Dccodec_flatemodule.h37 uint8_t** dest_buf,
42 uint8_t** dest_buf,
47 uint8_t** dest_buf,
Dfx_codec_jpeg.cpp484 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 …]
Dccodec_basicmodule.h27 uint8_t** dest_buf,
31 uint8_t** dest_buf,
/external/pdfium/core/fpdfapi/render/
Dcpdf_dibtransferfunc.cpp41 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 …]
Dcpdf_dibtransferfunc.h29 std::vector<uint8_t>* dest_buf) const override;
30 void TranslateDownSamples(uint8_t* dest_buf,
/external/pdfium/core/fpdfapi/parser/
Dcpdf_crypto_handler.cpp53 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 …]
Dfpdf_parser_decode.cpp83 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 …]
Dfpdf_parser_decode.h31 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,
Dcpdf_crypto_handler.h41 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);
Dfpdf_parser_utility.cpp135 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/
Dcfx_dibsource.cpp101 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 …]
Dcfx_bitmapstorer.cpp28 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()
Dcfx_bitmapcomposer.cpp136 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/
Dcpdf_streamparser.cpp40 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/
Dpdf_codec_a85_fuzzer.cc12 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()
Dpdf_codec_rle_fuzzer.cc12 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/
Dcfx_psrenderer.cpp33 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/
Dhash.c48 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/
Dfsl_hash.c128 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()

12