/external/pdfium/core/fpdfapi/render/ |
D | cpdf_dibtransferfunc.cpp | 40 const uint8_t* src_buf, in TranslateScanline() argument 53 if (src_buf[i / 8] & (1 << (7 - i % 8))) { in TranslateScanline() 73 if (src_buf[i / 8] & (1 << (7 - i % 8))) in TranslateScanline() 85 FX_ARGB src_argb = pPal[*src_buf]; in TranslateScanline() 90 uint32_t src_byte = *src_buf; in TranslateScanline() 95 src_buf++; in TranslateScanline() 105 (*dest_buf)[index++] = m_RampR[*(src_buf++)]; in TranslateScanline() 111 (*dest_buf)[index++] = m_RampB[*(src_buf++)]; in TranslateScanline() 112 (*dest_buf)[index++] = m_RampG[*(src_buf++)]; in TranslateScanline() 113 (*dest_buf)[index++] = m_RampR[*(src_buf++)]; in TranslateScanline() [all …]
|
/external/pdfium/core/fxcodec/codec/ |
D | fx_codec_a85_unittest.cpp | 14 const uint8_t src_buf[] = {1, 2, 3, 4}; in TEST() local 23 EXPECT_FALSE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, nullptr)); in TEST() 24 EXPECT_FALSE(pEncoders->A85Encode(src_buf, src_size, nullptr, &dest_size)); in TEST() 25 EXPECT_FALSE(pEncoders->A85Encode(src_buf, 0, &dest_buf, &dest_size)); in TEST() 32 const uint8_t src_buf[] = {1, 2, 3, 4, 255, 255, 255, 255}; in TEST() local 41 EXPECT_TRUE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, &dest_size)); in TEST() 114 const uint8_t src_buf[] = {1, 2, 3, 4, 0, 0, 0, 0}; in TEST() local 123 EXPECT_TRUE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, &dest_size)); in TEST() 157 EXPECT_TRUE(pEncoders->A85Encode(src_buf, src_size, &dest_buf, &dest_size)); in TEST() 173 uint8_t src_buf[131] = {0}; in TEST() local [all …]
|
D | fx_codec_fax.cpp | 131 inline bool NextBit(const uint8_t* src_buf, int* bitpos) { in NextBit() argument 133 return !!(src_buf[pos / 8] & (1 << (7 - pos % 8))); in NextBit() 252 const uint8_t* src_buf, in FaxGetRun() argument 266 if (src_buf[*bitpos / 8] & (1 << (7 - *bitpos % 8))) in FaxGetRun() 278 void FaxG4GetRow(const uint8_t* src_buf, in FaxG4GetRow() argument 297 if (!NextBit(src_buf, bitpos)) { in FaxG4GetRow() 301 bool bit1 = NextBit(src_buf, bitpos); in FaxG4GetRow() 305 bool bit2 = NextBit(src_buf, bitpos); in FaxG4GetRow() 312 src_buf, bitpos, bitsize); in FaxG4GetRow() 329 src_buf, bitpos, bitsize); in FaxG4GetRow() [all …]
|
D | fx_codec.cpp | 1386 bool CCodec_BasicModule::RunLengthEncode(const uint8_t* src_buf, in RunLengthEncode() argument 1391 if (!src_buf || !dest_buf || !dest_size || src_size == 0) in RunLengthEncode() 1398 (*dest_buf)[1] = src_buf[0]; in RunLengthEncode() 1414 uint8_t x = src_buf[run_start]; in RunLengthEncode() 1415 uint8_t y = src_buf[run_end]; in RunLengthEncode() 1419 y = src_buf[++run_end]; in RunLengthEncode() 1425 y = src_buf[run_end]; in RunLengthEncode() 1434 y = src_buf[run_end]; in RunLengthEncode() 1450 y = src_buf[run_end]; in RunLengthEncode() 1466 bool CCodec_BasicModule::A85Encode(const uint8_t* src_buf, in A85Encode() argument [all …]
|
D | fx_codec_jpeg.cpp | 50 static void JpegScanSOI(const uint8_t** src_buf, uint32_t* src_size) { in JpegScanSOI() argument 56 if ((*src_buf)[offset] == 0xff && (*src_buf)[offset + 1] == 0xd8) { in JpegScanSOI() 57 *src_buf += offset; in JpegScanSOI() 117 static bool JpegLoadInfo(const uint8_t* src_buf, in JpegLoadInfo() argument 124 JpegScanSOI(&src_buf, &src_size); in JpegLoadInfo() 147 src.next_input_byte = src_buf; in JpegLoadInfo() 173 bool Create(const uint8_t* src_buf, 255 bool CCodec_JpegDecoder::Create(const uint8_t* src_buf, in Create() argument 261 JpegScanSOI(&src_buf, &src_size); in Create() 262 m_SrcBuf = src_buf; in Create() [all …]
|
D | fx_codec_flate.cpp | 54 const unsigned char* src_buf, in FlateCompress() argument 56 return compress(dest_buf, dest_size, src_buf, src_size) == Z_OK; in FlateCompress() 69 const unsigned char* src_buf, in FlateInput() argument 72 const_cast<unsigned char*>(src_buf); in FlateInput() 160 const uint8_t* src_buf, in Decode() argument 166 m_pInput = src_buf; in Decode() 511 void FlateUncompress(const uint8_t* src_buf, in FlateUncompress() argument 523 FlateInput(context, src_buf, src_size); in FlateUncompress() 586 void Create(const uint8_t* src_buf, 635 void CCodec_FlateScanlineDecoder::Create(const uint8_t* src_buf, in Create() argument [all …]
|
D | ccodec_flatemodule.h | 18 std::unique_ptr<CCodec_ScanlineDecoder> CreateDecoder(const uint8_t* src_buf, 29 const uint8_t* src_buf, 40 bool Encode(const uint8_t* src_buf, 45 bool PngEncode(const uint8_t* src_buf,
|
D | ccodec_basicmodule.h | 19 const uint8_t* src_buf, 25 bool RunLengthEncode(const uint8_t* src_buf, 29 bool A85Encode(const uint8_t* src_buf,
|
D | fx_codec_rle_unittest.cpp | 15 const uint8_t src_buf[] = {1}; in TEST() local 25 pEncoders->RunLengthEncode(src_buf, src_size, &dest_buf, nullptr)); in TEST() 27 pEncoders->RunLengthEncode(src_buf, src_size, nullptr, &dest_size)); in TEST() 28 EXPECT_FALSE(pEncoders->RunLengthEncode(src_buf, 0, &dest_buf, &dest_size)); in TEST() 35 const uint8_t src_buf[] = {1}; in TEST() local 44 pEncoders->RunLengthEncode(src_buf, src_size, &dest_buf, &dest_size)); in TEST()
|
D | ccodec_pngmodule.cpp | 187 uint8_t* src_buf; in _png_get_row_func() local 188 if (!pContext->m_pDelegate->PngAskScanlineBuf(row_num, &src_buf)) in _png_get_row_func() 191 if (src_buf) in _png_get_row_func() 192 png_progressive_combine_row(png_ptr, src_buf, new_row); in _png_get_row_func() 238 const uint8_t* src_buf, in Input() argument 249 png_process_data(ctx->m_pPng, ctx->m_pInfo, (uint8_t*)src_buf, src_size); in Input()
|
D | ccodec_jpegmodule.h | 31 std::unique_ptr<CCodec_ScanlineDecoder> CreateDecoder(const uint8_t* src_buf, 37 bool LoadInfo(const uint8_t* src_buf, 46 void Input(Context* pContext, const uint8_t* src_buf, uint32_t src_size);
|
D | ccodec_faxmodule.h | 19 std::unique_ptr<CCodec_ScanlineDecoder> CreateDecoder(const uint8_t* src_buf, 30 static void FaxEncode(const uint8_t* src_buf,
|
/external/pdfium/core/fpdfapi/parser/ |
D | fpdf_parser_decode.cpp | 81 uint32_t A85Decode(const uint8_t* src_buf, in A85Decode() argument 94 uint8_t ch = src_buf[pos]; in A85Decode() 118 uint8_t ch = src_buf[pos++]; in A85Decode() 153 if (pos < src_size && src_buf[pos] == '>') in A85Decode() 158 uint32_t HexDecode(const uint8_t* src_buf, in HexDecode() argument 170 while (i < src_size && src_buf[i] != '>') in HexDecode() 176 uint8_t ch = src_buf[i]; in HexDecode() 199 uint32_t RunLengthDecode(const uint8_t* src_buf, in RunLengthDecode() argument 206 if (src_buf[i] == 128) in RunLengthDecode() 210 if (src_buf[i] < 128) { in RunLengthDecode() [all …]
|
D | fpdf_parser_decode.h | 29 bool FlateEncode(const uint8_t* src_buf, 37 bool PngEncode(const uint8_t* src_buf, 42 uint32_t FlateDecode(const uint8_t* src_buf, 47 uint32_t RunLengthDecode(const uint8_t* src_buf, 53 const uint8_t* src_buf, 60 const uint8_t* src_buf, 68 uint32_t A85Decode(const uint8_t* src_buf, 73 uint32_t HexDecode(const uint8_t* src_buf, 79 const uint8_t* src_buf, 86 bool PDF_DataDecode(const uint8_t* src_buf,
|
D | cpdf_crypto_handler.cpp | 51 const uint8_t* src_buf, in CryptBlock() argument 56 memcpy(dest_buf, src_buf, src_size); in CryptBlock() 87 CRYPT_AESEncrypt(m_pAESContext.get(), dest_buf + 16, src_buf, in CryptBlock() 90 memcpy(padding, src_buf + nblocks * 16, src_size % 16); in CryptBlock() 96 CRYPT_AESSetIV(m_pAESContext.get(), src_buf); in CryptBlock() 97 CRYPT_AESDecrypt(m_pAESContext.get(), dest_buf, src_buf + 16, in CryptBlock() 104 if (dest_buf != src_buf) { in CryptBlock() 105 memcpy(dest_buf, src_buf, src_size); in CryptBlock() 169 const uint8_t* src_buf, in CryptStream() argument 177 dest_buf.AppendBlock(src_buf, src_size); in CryptStream() [all …]
|
D | cpdf_crypto_handler.h | 35 const uint8_t* src_buf, 39 const uint8_t* src_buf, 51 const uint8_t* src_buf, 60 const uint8_t* src_buf, 66 const uint8_t* src_buf,
|
/external/webp/src/dec/ |
D | buffer_dec.c | 271 VP8StatusCode WebPCopyDecBufferPixels(const WebPDecBuffer* const src_buf, in WebPCopyDecBufferPixels() argument 273 assert(src_buf != NULL && dst_buf != NULL); in WebPCopyDecBufferPixels() 274 assert(src_buf->colorspace == dst_buf->colorspace); in WebPCopyDecBufferPixels() 276 dst_buf->width = src_buf->width; in WebPCopyDecBufferPixels() 277 dst_buf->height = src_buf->height; in WebPCopyDecBufferPixels() 281 if (WebPIsRGBMode(src_buf->colorspace)) { in WebPCopyDecBufferPixels() 282 const WebPRGBABuffer* const src = &src_buf->u.RGBA; in WebPCopyDecBufferPixels() 285 src_buf->width * kModeBpp[src_buf->colorspace], in WebPCopyDecBufferPixels() 286 src_buf->height); in WebPCopyDecBufferPixels() 288 const WebPYUVABuffer* const src = &src_buf->u.YUVA; in WebPCopyDecBufferPixels() [all …]
|
/external/libaom/libaom/test/ |
D | wiener_test.cc | 123 src_buf = (uint8_t *)aom_memalign( in SetUp() 124 32, MAX_DATA_BLOCK * MAX_DATA_BLOCK * sizeof(*src_buf)); in SetUp() 130 aom_free(src_buf); in TearDown() 139 uint8_t *src_buf; member in wiener_lowbd::WienerTest 162 src_buf[i] = rng_.Rand8(); in RunWienerTest() 165 uint8_t *src = src_buf; in RunWienerTest() 225 src_buf[i] = 255; in RunWienerTest_ExtremeValues() 228 uint8_t *src = src_buf; in RunWienerTest_ExtremeValues() 397 src_buf = (uint16_t *)aom_memalign( in SetUp() 398 32, MAX_DATA_BLOCK * MAX_DATA_BLOCK * sizeof(*src_buf)); in SetUp() [all …]
|
/external/u-boot/board/gdsys/a38x/ |
D | hre.c | 376 const uint8_t *src_buf, *data; in hre_execute_op() local 433 src_buf = src_reg->digest; in hre_execute_op() 437 src_buf = buf; in hre_execute_op() 440 src_buf = buf; in hre_execute_op() 442 src_buf = data; in hre_execute_op() 444 src_buf = buf; in hre_execute_op() 445 for (ptr = (uint8_t *)src_buf, i = 20; i > 0; in hre_execute_op() 451 bin_func(dst_reg->digest, src_buf, 20); in hre_execute_op()
|
/external/pdfium/core/fxge/win32/ |
D | cfx_psrenderer.cpp | 30 void FaxCompressData(uint8_t* src_buf, in FaxCompressData() argument 36 CCodec_FaxModule::FaxEncode(src_buf, width, height, (width + 7) / 8, in FaxCompressData() 38 FX_Free(src_buf); in FaxCompressData() 40 dest_buf->reset(src_buf); in FaxCompressData() 46 uint8_t* src_buf, in PSCompressData() argument 51 *output_buf = src_buf; in PSCompressData() 61 if (pEncoders->GetFlateModule()->Encode(src_buf, src_size, &dest_buf, in PSCompressData() 66 if (pEncoders->GetBasicModule()->RunLengthEncode(src_buf, src_size, in PSCompressData() 397 uint8_t* src_buf = FX_Alloc(uint8_t, src_size); in DrawDIBits() local 400 memcpy(src_buf + row * pitch, src_scan, pitch); in DrawDIBits() [all …]
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_streamparser.cpp | 64 uint32_t DecodeInlineStream(const uint8_t* src_buf, in DecodeInlineStream() argument 74 FPDFAPI_CreateFaxDecoder(src_buf, limit, width, height, pParam); 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() 82 return FPDFAPI_FlateOrLZWDecode(false, src_buf, limit, pParam, *dest_size, in DecodeInlineStream() 86 return FPDFAPI_FlateOrLZWDecode(true, src_buf, limit, pParam, 0, dest_buf, in DecodeInlineStream() 92 src_buf, limit, width, height, 0, in DecodeInlineStream() 97 return RunLengthDecode(src_buf, limit, dest_buf, dest_size); in DecodeInlineStream()
|
/external/puffin/src/ |
D | patching_unittest.cc | 131 void TestPatching(const Buffer& src_buf, in TestPatching() argument 140 ASSERT_TRUE(PuffDiff(src_buf, dst_buf, src_deflates, dst_deflates, in TestPatching() 149 auto src_stream = MemoryStream::CreateForRead(src_buf); in TestPatching()
|
/external/curl/tests/server/ |
D | getpart.c | 181 char *src_buf, /* source buffer */ in appenddata() argument 185 size_t src_len = strlen(src_buf); in appenddata() 193 if(src_buf[src_len - 1] == '\r') in appenddata() 196 if(src_buf[src_len - 1] == '\n') in appenddata() 212 memcpy(*dst_buf + *dst_len, src_buf, src_len); in appenddata()
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_query.c | 147 nir_intrinsic_instr *src_buf = nir_intrinsic_instr_create(b.shader, in build_occlusion_query_shader() local 149 src_buf->src[0] = nir_src_for_ssa(nir_imm_int(&b, 0)); in build_occlusion_query_shader() 150 nir_intrinsic_set_desc_set(src_buf, 0); in build_occlusion_query_shader() 151 nir_intrinsic_set_binding(src_buf, 1); in build_occlusion_query_shader() 152 nir_ssa_dest_init(&src_buf->instr, &src_buf->dest, 1, 32, NULL); in build_occlusion_query_shader() 153 nir_builder_instr_insert(&b, &src_buf->instr); in build_occlusion_query_shader() 185 load->src[0] = nir_src_for_ssa(&src_buf->dest.ssa); in build_occlusion_query_shader() 339 nir_intrinsic_instr *src_buf = nir_intrinsic_instr_create(b.shader, in build_pipeline_statistics_query_shader() local 341 src_buf->src[0] = nir_src_for_ssa(nir_imm_int(&b, 0)); in build_pipeline_statistics_query_shader() 342 nir_intrinsic_set_desc_set(src_buf, 0); in build_pipeline_statistics_query_shader() [all …]
|
D | radv_meta_buffer.c | 96 nir_intrinsic_instr *src_buf = nir_intrinsic_instr_create(b.shader, in build_buffer_copy_shader() local 98 src_buf->src[0] = nir_src_for_ssa(nir_imm_int(&b, 0)); in build_buffer_copy_shader() 99 nir_intrinsic_set_desc_set(src_buf, 0); in build_buffer_copy_shader() 100 nir_intrinsic_set_binding(src_buf, 1); in build_buffer_copy_shader() 101 nir_ssa_dest_init(&src_buf->instr, &src_buf->dest, 1, 32, NULL); in build_buffer_copy_shader() 102 nir_builder_instr_insert(&b, &src_buf->instr); in build_buffer_copy_shader() 105 load->src[0] = nir_src_for_ssa(&src_buf->dest.ssa); in build_buffer_copy_shader()
|