Home
last modified time | relevance | path

Searched refs:src_buf (Results 1 – 25 of 54) sorted by relevance

123

/external/pdfium/core/fpdfapi/page/
Dcpdf_transferfuncdib.cpp48 const uint8_t* src_buf, in TranslateScanline() argument
61 if (src_buf[i / 8] & (1 << (7 - i % 8))) { in TranslateScanline()
81 if (src_buf[i / 8] & (1 << (7 - i % 8))) in TranslateScanline()
93 FX_ARGB src_argb = pPal[*src_buf]; in TranslateScanline()
98 uint32_t src_byte = *src_buf; in TranslateScanline()
103 src_buf++; in TranslateScanline()
113 (*dest_buf)[index++] = m_RampR[*(src_buf++)]; in TranslateScanline()
119 (*dest_buf)[index++] = m_RampB[*(src_buf++)]; in TranslateScanline()
120 (*dest_buf)[index++] = m_RampG[*(src_buf++)]; in TranslateScanline()
121 (*dest_buf)[index++] = m_RampR[*(src_buf++)]; in TranslateScanline()
[all …]
Dcpdf_transferfuncdib.h23 void TranslateScanline(const uint8_t* src_buf,
26 const uint8_t* src_buf,
Dcpdf_image.cpp285 uint8_t* src_buf = pBitmap->GetBuffer(); in SetImage() local
295 memcpy(&dest_span[dest_span_offset], src_buf, dest_pitch); in SetImage()
297 src_buf += src_pitch; in SetImage()
307 static_cast<uint8_t>(src_buf[src_offset + 2] * alpha); in SetImage()
309 static_cast<uint8_t>(src_buf[src_offset + 1] * alpha); in SetImage()
311 static_cast<uint8_t>(src_buf[src_offset] * alpha); in SetImage()
/external/pdfium/core/fxcodec/basic/
Da85_unittest.cpp15 const uint8_t src_buf[] = {1, 2, 3, 4}; in TEST() local
20 EXPECT_FALSE(BasicModule::A85Encode(src_buf, &dest_buf, nullptr)); in TEST()
21 EXPECT_FALSE(BasicModule::A85Encode(src_buf, nullptr, &dest_size)); in TEST()
28 const uint8_t src_buf[] = {1, 2, 3, 4, 255, 255, 255, 255}; in TEST() local
31 EXPECT_TRUE(BasicModule::A85Encode(src_buf, &dest_buf, &dest_size)); in TEST()
109 const uint8_t src_buf[] = {1, 2, 3, 4, 0, 0, 0, 0}; in TEST() local
110 EXPECT_TRUE(BasicModule::A85Encode(src_buf, &dest_buf, &dest_size)); in TEST()
161 uint8_t src_buf[131] = {0}; in TEST() local
164 src_buf[k] = 1; in TEST()
165 src_buf[k + 1] = 2; in TEST()
[all …]
Drle_unittest.cpp16 const uint8_t src_buf[] = {1}; in TEST() local
21 EXPECT_FALSE(BasicModule::RunLengthEncode(src_buf, &dest_buf, nullptr)); in TEST()
22 EXPECT_FALSE(BasicModule::RunLengthEncode(src_buf, nullptr, &dest_size)); in TEST()
28 const uint8_t src_buf[] = {1}; in TEST() local
32 EXPECT_TRUE(BasicModule::RunLengthEncode(src_buf, &dest_buf, &dest_size)); in TEST()
Dbasicmodule.cpp23 bool Create(pdfium::span<const uint8_t> src_buf,
81 bool RLScanlineDecoder::Create(pdfium::span<const uint8_t> src_buf, in Create() argument
86 m_SrcBuf = src_buf; in Create()
202 pdfium::span<const uint8_t> src_buf, in CreateRunLengthDecoder() argument
208 if (!pDecoder->Create(src_buf, width, height, nComps, bpc)) in CreateRunLengthDecoder()
/external/pdfium/core/fxcodec/fax/
Dfaxmodule.cpp136 inline bool NextBit(const uint8_t* src_buf, int* bitpos) { in NextBit() argument
138 return !!(src_buf[pos / 8] & (1 << (7 - pos % 8))); in NextBit()
257 const uint8_t* src_buf, in FaxGetRun() argument
271 if (src_buf[*bitpos / 8] & (1 << (7 - *bitpos % 8))) in FaxGetRun()
283 void FaxG4GetRow(const uint8_t* src_buf, in FaxG4GetRow() argument
302 if (!NextBit(src_buf, bitpos)) { in FaxG4GetRow()
306 bool bit1 = NextBit(src_buf, bitpos); in FaxG4GetRow()
310 bool bit2 = NextBit(src_buf, bitpos); in FaxG4GetRow()
317 src_buf, bitpos, bitsize); in FaxG4GetRow()
334 src_buf, bitpos, bitsize); in FaxG4GetRow()
[all …]
Dfaxmodule.h35 static int FaxG4Decode(const uint8_t* src_buf,
44 static void FaxEncode(const uint8_t* src_buf,
/external/webp/src/dec/
Dbuffer_dec.c271 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/igt-gpu-tools/lib/
Digt_vc4.c278 struct igt_fb *src, void *src_buf, in vc4_fb_convert_plane_to_t_tiled() argument
297 *(uint16_t *)(src_buf + src_offset); in vc4_fb_convert_plane_to_t_tiled()
301 *(uint32_t *)(src_buf + src_offset); in vc4_fb_convert_plane_to_t_tiled()
309 struct igt_fb *src, void *src_buf, in vc4_fb_convert_plane_from_t_tiled() argument
328 *(uint16_t *)(src_buf + src_offset); in vc4_fb_convert_plane_from_t_tiled()
332 *(uint32_t *)(src_buf + src_offset); in vc4_fb_convert_plane_from_t_tiled()
358 struct igt_fb *src, void *src_buf, in vc4_fb_convert_plane_to_sand_tiled() argument
400 *(uint8_t *)(src_buf + src_offset); in vc4_fb_convert_plane_to_sand_tiled()
404 *(uint16_t *)(src_buf + src_offset); in vc4_fb_convert_plane_to_sand_tiled()
414 struct igt_fb *src, void *src_buf, in vc4_fb_convert_plane_from_sand_tiled() argument
[all …]
Digt_vc4.h38 struct igt_fb *src, void *src_buf);
40 struct igt_fb *src, void *src_buf);
Digt_draw.c580 struct igt_buf src_buf = {}, dst_buf = {}; in draw_rect_render() local
603 src_buf.bo = src; in draw_rect_render()
604 src_buf.stride = tmp.stride; in draw_rect_render()
605 src_buf.tiling = I915_TILING_NONE; in draw_rect_render()
606 src_buf.size = tmp.size; in draw_rect_render()
607 src_buf.bpp = tmp.bpp; in draw_rect_render()
617 rendercopy(batch, cmd_data->context, &src_buf, 0, 0, rect->w, in draw_rect_render()
/external/pdfium/core/fxge/win32/
Dcfx_psrenderer.h29 bool (*pA85EncodeFunc)(pdfium::span<const uint8_t> src_buf,
32 void (*pFaxEncodeFunc)(const uint8_t* src_buf,
38 bool (*pFlateEncodeFunc)(const uint8_t* src_buf,
46 pdfium::span<const uint8_t> src_buf,
110 bool FaxCompressData(std::unique_ptr<uint8_t, FxFreeDeleter> src_buf,
115 void PSCompressData(uint8_t* src_buf,
Dcfx_psrenderer.cpp329 std::unique_ptr<uint8_t, FxFreeDeleter> src_buf( in DrawDIBits() local
333 memcpy(src_buf.get() + row * pitch, src_scan, pitch); in DrawDIBits()
338 bool compressed = FaxCompressData(std::move(src_buf), width, height, in DrawDIBits()
625 std::unique_ptr<uint8_t, FxFreeDeleter> src_buf, in FaxCompressData() argument
631 *dest_buf = std::move(src_buf); in FaxCompressData()
636 m_pEncoderIface->pFaxEncodeFunc(src_buf.get(), width, height, (width + 7) / 8, in FaxCompressData()
641 void CFX_PSRenderer::PSCompressData(uint8_t* src_buf, in PSCompressData() argument
646 *output_buf = src_buf; in PSCompressData()
656 if (m_pEncoderIface->pFlateEncodeFunc(src_buf, src_size, &dest_buf_unique, in PSCompressData()
663 if (m_pEncoderIface->pRunLengthEncodeFunc({src_buf, src_size}, in PSCompressData()
/external/pdfium/core/fxcodec/png/
Dpngmodule.cpp163 uint8_t* src_buf; in _png_get_row_func() local
164 if (!pContext->m_pDelegate->PngAskScanlineBuf(row_num, &src_buf)) in _png_get_row_func()
167 if (src_buf) in _png_get_row_func()
168 png_progressive_combine_row(png_ptr, src_buf, new_row); in _png_get_row_func()
228 pdfium::span<uint8_t> src_buf = codec_memory->GetSpan(); in Input() local
229 png_process_data(ctx->m_pPng, ctx->m_pInfo, src_buf.data(), src_buf.size()); in Input()
/external/libaom/libaom/test/
Dwiener_test.cc124 src_buf = (uint8_t *)aom_memalign( in SetUp()
125 32, MAX_DATA_BLOCK * MAX_DATA_BLOCK * sizeof(*src_buf)); in SetUp()
131 aom_free(src_buf); in TearDown()
140 uint8_t *src_buf; member in wiener_lowbd::WienerTest
163 src_buf[i] = rng_.Rand8(); in RunWienerTest()
166 uint8_t *src = src_buf; in RunWienerTest()
226 src_buf[i] = 255; in RunWienerTest_ExtremeValues()
229 uint8_t *src = src_buf; in RunWienerTest_ExtremeValues()
399 src_buf = (uint16_t *)aom_memalign( in SetUp()
400 32, MAX_DATA_BLOCK * MAX_DATA_BLOCK * sizeof(*src_buf)); in SetUp()
[all …]
/external/puffin/src/
Dpatching_unittest.cc131 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/
Dgetpart.c181 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/pdfium/testing/fuzzers/
Dpdf_lzw_fuzzer.cc15 void LZWFuzz(const uint8_t* src_buf, in LZWFuzz() argument
31 decompressor->Decode(src_buf, src_size, dest_buf.data(), &dest_size)) { in LZWFuzz()
/external/angle/third_party/abseil-cpp/absl/flags/internal/
Dsequence_lock_test.cc158 std::vector<char> src_buf(size, 'x'); in TEST_P() local
159 seq_lock.Write(protected_buf.data(), src_buf.data(), size); in TEST_P()
163 ASSERT_EQ(src_buf, dst_buf); in TEST_P()
/external/pdfium/core/fxcodec/gif/
Dcfx_lzwdecompressor.cpp44 CFX_GifDecodeStatus CFX_LZWDecompressor::Decode(const uint8_t* src_buf, in Decode() argument
48 if (!src_buf || src_size == 0 || !dest_buf || !dest_size) in Decode()
54 next_in_ = src_buf; in Decode()
/external/pdfium/core/fxcodec/flate/
Dflatemodule.cpp60 const unsigned char* src_buf, in FlateCompress() argument
62 return compress(dest_buf, dest_size, src_buf, src_size) == Z_OK; in FlateCompress()
73 void FlateInput(z_stream* context, pdfium::span<const uint8_t> src_buf) { in FlateInput() argument
74 context->next_in = const_cast<unsigned char*>(src_buf.data()); in FlateInput()
75 context->avail_in = static_cast<uint32_t>(src_buf.size()); in FlateInput()
514 void FlateUncompress(pdfium::span<const uint8_t> src_buf, in FlateUncompress() argument
526 FlateInput(context.get(), src_buf); in FlateUncompress()
529 uint32_t guess_size = orig_size ? orig_size : src_buf.size() * 2; in FlateUncompress()
852 bool FlateModule::Encode(const uint8_t* src_buf, in Encode() argument
859 if (!FlateCompress(dest_buf->get(), &temp_size, src_buf, src_size)) in Encode()
/external/pdfium/core/fxcodec/jpeg/
Djpegmodule.cpp522 pdfium::span<uint8_t> src_buf = codec_memory->GetSpan(); in Input() local
525 if (ctx->m_SkipSize > src_buf.size()) { in Input()
527 ctx->m_SkipSize -= src_buf.size(); in Input()
530 src_buf = src_buf.subspan(ctx->m_SkipSize); in Input()
533 ctx->m_SrcMgr.next_input_byte = src_buf.data(); in Input()
534 ctx->m_SrcMgr.bytes_in_buffer = src_buf.size(); in Input()
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_utility.cpp119 const uint8_t* src_buf = reinterpret_cast<const uint8_t*>(orig.c_str()); in PDF_NameEncode() local
124 uint8_t ch = src_buf[i]; in PDF_NameEncode()
141 uint8_t ch = src_buf[i]; in PDF_NameEncode()
/external/libaom/libaom/av1/encoder/
Dtune_vmaf.c101 uint8_t *src_buf = in gaussian_blur() local
108 CONVERT_TO_SHORTPTR(src_buf), source->y_stride, in gaussian_blur()
112 av1_convolve_2d_sr(src_buf, source->y_stride, dst_buf, dst->y_stride, in gaussian_blur()
390 uint16_t *src_buf = CONVERT_TO_SHORTPTR(source->y_buffer) + in av1_vmaf_blk_preprocessing() local
394 highbd_unsharp_rect(src_buf, source->y_stride, blurred_buf, in av1_vmaf_blk_preprocessing()
395 blurred.y_stride, src_buf, source->y_stride, in av1_vmaf_blk_preprocessing()
399 uint8_t *src_buf = in av1_vmaf_blk_preprocessing() local
403 unsharp_rect(src_buf, source->y_stride, blurred_buf, blurred.y_stride, in av1_vmaf_blk_preprocessing()
404 src_buf, source->y_stride, block_width, block_height, in av1_vmaf_blk_preprocessing()

123