/external/pdfium/core/fpdfapi/page/ |
D | cpdf_transferfuncdib.cpp | 49 std::vector<uint8_t>* dest_buf) const { in TranslateScanline() 62 (*dest_buf)[index++] = b1; in TranslateScanline() 63 (*dest_buf)[index++] = g1; in TranslateScanline() 64 (*dest_buf)[index++] = r1; in TranslateScanline() 66 (*dest_buf)[index++] = b0; in TranslateScanline() 67 (*dest_buf)[index++] = g0; in TranslateScanline() 68 (*dest_buf)[index++] = r0; in TranslateScanline() 82 (*dest_buf)[index++] = m1; in TranslateScanline() 84 (*dest_buf)[index++] = m0; in TranslateScanline() 94 (*dest_buf)[index++] = m_RampB[FXARGB_R(src_argb)]; in TranslateScanline() [all …]
|
/external/pdfium/core/fxcodec/basic/ |
D | a85_unittest.cpp | 16 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; in TEST() local 20 EXPECT_FALSE(BasicModule::A85Encode(src_buf, &dest_buf, nullptr)); in TEST() 22 EXPECT_FALSE(BasicModule::A85Encode({}, &dest_buf, &dest_size)); in TEST() 29 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; in TEST() local 31 EXPECT_TRUE(BasicModule::A85Encode(src_buf, &dest_buf, &dest_size)); in TEST() 39 auto dest_buf_span = pdfium::make_span(dest_buf.get(), dest_size); in TEST() 46 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; in TEST() local 53 BasicModule::A85Encode(src_buf_1leftover, &dest_buf, &dest_size)); in TEST() 60 auto dest_buf_span = pdfium::make_span(dest_buf.get(), dest_size); in TEST() 68 dest_buf.reset(); in TEST() [all …]
|
D | rle_unittest.cpp | 17 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; in TEST() local 21 EXPECT_FALSE(BasicModule::RunLengthEncode(src_buf, &dest_buf, nullptr)); in TEST() 23 EXPECT_FALSE(BasicModule::RunLengthEncode({}, &dest_buf, &dest_size)); in TEST() 29 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; in TEST() local 32 EXPECT_TRUE(BasicModule::RunLengthEncode(src_buf, &dest_buf, &dest_size)); in TEST() 34 auto dest_buf_span = pdfium::make_span(dest_buf.get(), dest_size); in TEST() 43 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; in TEST() local 51 EXPECT_TRUE(BasicModule::RunLengthEncode(src_buf_1, &dest_buf, &dest_size)); in TEST() 52 RunLengthDecode({dest_buf.get(), dest_size}, &decoded_buf, &decoded_size); in TEST() 62 dest_buf.reset(); in TEST() [all …]
|
D | basicmodule.cpp | 217 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, in RunLengthEncode() argument 220 if (src_span.empty() || !dest_buf || !dest_size) in RunLengthEncode() 226 dest_buf->reset(FX_Alloc(uint8_t, *dest_size)); in RunLengthEncode() 227 auto dest_buf_span = pdfium::make_span(dest_buf->get(), *dest_size); in RunLengthEncode() 242 dest_buf->reset(FX_Alloc(uint8_t, estimated_size.ValueOrDie())); in RunLengthEncode() 245 uint8_t* out = dest_buf->get(); in RunLengthEncode() 296 *dest_size = out + 1 - dest_buf->get(); in RunLengthEncode() 302 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, in A85Encode() argument 305 if (!dest_buf || !dest_size) in A85Encode() 322 dest_buf->reset(FX_Alloc(uint8_t, estimated_size.ValueOrDie())); in A85Encode() [all …]
|
/external/pdfium/core/fxcodec/gif/ |
D | cfx_lzwdecompressor_unittest.cpp | 27 uint8_t dest_buf[20]; in TEST() local 28 memset(dest_buf, static_cast<uint8_t>(-1), sizeof(dest_buf)); in TEST() 30 EXPECT_EQ(0u, decompressor->ExtractDataForTest(dest_buf, 0)); in TEST() 31 for (size_t i = 0; i < FX_ArraySize(dest_buf); ++i) in TEST() 32 EXPECT_EQ(static_cast<uint8_t>(-1), dest_buf[i]); in TEST() 44 uint8_t dest_buf[20]; in TEST() local 45 memset(dest_buf, static_cast<uint8_t>(-1), sizeof(dest_buf)); in TEST() 47 EXPECT_EQ(5u, decompressor->ExtractDataForTest(dest_buf, 5)); in TEST() 50 EXPECT_EQ(9 - i, dest_buf[i]); in TEST() 51 for (; i < FX_ArraySize(dest_buf); ++i) in TEST() [all …]
|
D | cfx_lzwdecompressor.cpp | 46 uint8_t* dest_buf, in Decode() argument 48 if (!src_buf || src_size == 0 || !dest_buf || !dest_size) in Decode() 61 uint32_t extracted_size = ExtractData(dest_buf, *dest_size); in Decode() 65 dest_buf += extracted_size; in Decode() 124 uint32_t extracted_size = ExtractData(dest_buf, *dest_size - i); in Decode() 128 dest_buf += extracted_size; in Decode() 184 uint32_t CFX_LZWDecompressor::ExtractData(uint8_t* dest_buf, in ExtractData() argument 193 decompressed_.data() + decompressed_next_, dest_buf); in ExtractData()
|
D | cfx_lzwdecompressor.h | 29 uint8_t* dest_buf, 33 uint32_t ExtractDataForTest(uint8_t* dest_buf, uint32_t dest_size) { in ExtractDataForTest() argument 34 return ExtractData(dest_buf, dest_size); in ExtractDataForTest() 45 uint32_t ExtractData(uint8_t* dest_buf, uint32_t dest_size);
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_crypto_handler.cpp | 49 uint8_t* dest_buf, in CryptBlock() argument 52 memcpy(dest_buf, source.data(), source.size()); in CryptBlock() 77 memcpy(dest_buf, iv, 16); in CryptBlock() 79 CRYPT_AESEncrypt(m_pAESContext.get(), dest_buf + 16, source.data(), in CryptBlock() 85 CRYPT_AESEncrypt(m_pAESContext.get(), dest_buf + nblocks * 16 + 16, in CryptBlock() 90 CRYPT_AESDecrypt(m_pAESContext.get(), dest_buf, source.data() + 16, in CryptBlock() 93 dest_size -= dest_buf[dest_size - 1]; in CryptBlock() 97 if (dest_buf != source.data()) in CryptBlock() 98 memcpy(dest_buf, source.data(), source.size()); in CryptBlock() 99 CRYPT_ArcFourCryptBlock({dest_buf, dest_size}, {realkey, realkeylen}); in CryptBlock() [all …]
|
D | fpdf_parser_decode.cpp | 116 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, in A85Decode() argument 120 dest_buf->reset(); in A85Decode() 150 dest_buf->reset(FX_Alloc(uint8_t, size.ValueOrDie())); in A85Decode() 151 uint8_t* dest_buf_ptr = dest_buf->get(); in A85Decode() 197 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, in HexDecode() argument 201 dest_buf->reset(); in HexDecode() 210 dest_buf->reset(FX_Alloc(uint8_t, i / 2 + 1)); in HexDecode() 211 uint8_t* dest_buf_ptr = dest_buf->get(); in HexDecode() 238 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, in RunLengthDecode() argument 262 dest_buf->reset(FX_Alloc(uint8_t, *dest_size)); in RunLengthDecode() [all …]
|
D | fpdf_parser_decode.h | 52 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 56 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 60 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 64 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 68 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 75 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 86 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf,
|
D | cpdf_crypto_handler.h | 35 uint8_t* dest_buf, 46 CFX_BinaryBuf& dest_buf); 47 bool DecryptFinish(void* context, CFX_BinaryBuf& dest_buf); 54 uint8_t* dest_buf, 59 CFX_BinaryBuf& dest_buf, 61 bool CryptFinish(void* context, CFX_BinaryBuf& dest_buf, bool bEncrypt);
|
/external/pdfium/core/fxge/dib/ |
D | cfx_dibbase.cpp | 100 void ConvertBuffer_1bppMask2Gray(uint8_t* dest_buf, in ConvertBuffer_1bppMask2Gray() argument 110 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_1bppMask2Gray() 121 void ConvertBuffer_8bppMask2Gray(uint8_t* dest_buf, in ConvertBuffer_8bppMask2Gray() argument 129 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_8bppMask2Gray() 135 void ConvertBuffer_1bppPlt2Gray(uint8_t* dest_buf, in ConvertBuffer_1bppPlt2Gray() argument 169 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_1bppPlt2Gray() 180 void ConvertBuffer_8bppPlt2Gray(uint8_t* dest_buf, in ConvertBuffer_8bppPlt2Gray() argument 207 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_8bppPlt2Gray() 214 void ConvertBuffer_RgbOrCmyk2Gray(uint8_t* dest_buf, in ConvertBuffer_RgbOrCmyk2Gray() argument 224 uint8_t* dest_scan = dest_buf + row * dest_pitch; in ConvertBuffer_RgbOrCmyk2Gray() [all …]
|
D | cfx_bitmapstorer.cpp | 28 uint8_t* dest_buf = m_pBitmap->GetWritableScanline(line); in ComposeScanline() local 33 if (dest_buf) in ComposeScanline() 34 memcpy(dest_buf, scanline, m_pBitmap->GetPitch()); in ComposeScanline()
|
/external/pdfium/core/fxcodec/flate/ |
D | flatemodule.cpp | 58 bool FlateCompress(unsigned char* dest_buf, in FlateCompress() argument 62 return compress(dest_buf, dest_size, src_buf, src_size) == Z_OK; in FlateCompress() 79 unsigned char* dest_buf, in FlateOutput() argument 81 context->next_out = dest_buf; in FlateOutput() 91 memset(dest_buf + written, '\0', dest_size - written); in FlateOutput() 373 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf( in PNG_Predictor() local 377 uint8_t* pDestData = dest_buf.get(); in PNG_Predictor() 448 *data_buf = std::move(dest_buf); in PNG_Predictor() 454 void TIFF_PredictLine(uint8_t* dest_buf, in TIFF_PredictLine() argument 467 if (((dest_buf[index] >> (7 - col)) & 1) ^ in TIFF_PredictLine() [all …]
|
/external/deqp-deps/amber/tests/cases/ |
D | copy_data_buffer.amber | 17 BUFFER dest_buf DATA_TYPE int32 SIZE 100 FILL 22 20 EXPECT dest_buf IDX 0 EQ 22 21 COPY orig_buf TO dest_buf 22 EXPECT dest_buf IDX 0 EQ 11
|
D | copy_format_buffer.amber | 26 BUFFER dest_buf FORMAT B8G8R8A8_UNORM 37 COPY img_buf TO dest_buf 38 EXPECT dest_buf IDX 0 0 SIZE 256 256 EQ_RGBA 255 0 0 255
|
/external/pdfium/core/fxcodec/fax/ |
D | faxmodule.cpp | 113 void FaxFillBits(uint8_t* dest_buf, int columns, int startpos, int endpos) { in FaxFillBits() argument 123 dest_buf[first_byte] -= 1 << (7 - i); in FaxFillBits() 128 dest_buf[first_byte] -= 1 << (7 - i); in FaxFillBits() 130 dest_buf[last_byte] -= 1 << (7 - i); in FaxFillBits() 133 memset(dest_buf + first_byte + 1, 0, last_byte - first_byte - 1); in FaxFillBits() 286 uint8_t* dest_buf, in FaxG4GetRow() argument 329 FaxFillBits(dest_buf, columns, a0, a1); in FaxG4GetRow() 343 FaxFillBits(dest_buf, columns, a1, a2); in FaxG4GetRow() 356 FaxFillBits(dest_buf, columns, a0, b2); in FaxG4GetRow() 395 FaxFillBits(dest_buf, columns, a0, a1); in FaxG4GetRow() [all …]
|
/external/pdfium/core/fxge/win32/ |
D | cfx_psrenderer.h | 30 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 36 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 40 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 43 uint8_t** dest_buf, 47 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, 113 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf,
|
D | cfx_psrenderer.cpp | 628 std::unique_ptr<uint8_t, FxFreeDeleter>* dest_buf, in FaxCompressData() argument 631 *dest_buf = std::move(src_buf); in FaxCompressData() 637 dest_buf, dest_size); in FaxCompressData() 652 uint8_t* dest_buf = nullptr; in PSCompressData() local 658 dest_buf = dest_buf_unique.release(); in PSCompressData() 665 dest_buf = dest_buf_unique.release(); in PSCompressData() 670 *output_buf = dest_buf; in PSCompressData() 674 FX_Free(dest_buf); in PSCompressData() 679 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; in WritePSBinary() local 682 &dest_buf, &dest_size)) { in WritePSBinary() [all …]
|
/external/pdfium/core/fxcodec/jbig2/ |
D | jbig2module.cpp | 39 uint8_t* dest_buf, in StartDecode() argument 53 pJbig2Context->m_dest_buf = dest_buf; in StartDecode() 55 memset(dest_buf, 0, height * dest_pitch); in StartDecode() 60 dest_buf, width, height, dest_pitch, pPause); in StartDecode()
|
/external/pdfium/testing/fuzzers/ |
D | pdf_lzw_fuzzer.cc | 26 std::vector<uint8_t> dest_buf(compressions_ratio * src_size); in LZWFuzz() local 29 uint32_t dest_size = static_cast<uint32_t>(dest_buf.size()); in LZWFuzz() 31 decompressor->Decode(src_buf, src_size, dest_buf.data(), &dest_size)) { in LZWFuzz()
|
D | pdf_codec_rle_fuzzer.cc | 12 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; in LLVMFuzzerTestOneInput() local 14 BasicModule::RunLengthEncode({data, size}, &dest_buf, &dest_size); in LLVMFuzzerTestOneInput()
|
D | pdf_codec_a85_fuzzer.cc | 12 std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; in LLVMFuzzerTestOneInput() local 14 BasicModule::A85Encode({data, size}, &dest_buf, &dest_size); in LLVMFuzzerTestOneInput()
|
/external/u-boot/common/ |
D | hash.c | 56 static int hash_finish_sha1(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_sha1() argument 62 sha1_finish((sha1_context *)ctx, dest_buf); in hash_finish_sha1() 85 *dest_buf, int size) in hash_finish_sha256() argument 90 sha256_finish((sha256_context *)ctx, dest_buf); in hash_finish_sha256() 113 void *dest_buf, int size) in hash_finish_crc16_ccitt() argument 118 *((uint16_t *)dest_buf) = *((uint16_t *)ctx); in hash_finish_crc16_ccitt() 138 static int hash_finish_crc32(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_crc32() argument 144 *((uint32_t *)dest_buf) = *((uint32_t *)ctx); in hash_finish_crc32()
|
/external/pdfium/core/fxcodec/jpeg/ |
D | jpegmodule.cpp | 567 bool JpegModule::ReadScanline(Context* pContext, unsigned char* dest_buf) { in ReadScanline() argument 569 unsigned int nlines = jpeg_read_scanlines(&ctx->m_Info, &dest_buf, 1); in ReadScanline() 584 uint8_t** dest_buf, in JpegEncode() argument 610 *dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); in JpegEncode() 612 while (!(*dest_buf) && dest_buf_length > MIN_TRY_BUF_LEN) { in JpegEncode() 614 *dest_buf = FX_TryAlloc(uint8_t, dest_buf_length); in JpegEncode() 616 if (!(*dest_buf)) in JpegEncode() 623 dest.next_output_byte = *dest_buf; in JpegEncode() 669 *dest_buf = in JpegEncode() 670 FX_Realloc(uint8_t, *dest_buf, dest_buf_length + kJpegBlockSize); in JpegEncode() [all …]
|