Home
last modified time | relevance | path

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

/external/skia/src/codec/
DSkJpegUtility.cpp34 src->bytes_in_buffer = 0; in sk_init_buffered_source()
48 src->bytes_in_buffer = 0; in sk_fill_buffered_input_buffer()
53 src->bytes_in_buffer = bytes; in sk_fill_buffered_input_buffer()
64 if (bytes > src->bytes_in_buffer) { in sk_skip_buffered_input_data()
65 size_t bytesToSkip = bytes - src->bytes_in_buffer; in sk_skip_buffered_input_data()
73 src->bytes_in_buffer = 0; in sk_skip_buffered_input_data()
76 src->bytes_in_buffer -= numBytes; in sk_skip_buffered_input_data()
103 if(bytes > src->bytes_in_buffer) { in sk_skip_mem_input_data()
105 src->bytes_in_buffer = 0; in sk_skip_mem_input_data()
108 src->bytes_in_buffer -= bytes; in sk_skip_mem_input_data()
[all …]
/external/skqp/src/codec/
DSkJpegUtility.cpp34 src->bytes_in_buffer = 0; in sk_init_buffered_source()
48 src->bytes_in_buffer = 0; in sk_fill_buffered_input_buffer()
53 src->bytes_in_buffer = bytes; in sk_fill_buffered_input_buffer()
64 if (bytes > src->bytes_in_buffer) { in sk_skip_buffered_input_data()
65 size_t bytesToSkip = bytes - src->bytes_in_buffer; in sk_skip_buffered_input_data()
73 src->bytes_in_buffer = 0; in sk_skip_buffered_input_data()
76 src->bytes_in_buffer -= numBytes; in sk_skip_buffered_input_data()
103 if(bytes > src->bytes_in_buffer) { in sk_skip_mem_input_data()
105 src->bytes_in_buffer = 0; in sk_skip_mem_input_data()
108 src->bytes_in_buffer -= bytes; in sk_skip_mem_input_data()
[all …]
/external/tensorflow/tensorflow/core/lib/jpeg/
Djpeg_handle.cc113 src->pub.bytes_in_buffer = src->datasize; in MemInitSource()
122 if (src->pub.bytes_in_buffer == 0 && src->pub.next_input_byte == src->data) { in MemFillInputBuffer()
126 } else if (src->pub.bytes_in_buffer) { in MemFillInputBuffer()
134 src->pub.bytes_in_buffer = 2; in MemFillInputBuffer()
153 if (jump > src->pub.bytes_in_buffer) { in MemSkipInputData()
154 src->pub.bytes_in_buffer = 0; in MemSkipInputData()
157 src->pub.bytes_in_buffer -= jump; in MemSkipInputData()
179 src->pub.bytes_in_buffer = 0; in SetSrc()
/external/libjpeg-turbo/
Djdatasrc.c120 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
143 cinfo->src->bytes_in_buffer = 2; in fill_mem_input_buffer()
172 while (num_bytes > (long)src->bytes_in_buffer) { in skip_input_data()
173 num_bytes -= (long)src->bytes_in_buffer; in skip_input_data()
180 src->bytes_in_buffer -= (size_t)num_bytes; in skip_input_data()
251 src->pub.bytes_in_buffer = 0; /* forces fill_input_buffer on first read */ in jpeg_stdio_src()
292 src->bytes_in_buffer = (size_t)insize; in jpeg_mem_src()
Djdatasrc-tj.c88 cinfo->src->bytes_in_buffer = 2; in fill_mem_input_buffer()
116 while (num_bytes > (long)src->bytes_in_buffer) { in skip_input_data()
117 num_bytes -= (long)src->bytes_in_buffer; in skip_input_data()
124 src->bytes_in_buffer -= (size_t)num_bytes; in skip_input_data()
189 src->bytes_in_buffer = (size_t)insize; in jpeg_mem_src_tj()
Djdhuff.c309 register size_t bytes_in_buffer = state->bytes_in_buffer; in jpeg_fill_bit_buffer() local
321 if (bytes_in_buffer == 0) { in jpeg_fill_bit_buffer()
325 bytes_in_buffer = cinfo->src->bytes_in_buffer; in jpeg_fill_bit_buffer()
327 bytes_in_buffer--; in jpeg_fill_bit_buffer()
338 if (bytes_in_buffer == 0) { in jpeg_fill_bit_buffer()
342 bytes_in_buffer = cinfo->src->bytes_in_buffer; in jpeg_fill_bit_buffer()
344 bytes_in_buffer--; in jpeg_fill_bit_buffer()
394 state->bytes_in_buffer = bytes_in_buffer; in jpeg_fill_bit_buffer()
736 br_state.bytes_in_buffer -= (buffer - br_state.next_input_byte); in decode_mcu_fast()
775 if (cinfo->src->bytes_in_buffer < BUFSIZE * (size_t)cinfo->blocks_in_MCU || in decode_mcu()
Djdhuff.h104 size_t bytes_in_buffer; /* # of bytes remaining in source buffer */ member
123 br_state.bytes_in_buffer = cinfop->src->bytes_in_buffer; \
129 cinfop->src->bytes_in_buffer = br_state.bytes_in_buffer; \
Djdmarker.c125 size_t bytes_in_buffer = datasrc->bytes_in_buffer
130 datasrc->bytes_in_buffer = bytes_in_buffer )
135 bytes_in_buffer = datasrc->bytes_in_buffer )
142 if (bytes_in_buffer == 0) { \
153 bytes_in_buffer--; \
161 bytes_in_buffer--; \
164 bytes_in_buffer--; \
811 while (bytes_read < data_length && bytes_in_buffer > 0) { in save_marker()
813 bytes_in_buffer--; in save_marker()
Ddjpeg.c442 if (datasrc->bytes_in_buffer == 0) { in jpeg_getc()
446 datasrc->bytes_in_buffer--; in jpeg_getc()
Djdarith.c79 if (src->bytes_in_buffer == 0) in get_byte()
82 src->bytes_in_buffer--; in get_byte()
Djpeglib.h804 size_t bytes_in_buffer; /* # of bytes remaining in buffer */ member
Dlibjpeg.txt1617 size_t bytes_in_buffer; /* # of bytes remaining in buffer */
1629 bytes_in_buffer set to 0 (in which case a fill_input_buffer() call
1633 This is called whenever bytes_in_buffer has reached zero and more
1636 bytes_in_buffer), reset the pointer & count to the start of the
1639 least one more byte. bytes_in_buffer MUST be set to a positive value
1650 skips are uncommon. bytes_in_buffer may be zero on return.
1783 called, next_input_byte/bytes_in_buffer point to the current restart point,
1795 decompressor; it can decrement bytes_in_buffer to zero, but no more. If the
1797 buffer, then skip_input_data() must set bytes_in_buffer to zero and record the
/external/pdfium/core/fxcodec/codec/
Dfx_codec_jpeg.cpp72 if (num > (long)cinfo->src->bytes_in_buffer) { in _src_skip_data()
76 cinfo->src->bytes_in_buffer -= num; in _src_skip_data()
146 src.bytes_in_buffer = src_size; in JpegLoadInfo()
228 src.bytes_in_buffer = m_SrcSize; in InitDecode()
334 return (uint32_t)(m_SrcSize - src.bytes_in_buffer); in GetSrcOffset()
374 if (cinfo->src->bytes_in_buffer < static_cast<size_t>(num)) { in _src_skip_data1()
376 pContext->m_SkipSize = (unsigned int)(num - cinfo->src->bytes_in_buffer); in _src_skip_data1()
377 cinfo->src->bytes_in_buffer = 0; in _src_skip_data1()
380 cinfo->src->bytes_in_buffer -= num; in _src_skip_data1()
437 ctx->m_SrcMgr.bytes_in_buffer = 0; in Input()
[all …]
/external/dng_sdk/source/
Ddng_jpeg_memory_source.cpp38 if (num_bytes_as_size_t <= source_manager->bytes_in_buffer) { in SkipInputData()
39 source_manager->bytes_in_buffer -= num_bytes_as_size_t; in SkipInputData()
64 source.bytes_in_buffer = size; in CreateJpegMemorySource()
/external/libaom/libaom/examples/
Dscalable_decoder.c100 size_t bytes_in_buffer = 0; in main() local
151 while (!obudec_read_temporal_unit(&obu_ctx, &buf, &bytes_in_buffer, in main()
155 if (aom_codec_decode(&codec, buf, bytes_in_buffer, NULL)) in main()
/external/ltp/testcases/kernel/sched/eas/
Dtrace_parse.c379 int bytes_in_buffer; in refill_buffer() local
384 bytes_in_buffer = TRACE_BUFFER_SIZE - (idx - buffer) - 1; in refill_buffer()
385 bytes_to_read = TRACE_BUFFER_SIZE - bytes_in_buffer - 1; in refill_buffer()
396 memmove(buffer, idx, bytes_in_buffer); in refill_buffer()
397 idx = buffer + bytes_in_buffer; in refill_buffer()
/external/libaom/libaom/apps/
Daomdec.c230 size_t *bytes_in_buffer, size_t *buffer_size) { in read_frame() argument
234 return webm_read_frame(input->webm_ctx, buf, bytes_in_buffer, in read_frame()
238 return raw_read_frame(input->aom_input_ctx->file, buf, bytes_in_buffer, in read_frame()
241 return ivf_read_frame(input->aom_input_ctx->file, buf, bytes_in_buffer, in read_frame()
244 return obudec_read_temporal_unit(input->obu_ctx, buf, bytes_in_buffer, in read_frame()
436 size_t bytes_in_buffer = 0, buffer_size = 0; in main_loop() local
714 if (read_frame(&input, &buf, &bytes_in_buffer, &buffer_size)) break; in main_loop()
745 if (!read_frame(&input, &buf, &bytes_in_buffer, &buffer_size)) { in main_loop()
751 if (aom_codec_decode(&decoder, buf, bytes_in_buffer, NULL)) { in main_loop()
767 fprintf(framestats_file, "%d,%d\r\n", (int)bytes_in_buffer, qp); in main_loop()
/external/libvpx/libvpx/
Dvpxdec.c269 size_t *bytes_in_buffer, size_t *buffer_size) { in read_frame() argument
273 return webm_read_frame(input->webm_ctx, buf, bytes_in_buffer); in read_frame()
276 return raw_read_frame(input->vpx_input_ctx->file, buf, bytes_in_buffer, in read_frame()
279 return ivf_read_frame(input->vpx_input_ctx->file, buf, bytes_in_buffer, in read_frame()
523 size_t bytes_in_buffer = 0, buffer_size = 0; in main_loop() local
809 if (read_frame(&input, &buf, &bytes_in_buffer, &buffer_size)) break; in main_loop()
840 if (!read_frame(&input, &buf, &bytes_in_buffer, &buffer_size)) { in main_loop()
846 if (vpx_codec_decode(&decoder, buf, (unsigned int)bytes_in_buffer, NULL, in main_loop()
863 fprintf(framestats_file, "%d,%d\n", (int)bytes_in_buffer, qp); in main_loop()
/external/libchrome/ipc/
Dsync_socket_unittest.cc290 size_t bytes_in_buffer = pair[1].Peek(); in TEST_F() local
291 EXPECT_NE(bytes_in_buffer, 0U); in TEST_F()
296 EXPECT_EQ(bytes_in_buffer, pair[1].Peek()); in TEST_F()
/external/pdfium/third_party/libtiff/
Dtif_jpeg.c537 sp->src.bytes_in_buffer = (size_t) tif->tif_rawcc; in std_init_source()
556 if( sp->src.bytes_in_buffer > 0 ) { in std_fill_input_buffer()
572 sp->src.bytes_in_buffer = 2; in std_fill_input_buffer()
582 if ((size_t)num_bytes > sp->src.bytes_in_buffer) { in std_skip_input_data()
587 sp->src.bytes_in_buffer -= (size_t) num_bytes; in std_skip_input_data()
609 sp->src.bytes_in_buffer = 0; /* for safety */ in TIFFjpeg_data_src()
624 sp->src.bytes_in_buffer = (size_t) sp->jpegtables_length; in tables_init_source()
1049 tif->tif_rawcc = sp->src.bytes_in_buffer; in JPEGPreDecode()
1206 sp->src.bytes_in_buffer = (size_t) tif->tif_rawcc; in JPEGDecode()
1241 tif->tif_rawcc = sp->src.bytes_in_buffer; in JPEGDecode()
[all …]
Dtif_ojpeg.c1184 sp->libjpeg_jpeg_source_mgr.bytes_in_buffer=0; in OJPEGWriteHeaderInfo()
2526 sp->libjpeg_jpeg_source_mgr.bytes_in_buffer=len; in OJPEGLibjpegJpegSourceMgrFillInputBuffer()
/external/ImageMagick/coders/
Djpeg.c261 source->manager.bytes_in_buffer=(size_t) ReadBlob(source->image, in FillInputBuffer()
263 if (source->manager.bytes_in_buffer == 0) in FillInputBuffer()
270 source->manager.bytes_in_buffer=2; in FillInputBuffer()
279 if (jpeg_info->src->bytes_in_buffer == 0) in GetCharacter()
281 jpeg_info->src->bytes_in_buffer--; in GetCharacter()
831 while (number_bytes > (long) source->manager.bytes_in_buffer) in SkipInputData()
833 number_bytes-=(long) source->manager.bytes_in_buffer; in SkipInputData()
837 source->manager.bytes_in_buffer-=number_bytes; in SkipInputData()
861 source->manager.bytes_in_buffer=0; in JPEGSourceManager()
/external/libaom/libaom/third_party/libyuv/source/
Dmjpeg_decoder.cc427 cinfo->src->bytes_in_buffer = buf_vec->buffers[buf_vec->pos].len; in fill_input_buffer()
/external/libvpx/libvpx/third_party/libyuv/source/
Dmjpeg_decoder.cc424 cinfo->src->bytes_in_buffer = buf_vec->buffers[buf_vec->pos].len; in fill_input_buffer()
/external/libyuv/files/source/
Dmjpeg_decoder.cc424 cinfo->src->bytes_in_buffer = buf_vec->buffers[buf_vec->pos].len; in fill_input_buffer()