Home
last modified time | relevance | path

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

12

/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_decode.cpp47 FX_DWORD A85Decode(const uint8_t* src_buf, in A85Decode() argument
59 uint8_t ch = src_buf[pos]; in A85Decode()
84 uint8_t ch = src_buf[pos++]; in A85Decode()
117 if (pos < src_size && src_buf[pos] == '>') { in A85Decode()
122 FX_DWORD HexDecode(const uint8_t* src_buf, in HexDecode() argument
128 if (src_buf[i] == '>') { in HexDecode()
135 uint8_t ch = src_buf[i]; in HexDecode()
159 FX_DWORD RunLengthDecode(const uint8_t* src_buf, in RunLengthDecode() argument
167 if (src_buf[i] < 128) { in RunLengthDecode()
169 dest_size += src_buf[i] + 1; in RunLengthDecode()
[all …]
Dfpdf_parser_encrypt.cpp722 const uint8_t* src_buf, in CryptBlock() argument
727 FXSYS_memcpy(dest_buf, src_buf, src_size); in CryptBlock()
763 CRYPT_AESEncrypt(m_pAESContext, dest_buf + 16, src_buf, nblocks * 16); in CryptBlock()
765 FXSYS_memcpy(padding, src_buf + nblocks * 16, src_size % 16); in CryptBlock()
772 CRYPT_AESSetIV(m_pAESContext, src_buf); in CryptBlock()
773 CRYPT_AESDecrypt(m_pAESContext, dest_buf, src_buf + 16, src_size - 16); in CryptBlock()
779 if (dest_buf != src_buf) { in CryptBlock()
780 FXSYS_memcpy(dest_buf, src_buf, src_size); in CryptBlock()
842 const uint8_t* src_buf, in CryptStream() argument
850 dest_buf.AppendBlock(src_buf, src_size); in CryptStream()
[all …]
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_fax.cpp133 src_buf[bitpos / 8] & (1 << (7 - bitpos % 8)); \
139 #define GETBIT(bitpos) src_buf[bitpos / 8] & (1 << (7 - bitpos % 8))
257 const uint8_t* src_buf, in FaxGetRun() argument
271 if (src_buf[bitpos / 8] & (1 << (7 - bitpos % 8))) { in FaxGetRun()
284 FX_BOOL FaxG4GetRow(const uint8_t* src_buf, in FaxG4GetRow() argument
318 src_buf, bitpos, bitsize); in FaxG4GetRow()
334 src_buf, bitpos, bitsize); in FaxG4GetRow()
414 FX_BOOL FaxSkipEOL(const uint8_t* src_buf, int bitsize, int& bitpos) { in FaxSkipEOL() argument
428 FX_BOOL FaxGet1DLine(const uint8_t* src_buf, in FaxGet1DLine() argument
441 int run = FaxGetRun(color ? FaxWhiteRunIns : FaxBlackRunIns, src_buf, in FaxGet1DLine()
[all …]
Dfx_codec_jpeg.cpp26 static void _JpegScanSOI(const uint8_t*& src_buf, FX_DWORD& src_size) { in _JpegScanSOI() argument
32 if (src_buf[offset] == 0xff && src_buf[offset + 1] == 0xd8) { in _JpegScanSOI()
33 src_buf += offset; in _JpegScanSOI()
248 static FX_BOOL _JpegLoadInfo(const uint8_t* src_buf, in _JpegLoadInfo() argument
257 _JpegScanSOI(src_buf, src_size); in _JpegLoadInfo()
280 src.next_input_byte = src_buf; in _JpegLoadInfo()
315 FX_BOOL Create(const uint8_t* src_buf,
398 FX_BOOL CCodec_JpegDecoder::Create(const uint8_t* src_buf, in Create() argument
404 _JpegScanSOI(src_buf, src_size); in Create()
405 m_SrcBuf = src_buf; in Create()
[all …]
Dcodec_int.h27 FX_BOOL RunLengthEncode(const uint8_t* src_buf,
31 FX_BOOL A85Encode(const uint8_t* src_buf,
35 ICodec_ScanlineDecoder* CreateRunLengthDecoder(const uint8_t* src_buf,
108 ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
118 FX_BOOL Encode(const uint8_t* src_buf,
128 virtual ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
139 const uint8_t* src_buf,
149 virtual FX_BOOL Encode(const uint8_t* src_buf,
157 virtual FX_BOOL Encode(const uint8_t* src_buf,
166 ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
[all …]
Dfx_codec_flate.cpp32 const unsigned char* src_buf, in FPDFAPI_FlateCompress() argument
34 compress(dest_buf, dest_size, src_buf, src_size); in FPDFAPI_FlateCompress()
49 const unsigned char* src_buf, in FPDFAPI_FlateInput() argument
51 ((z_stream*)context)->next_in = (unsigned char*)src_buf; in FPDFAPI_FlateInput()
138 const uint8_t* src_buf, in Decode() argument
144 m_pInput = src_buf; in Decode()
621 void FlateUncompress(const uint8_t* src_buf, in FlateUncompress() argument
648 FPDFAPI_FlateInput(context, src_buf, src_size); in FlateUncompress()
740 void Create(const uint8_t* src_buf,
790 void CCodec_FlateScanlineDecoder::Create(const uint8_t* src_buf, in Create() argument
[all …]
Dfx_codec_png.cpp191 uint8_t* src_buf = NULL; in _png_get_row_func() local
192 if (!pModule->AskScanlineBufCallback(p->child_ptr, row_num, src_buf)) { in _png_get_row_func()
195 if (src_buf != NULL) { in _png_get_row_func()
196 png_progressive_combine_row(png_ptr, src_buf, new_row); in _png_get_row_func()
243 const uint8_t* src_buf, in Input() argument
254 png_process_data(p->png_ptr, p->info_ptr, (uint8_t*)src_buf, src_size); in Input()
Dfx_codec.cpp152 FX_BOOL CCodec_BasicModule::RunLengthEncode(const uint8_t* src_buf, in RunLengthEncode() argument
261 FX_BOOL CCodec_BasicModule::A85Encode(const uint8_t* src_buf, in A85Encode() argument
292 FX_BOOL Create(const uint8_t* src_buf,
358 FX_BOOL CCodec_RLScanlineDecoder::Create(const uint8_t* src_buf, in Create() argument
364 m_pSrcBuf = src_buf; in Create()
477 const uint8_t* src_buf, in CreateRunLengthDecoder() argument
484 if (!pRLScanlineDecoder->Create(src_buf, src_size, width, height, nComps, in CreateRunLengthDecoder()
Dfx_codec_bmp.cpp123 const uint8_t* src_buf, in Input() argument
126 _bmp_input_buffer(p->bmp_ptr, (uint8_t*)src_buf, src_size); in Input()
/external/pdfium/core/include/fxcodec/
Dfx_codec.h101 virtual FX_BOOL RunLengthEncode(const uint8_t* src_buf,
105 virtual FX_BOOL A85Encode(const uint8_t* src_buf,
109 virtual ICodec_ScanlineDecoder* CreateRunLengthDecoder(const uint8_t* src_buf,
145 virtual ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
156 const uint8_t* src_buf,
166 virtual FX_BOOL Encode(const uint8_t* src_buf,
174 virtual FX_BOOL Encode(const uint8_t* src_buf,
183 virtual ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
194 virtual FX_BOOL Encode(const uint8_t* src_buf,
205 virtual ICodec_ScanlineDecoder* CreateDecoder(const uint8_t* src_buf,
[all …]
Dfx_codec_flate.h17 const unsigned char* src_buf,
/external/pdfium/core/src/fpdfapi/fpdf_render/
Dfpdf_render_image.cpp171 const uint8_t* src_buf) const { in TranslateScanline()
179 if (src_buf[i / 8] & (1 << (7 - i % 8))) { in TranslateScanline()
197 if (src_buf[i / 8] & (1 << (7 - i % 8))) { in TranslateScanline()
209 FX_ARGB src_argb = pPal[*src_buf]; in TranslateScanline()
214 FX_DWORD src_byte = *src_buf; in TranslateScanline()
219 src_buf++; in TranslateScanline()
228 *dest_buf++ = m_RampR[*(src_buf++)]; in TranslateScanline()
233 *dest_buf++ = m_RampB[*(src_buf++)]; in TranslateScanline()
234 *dest_buf++ = m_RampG[*(src_buf++)]; in TranslateScanline()
235 *dest_buf++ = m_RampR[*(src_buf++)]; in TranslateScanline()
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_edit/
Dfpdf_edit_image.cpp112 uint8_t* src_buf = pBitmap->GetBuffer(); in SetImage() local
296 FX_FLOAT alpha = src_buf[src_offset + 3] / 255.0f; in SetImage()
297 dst_buf[src_offset] = (uint8_t)(src_buf[src_offset] * alpha); in SetImage()
299 (uint8_t)(src_buf[src_offset + 1] * alpha); in SetImage()
301 (uint8_t)(src_buf[src_offset + 2] * alpha); in SetImage()
302 dst_buf[src_offset + 3] = (uint8_t)(src_buf[src_offset + 3]); in SetImage()
329 FXSYS_memcpy(pDest, src_buf, dest_pitch); in SetImage()
332 pFileWrite->WriteBlock(src_buf, dest_pitch); in SetImage()
334 src_buf += src_pitch; in SetImage()
350 FX_FLOAT alpha = bUseMatte ? src_buf[src_offset + 3] / 255.0f : 1; in SetImage()
[all …]
/external/pdfium/core/include/fpdfapi/
Dfpdf_parser.h692 const uint8_t* src_buf,
700 const uint8_t* src_buf,
705 const uint8_t* src_buf,
723 const uint8_t* src_buf,
729 const uint8_t* src_buf,
733 const uint8_t* src_buf,
744 const uint8_t* src_buf,
750 const uint8_t* src_buf,
827 void FlateEncode(const uint8_t* src_buf,
831 void FlateEncode(const uint8_t* src_buf,
[all …]
/external/mesa3d/src/gallium/state_trackers/egl/x11/
Dx11_screen.h113 int src_buf, int dst_buf);
121 int src_buf, int dst_buf) in x11_drawable_copy_buffers() argument
124 x11_drawable_copy_buffers_region(xscr, drawable, 1, rect, src_buf, dst_buf); in x11_drawable_copy_buffers()
/external/pdfium/core/src/fxge/ge/
Dfx_ge_ps.cpp273 static void FaxCompressData(uint8_t* src_buf, in FaxCompressData() argument
280 pEncoders->GetFaxModule()->Encode(src_buf, width, height, (width + 7) / 8, in FaxCompressData()
282 FX_Free(src_buf); in FaxCompressData()
284 dest_buf = src_buf; in FaxCompressData()
289 uint8_t* src_buf, in PSCompressData() argument
294 output_buf = src_buf; in PSCompressData()
305 pEncoders->GetFlateModule()->Encode(src_buf, src_size, dest_buf, in PSCompressData()
311 pEncoders->GetBasicModule()->RunLengthEncode(src_buf, src_size, in PSCompressData()
380 uint8_t* src_buf = FX_Alloc(uint8_t, src_size); in DrawDIBits() local
383 FXSYS_memcpy(src_buf + row * pitch, src_scan, pitch); in DrawDIBits()
[all …]
/external/curl/tests/server/
Dgetpart.c152 char *src_buf, /* source buffer */ in appenddata() argument
156 size_t src_len = strlen(src_buf); in appenddata()
164 if(src_buf[src_len - 1] == '\r') in appenddata()
167 if(src_buf[src_len - 1] == '\n') in appenddata()
183 memcpy(*dst_buf + *dst_len, src_buf, src_len); in appenddata()
/external/pdfium/core/src/fxcodec/lgif/
Dfx_gif.h13 extern void _BpcConvert(const uint8_t* src_buf,
134 void Input(uint8_t* src_buf, FX_DWORD src_size);
169 const uint8_t* src_buf,
172 FX_BOOL Encode(const uint8_t* src_buf,
265 const uint8_t* src_buf; member
320 uint8_t* src_buf,
Dfx_gif.cpp8 void CGifLZWDecoder::Input(uint8_t* src_buf, FX_DWORD src_size) { in Input() argument
9 next_in = src_buf; in Input()
210 const uint8_t* src_buf, in Start() argument
227 code_table[index_num].prefix = _gif_cut_buf(src_buf, src_offset, src_bit_cut, in Start()
229 code_table[index_num].suffix = _gif_cut_buf(src_buf, src_offset, src_bit_cut, in Start()
301 FX_BOOL CGifLZWEncoder::Encode(const uint8_t* src_buf, in Encode() argument
311 if (!LookUpInTable(src_buf, src_offset, src_bit_offset)) { in Encode()
319 src_buf, src_offset, src_bit_cut, src_bit_offset, src_bit_num); in Encode()
323 src_buf, src_offset, src_bit_cut, src_bit_offset, src_bit_num); in Encode()
1174 uint8_t* src_buf, in _gif_input_buffer() argument
[all …]
/external/strace/
Dsocketutils.c114 char src_buf[text_size]; in inet_parse_response() local
117 src_buf, text_size)) in inet_parse_response()
130 src_buf, ntohs(diag_msg->id.idiag_sport), in inet_parse_response()
133 tprintf("%s:[%s:%u]", proto_name, src_buf, in inet_parse_response()
/external/pdfium/core/src/fxcodec/lbmp/
Dfx_bmp.cpp647 uint8_t* src_buf, in _bmp_input_buffer() argument
649 bmp_ptr->next_in = src_buf; in _bmp_input_buffer()
673 if (bmp_ptr->src_free && bmp_ptr->src_buf) { in _bmp_destroy_compress()
674 FX_Free(bmp_ptr->src_buf); in _bmp_destroy_compress()
786 uint8_t b = bmp_ptr->src_buf[row_num * bmp_ptr->src_pitch + i++]; in _bmp_encode_bitfields()
787 uint8_t g = bmp_ptr->src_buf[row_num * bmp_ptr->src_pitch + i++]; in _bmp_encode_bitfields()
788 uint8_t r = bmp_ptr->src_buf[row_num * bmp_ptr->src_pitch + i++]; in _bmp_encode_bitfields()
830 &bmp_ptr->src_buf[row_num * bmp_ptr->src_pitch], in _bmp_encode_rgb()
862 rle[0] = _bmp_rle8_search(&bmp_ptr->src_buf[index + i], size - index - i); in _bmp_encode_rle8()
863 rle[1] = bmp_ptr->src_buf[index + i]; in _bmp_encode_rle8()
[all …]
Dfx_bmp.h124 uint8_t* src_buf,
139 uint8_t* src_buf; member
/external/pdfium/core/src/fpdfapi/fpdf_page/
Dfpdf_page_parser_old.cpp279 const uint8_t* src_buf,
285 FX_DWORD PDF_DecodeInlineStream(const uint8_t* src_buf, in PDF_DecodeInlineStream() argument
295 FPDFAPI_CreateFaxDecoder(src_buf, limit, width, height, pParam); in PDF_DecodeInlineStream()
299 return A85Decode(src_buf, limit, dest_buf, dest_size); in PDF_DecodeInlineStream()
302 return HexDecode(src_buf, limit, dest_buf, dest_size); in PDF_DecodeInlineStream()
305 return FPDFAPI_FlateOrLZWDecode(FALSE, src_buf, limit, pParam, dest_size, in PDF_DecodeInlineStream()
309 return FPDFAPI_FlateOrLZWDecode(TRUE, src_buf, limit, pParam, 0, dest_buf, in PDF_DecodeInlineStream()
315 src_buf, limit, width, height, 0, in PDF_DecodeInlineStream()
320 return RunLengthDecode(src_buf, limit, dest_buf, dest_size); in PDF_DecodeInlineStream()
/external/jetty/src/java/org/eclipse/jetty/io/nio/
DDirectNIOBuffer.java165 Buffer src_buf=src.buffer(); in poke() local
166 if (src_buf instanceof DirectNIOBuffer) in poke()
168 ByteBuffer src_bytebuf = ((DirectNIOBuffer)src_buf)._buf; in poke()
/external/opencv3/modules/imgproc/test/
Dtest_color.cpp214 float* src_buf = &_src_buf[0]; in convert_forward() local
231 src_buf[j*3] = src_row[j*cn + blue_idx]*c8u; in convert_forward()
232 src_buf[j*3+1] = src_row[j*cn + 1]*c8u; in convert_forward()
233 src_buf[j*3+2] = src_row[j*cn + (blue_idx^2)]*c8u; in convert_forward()
236 convert_row_bgr2abc_32f_c3( src_buf, dst_buf, cols ); in convert_forward()
252 src_buf[j*3] = src_row[j*cn + blue_idx]*c16u; in convert_forward()
253 src_buf[j*3+1] = src_row[j*cn + 1]*c16u; in convert_forward()
254 src_buf[j*3+2] = src_row[j*cn + (blue_idx^2)]*c16u; in convert_forward()
257 convert_row_bgr2abc_32f_c3( src_buf, dst_buf, cols ); in convert_forward()
273 src_buf[j*3] = src_row[j*cn + blue_idx]; in convert_forward()
[all …]

12