Home
last modified time | relevance | path

Searched refs:src_span (Results 1 – 25 of 38) sorted by relevance

12

/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode.cpp116 uint32_t A85Decode(pdfium::span<const uint8_t> src_span, in A85Decode() argument
120 if (src_span.empty()) { in A85Decode()
128 while (pos < src_span.size()) { in A85Decode()
129 uint8_t ch = src_span[pos]; in A85Decode()
156 while (pos < src_span.size()) { in A85Decode()
157 uint8_t ch = src_span[pos++]; in A85Decode()
192 if (pos < src_span.size() && src_span[pos] == '>') in A85Decode()
197 uint32_t HexDecode(pdfium::span<const uint8_t> src_span, in HexDecode() argument
201 if (src_span.empty()) { in HexDecode()
208 while (i < src_span.size() && src_span[i] != '>') in HexDecode()
[all …]
Dfpdf_parser_decode.h42 pdfium::span<const uint8_t> src_span,
48 pdfium::span<const uint8_t> src_span,
55 DataVector<uint8_t> FlateEncode(pdfium::span<const uint8_t> src_span);
57 uint32_t FlateDecode(pdfium::span<const uint8_t> src_span,
61 uint32_t RunLengthDecode(pdfium::span<const uint8_t> src_span,
65 uint32_t A85Decode(pdfium::span<const uint8_t> src_span,
69 uint32_t HexDecode(pdfium::span<const uint8_t> src_span,
74 pdfium::span<const uint8_t> src_span,
90 bool PDF_DataDecode(pdfium::span<const uint8_t> src_span,
Dcpdf_stream_acc.cpp131 pdfium::span<const uint8_t> src_span; in ProcessFilteredData() local
133 src_span = m_pStream->GetInMemoryRawData(); in ProcessFilteredData()
134 src_data = src_span; in ProcessFilteredData()
140 src_span = pdfium::make_span(temp_src_data); in ProcessFilteredData()
150 !PDF_DataDecode(src_span, estimated_size, bImageAcc, in ProcessFilteredData()
158 DCHECK_NE(pDecodedData.get(), src_span.data()); in ProcessFilteredData()
/external/pdfium/core/fxcodec/basic/
Dbasicmodule.cpp234 pdfium::span<const uint8_t> src_span) { in RunLengthEncode() argument
235 if (src_span.empty()) in RunLengthEncode()
239 if (src_span.size() == 1) in RunLengthEncode()
240 return {0, src_span[0], 128}; in RunLengthEncode()
245 FX_SAFE_SIZE_T estimated_size = src_span.size(); in RunLengthEncode()
256 uint8_t x = src_span[run_start]; in RunLengthEncode()
257 uint8_t y = src_span[run_end]; in RunLengthEncode()
258 while (run_end < src_span.size()) { in RunLengthEncode()
259 size_t max_len = std::min<size_t>(128, src_span.size() - run_start); in RunLengthEncode()
261 y = src_span[++run_end]; in RunLengthEncode()
[all …]
Dbasicmodule.h31 pdfium::span<const uint8_t> src_span);
33 static DataVector<uint8_t> A85Encode(pdfium::span<const uint8_t> src_span);
/external/pdfium/core/fxcodec/jpeg/
Djpegmodule.cpp29 pdfium::span<const uint8_t> src_span) { in JpegScanSOI() argument
30 DCHECK(!src_span.empty()); in JpegScanSOI()
32 for (size_t offset = 0; offset < src_span.size() - 1; ++offset) { in JpegScanSOI()
33 if (src_span[offset] == 0xff && src_span[offset + 1] == 0xd8) in JpegScanSOI()
34 return src_span.subspan(offset); in JpegScanSOI()
36 return src_span; in JpegScanSOI()
63 static bool JpegLoadInfo(pdfium::span<const uint8_t> src_span, in JpegLoadInfo() argument
65 src_span = JpegScanSOI(src_span); in JpegLoadInfo()
87 src.bytes_in_buffer = src_span.size(); in JpegLoadInfo()
88 src.next_input_byte = src_span.data(); in JpegLoadInfo()
[all …]
Djpegmodule.h39 pdfium::span<const uint8_t> src_span,
46 pdfium::span<const uint8_t> src_span);
/external/pdfium/core/fxge/dib/
Dcfx_scanlinecompositor.cpp200 pdfium::span<const uint8_t> src_span, in CompositeRow_AlphaToMask() argument
205 const uint8_t* src_scan = src_span.data(); in CompositeRow_AlphaToMask()
264 pdfium::span<const uint8_t> src_span, in CompositeRow_Argb2Gray() argument
269 const uint8_t* src_scan = src_span.data(); in CompositeRow_Argb2Gray()
284 pdfium::span<const uint8_t> src_span, in CompositeRow_Rgb2Gray() argument
290 const uint8_t* src_scan = src_span.data(); in CompositeRow_Rgb2Gray()
304 pdfium::span<const uint8_t> src_span, in CompositeRow_Argb2Argb() argument
309 const uint8_t* src_scan = src_span.data(); in CompositeRow_Argb2Argb()
357 pdfium::span<const uint8_t> src_span, in CompositeRow_Rgb2Argb_Blend_NoClip() argument
362 const uint8_t* src_scan = src_span.data(); in CompositeRow_Rgb2Argb_Blend_NoClip()
[all …]
Dcstretchengine.cpp444 pdfium::span<const uint8_t> src_span = in StretchVert() local
450 pixel_weight * src_span[(j - m_SrcClip.top) * m_InterPitch]; in StretchVert()
460 pdfium::span<const uint8_t> src_span = in StretchVert() local
468 src_span.subspan((j - m_SrcClip.top) * m_InterPitch, 3); in StretchVert()
483 pdfium::span<const uint8_t> src_span = in StretchVert() local
492 pdfium::span<const uint8_t> src_pixel = src_span.subspan( in StretchVert()
/external/pdfium/core/fpdfapi/page/
Dcpdf_streamparser.cpp74 uint32_t DecodeInlineStream(pdfium::span<const uint8_t> src_span, in DecodeInlineStream() argument
92 return FlateOrLZWDecode(false, src_span, pParam.Get(), orig_size, in DecodeInlineStream()
96 return FlateOrLZWDecode(true, src_span, pParam.Get(), 0, &ignored_result, in DecodeInlineStream()
101 src_span, width, height, 0, in DecodeInlineStream()
107 CreateFaxDecoder(src_span, width, height, pParam.Get()); in DecodeInlineStream()
112 return A85Decode(src_span, &ignored_result, &ignored_size); in DecodeInlineStream()
114 return HexDecode(src_span, &ignored_result, &ignored_size); in DecodeInlineStream()
116 return RunLengthDecode(src_span, &ignored_result, &ignored_size); in DecodeInlineStream()
183 auto src_span = m_pBuf.subspan(m_Pos, dwOrigSize); in ReadInlineStream() local
184 data = DataVector<uint8_t>(src_span.begin(), src_span.end()); in ReadInlineStream()
[all …]
Dcpdf_image.cpp98 pdfium::span<uint8_t> src_span) { in InitJPEG() argument
100 JpegModule::LoadInfo(src_span); in InitJPEG()
298 pdfium::span<const uint8_t> src_span = pBitmap->GetBuffer(); in SetImage() local
302 fxcrt::spancpy(dest_span, src_span.first(dest_pitch)); in SetImage()
304 src_span = src_span.subspan(src_pitch); in SetImage()
310 const uint8_t* src_ptr = src_span.data(); in SetImage()
319 src_span = src_span.subspan(src_pitch); in SetImage()
Dcpdf_colorspace.cpp133 pdfium::span<const uint8_t> src_span,
160 pdfium::span<const uint8_t> src_span,
198 pdfium::span<const uint8_t> src_span,
228 pdfium::span<const uint8_t> src_span,
588 pdfium::span<const uint8_t> src_span, in TranslateImageLine() argument
594 const uint8_t* src_buf = src_span.data(); in TranslateImageLine()
673 pdfium::span<const uint8_t> src_span, in TranslateImageLine() argument
679 const uint8_t* pSrcBuf = src_span.data(); in TranslateImageLine()
752 pdfium::span<const uint8_t> src_span, in TranslateImageLine() argument
758 const uint8_t* pSrcBuf = src_span.data(); in TranslateImageLine()
[all …]
Dcpdf_devicecs.cpp79 pdfium::span<const uint8_t> src_span, in TranslateImageLine() argument
85 const uint8_t* pSrcBuf = src_span.data(); in TranslateImageLine()
Dcpdf_dib.cpp532 pdfium::span<const uint8_t> src_span = m_pStreamAcc->GetSpan(); in CreateDecoder() local
535 m_pDecoder = CreateFaxDecoder(src_span, m_Width, m_Height, pParams); in CreateDecoder()
537 m_pDecoder = CreateFlateDecoder(src_span, m_Width, m_Height, m_nComponents, in CreateDecoder()
541 src_span, m_Width, m_Height, m_nComponents, m_bpc); in CreateDecoder()
543 if (!CreateDCTDecoder(src_span, pParams)) in CreateDecoder()
562 bool CPDF_DIB::CreateDCTDecoder(pdfium::span<const uint8_t> src_span, in CreateDCTDecoder() argument
565 src_span, m_Width, m_Height, m_nComponents, in CreateDCTDecoder()
571 JpegModule::LoadInfo(src_span); in CreateDCTDecoder()
586 m_pDecoder = JpegModule::CreateDecoder(src_span, m_Width, m_Height, in CreateDCTDecoder()
631 m_pDecoder = JpegModule::CreateDecoder(src_span, m_Width, m_Height, in CreateDCTDecoder()
Dcpdf_transferfuncdib.cpp46 pdfium::span<const uint8_t> src_span) const { in TranslateScanline()
47 const uint8_t* src_buf = src_span.data(); in TranslateScanline()
Dcpdf_devicecs.h26 pdfium::span<const uint8_t> src_span,
Dcpdf_transferfuncdib.h31 void TranslateScanline(pdfium::span<const uint8_t> src_span) const;
/external/pdfium/core/fxcodec/flate/
Dflatemodule.cpp120 CLZWDecoder(pdfium::span<const uint8_t> src_span, bool early_change);
147 CLZWDecoder::CLZWDecoder(pdfium::span<const uint8_t> src_span, in CLZWDecoder() argument
149 : src_span_(src_span), in CLZWDecoder()
308 pdfium::span<const uint8_t> src_span, in PNG_PredictLine() argument
314 const uint8_t* pSrcData = src_span.data(); in PNG_PredictLine()
615 FlateScanlineDecoder(pdfium::span<const uint8_t> src_span,
633 FlateScanlineDecoder::FlateScanlineDecoder(pdfium::span<const uint8_t> src_span, in FlateScanlineDecoder() argument
645 m_SrcBuf(src_span), in FlateScanlineDecoder()
673 FlatePredictorScanlineDecoder(pdfium::span<const uint8_t> src_span,
704 pdfium::span<const uint8_t> src_span, in FlatePredictorScanlineDecoder() argument
[all …]
Dflatemodule.h25 pdfium::span<const uint8_t> src_span,
37 pdfium::span<const uint8_t> src_span,
47 static DataVector<uint8_t> Encode(pdfium::span<const uint8_t> src_span);
/external/pdfium/core/fxcodec/jbig2/
Djbig2_decoder.cpp47 pdfium::span<const uint8_t> src_span, in StartDecode() argument
56 pJbig2Context->m_pSrcSpan = src_span; in StartDecode()
64 CJBig2_Context::Create(global_span, global_key, src_span, src_key, in StartDecode()
/external/pdfium/core/fxge/win32/
Dcfx_psrenderer.h39 DataVector<uint8_t> (*pA85EncodeFunc)(pdfium::span<const uint8_t> src_span);
41 DataVector<uint8_t> (*pFlateEncodeFunc)(pdfium::span<const uint8_t> src_span);
46 pdfium::span<const uint8_t> src_span);
161 pdfium::span<const uint8_t> src_span) const;
/external/pdfium/core/fxcodec/fax/
Dfaxmodule.cpp477 FaxDecoder(pdfium::span<const uint8_t> src_span,
504 FaxDecoder::FaxDecoder(pdfium::span<const uint8_t> src_span, in FaxDecoder() argument
522 m_SrcSpan(src_span), in FaxDecoder()
599 pdfium::span<const uint8_t> src_span, in CreateDecoder() argument
621 return std::make_unique<FaxDecoder>(src_span, actual_width, actual_height, K, in CreateDecoder()
697 void FaxEncode2DLine(pdfium::span<const uint8_t> src_span);
752 void FaxEncoder::FaxEncode2DLine(pdfium::span<const uint8_t> src_span) { in FaxEncode2DLine() argument
756 int a1 = FindBit(src_span, m_Cols, a0 + 1, !a0color); in FaxEncode2DLine()
791 int a2 = FindBit(src_span, m_Cols, a1 + 1, a0color); in FaxEncode2DLine()
Dfaxmodule.h31 pdfium::span<const uint8_t> src_span,
/external/pdfium/xfa/fxfa/parser/
Dcxfa_localemgr.cpp1068 pdfium::span<const uint8_t> src_span) { in GetLocaleFromBuffer() argument
1069 if (src_span.empty()) in GetLocaleFromBuffer()
1074 FlateModule::FlateOrLZWDecode(false, src_span, true, 0, 0, 0, 0, 0, &output, in GetLocaleFromBuffer()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_creator.cpp81 pdfium::span<const uint8_t> src_span = buffer; in WriteBlock() local
82 while (!src_span.empty()) { in WriteBlock()
83 size_t copy_size = std::min(available_.size(), src_span.size()); in WriteBlock()
84 fxcrt::spancpy(available_, src_span.first(copy_size)); in WriteBlock()
85 src_span = src_span.subspan(copy_size); in WriteBlock()

12