Home
last modified time | relevance | path

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

12

/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/libsrtp2/crypto/cipher/
Daes_icm.c224 c->bytes_in_buffer = 0; in srtp_aes_icm_context_init()
252 c->bytes_in_buffer = 0; in srtp_aes_icm_set_iv()
268 c->bytes_in_buffer = sizeof(v128_t); in srtp_aes_icm_advance()
309 if (bytes_to_encr <= (unsigned int)c->bytes_in_buffer) { in srtp_aes_icm_encrypt()
311 for (i = (sizeof(v128_t) - c->bytes_in_buffer); in srtp_aes_icm_encrypt()
312 i < (sizeof(v128_t) - c->bytes_in_buffer + bytes_to_encr); i++) { in srtp_aes_icm_encrypt()
316 c->bytes_in_buffer -= bytes_to_encr; in srtp_aes_icm_encrypt()
323 for (i = (sizeof(v128_t) - c->bytes_in_buffer); i < sizeof(v128_t); in srtp_aes_icm_encrypt()
328 bytes_to_encr -= c->bytes_in_buffer; in srtp_aes_icm_encrypt()
329 c->bytes_in_buffer = 0; in srtp_aes_icm_encrypt()
[all …]
/external/pigweed/pw_blob_store/
Dblob_store.cc220 size_t bytes_in_buffer = WriteBufferBytesUsed(); in Write() local
224 PW_CHECK_UINT_GT(flash_write_size_bytes_, bytes_in_buffer); in Write()
229 size_t buffer_remaining = flash_write_size_bytes_ - bytes_in_buffer; in Write()
233 std::memcpy(write_buffer_.data() + bytes_in_buffer, data.data(), add_bytes); in Write()
235 bytes_in_buffer += add_bytes; in Write()
238 if (bytes_in_buffer != flash_write_size_bytes_) { in Write()
293 size_t bytes_in_buffer = WriteBufferBytesUsed(); in AddToWriteBuffer() local
296 write_buffer_.data() + bytes_in_buffer, data.data(), data.size_bytes()); in AddToWriteBuffer()
341 size_t bytes_in_buffer = WriteBufferBytesUsed(); in FlushFinalPartialChunk() local
343 PW_DCHECK_UINT_GT(bytes_in_buffer, 0); in FlushFinalPartialChunk()
[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-tj.c91 cinfo->src->bytes_in_buffer = 2; in fill_mem_input_buffer()
119 while (num_bytes > (long)src->bytes_in_buffer) { in skip_input_data()
120 num_bytes -= (long)src->bytes_in_buffer; in skip_input_data()
127 src->bytes_in_buffer -= (size_t)num_bytes; in skip_input_data()
192 src->bytes_in_buffer = (size_t)insize; in jpeg_mem_src_tj()
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()
Djdhuff.c292 register size_t bytes_in_buffer = state->bytes_in_buffer; in jpeg_fill_bit_buffer() local
304 if (bytes_in_buffer == 0) { in jpeg_fill_bit_buffer()
308 bytes_in_buffer = cinfo->src->bytes_in_buffer; in jpeg_fill_bit_buffer()
310 bytes_in_buffer--; in jpeg_fill_bit_buffer()
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()
377 state->bytes_in_buffer = bytes_in_buffer; in jpeg_fill_bit_buffer()
733 br_state.bytes_in_buffer -= (buffer - br_state.next_input_byte); in decode_mcu_fast()
772 if (cinfo->src->bytes_in_buffer < BUFSIZE * (size_t)cinfo->blocks_in_MCU || in decode_mcu()
Djdhuff.h110 size_t bytes_in_buffer; /* # of bytes remaining in source buffer */ member
129 br_state.bytes_in_buffer = cinfop->src->bytes_in_buffer; \
135 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--; \
808 while (bytes_read < data_length && bytes_in_buffer > 0) { in save_marker()
810 bytes_in_buffer--; in save_marker()
Ddjpeg.c460 if (datasrc->bytes_in_buffer == 0) { in jpeg_getc()
464 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()
/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/pdfium/core/fxcodec/jpeg/
Djpegmodule.cpp76 if (num > (long)cinfo->src->bytes_in_buffer) { in src_skip_data()
80 cinfo->src->bytes_in_buffer -= num; in src_skip_data()
111 if (cinfo->src->bytes_in_buffer < static_cast<size_t>(num)) { in src_skip_data1()
113 pContext->m_SkipSize = (unsigned int)(num - cinfo->src->bytes_in_buffer); in src_skip_data1()
114 cinfo->src->bytes_in_buffer = 0; in src_skip_data1()
117 cinfo->src->bytes_in_buffer -= num; in src_skip_data1()
168 src.bytes_in_buffer = src_span.size(); in JpegLoadInfo()
410 return static_cast<uint32_t>(m_SrcSpan.size() - m_Src.bytes_in_buffer); in GetSrcOffset()
422 m_Src.bytes_in_buffer = m_SrcSpan.size(); in InitDecompressSrc()
526 ctx->m_SrcMgr.bytes_in_buffer = 0; in Input()
[all …]
/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.c421 int bytes_in_buffer; in refill_buffer() local
427 bytes_in_buffer = TRACE_BUFFER_SIZE - (idx - buffer) - 1; in refill_buffer()
428 bytes_to_read = TRACE_BUFFER_SIZE - bytes_in_buffer - 1; in refill_buffer()
441 memmove(buffer, idx, bytes_in_buffer); in refill_buffer()
442 idx = buffer + bytes_in_buffer; in refill_buffer()
/external/libaom/libaom/apps/
Daomdec.c226 size_t *bytes_in_buffer, size_t *buffer_size) { in read_frame() argument
230 return webm_read_frame(input->webm_ctx, buf, bytes_in_buffer, in read_frame()
234 return raw_read_frame(input->aom_input_ctx->file, buf, bytes_in_buffer, in read_frame()
237 return ivf_read_frame(input->aom_input_ctx->file, buf, bytes_in_buffer, in read_frame()
240 return obudec_read_temporal_unit(input->obu_ctx, buf, bytes_in_buffer, in read_frame()
432 size_t bytes_in_buffer = 0, buffer_size = 0; in main_loop() local
711 if (read_frame(&input, &buf, &bytes_in_buffer, &buffer_size)) break; in main_loop()
742 if (!read_frame(&input, &buf, &bytes_in_buffer, &buffer_size)) { in main_loop()
748 if (aom_codec_decode(&decoder, buf, bytes_in_buffer, NULL)) { in main_loop()
765 fprintf(framestats_file, "%d,%d\r\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/libvpx/libvpx/
Dvpxdec.c269 size_t *bytes_in_buffer, size_t *buffer_size) { in dec_read_frame() argument
273 return webm_read_frame(input->webm_ctx, buf, bytes_in_buffer); in dec_read_frame()
276 return raw_read_frame(input->vpx_input_ctx->file, buf, bytes_in_buffer, in dec_read_frame()
279 return ivf_read_frame(input->vpx_input_ctx->file, buf, bytes_in_buffer, in dec_read_frame()
523 size_t bytes_in_buffer = 0, buffer_size = 0; in main_loop() local
810 if (dec_read_frame(&input, &buf, &bytes_in_buffer, &buffer_size)) break; in main_loop()
841 if (!dec_read_frame(&input, &buf, &bytes_in_buffer, &buffer_size)) { in main_loop()
847 if (vpx_codec_decode(&decoder, buf, (unsigned int)bytes_in_buffer, NULL, in main_loop()
864 fprintf(framestats_file, "%d,%d\n", (int)bytes_in_buffer, qp); in main_loop()
/external/libsrtp2/crypto/include/
Daes_icm.h58 int bytes_in_buffer; /* number of unused bytes in buffer */ member
/external/libyuv/files/source/
Dmjpeg_decoder.cc425 cinfo->src->bytes_in_buffer = buf_vec->buffers[buf_vec->pos].len; in fill_input_buffer()
433 if(bytes > src->bytes_in_buffer) { in skip_input_data()
435 src->bytes_in_buffer = 0; in skip_input_data()
438 src->bytes_in_buffer -= bytes; in skip_input_data()
/external/pdfium/third_party/libtiff/
Dtif_jpeg.c583 sp->src.bytes_in_buffer = (size_t) tif->tif_rawcc; in std_init_source()
602 if( sp->src.bytes_in_buffer > 0 ) { in std_fill_input_buffer()
618 sp->src.bytes_in_buffer = 2; in std_fill_input_buffer()
628 if ((size_t)num_bytes > sp->src.bytes_in_buffer) { in std_skip_input_data()
633 sp->src.bytes_in_buffer -= (size_t) num_bytes; in std_skip_input_data()
654 sp->src.bytes_in_buffer = 0; /* for safety */ in TIFFjpeg_data_src()
669 sp->src.bytes_in_buffer = (size_t) sp->jpegtables_length; in tables_init_source()
1127 tif->tif_rawcc = sp->src.bytes_in_buffer; in JPEGPreDecode()
1339 sp->src.bytes_in_buffer = (size_t) tif->tif_rawcc; in JPEGDecode()
1374 tif->tif_rawcc = sp->src.bytes_in_buffer; in JPEGDecode()
[all …]
/external/ImageMagick/coders/
Djpeg.c263 source->manager.bytes_in_buffer=(size_t) ReadBlob(source->image, in FillInputBuffer()
265 if (source->manager.bytes_in_buffer == 0) in FillInputBuffer()
272 source->manager.bytes_in_buffer=2; in FillInputBuffer()
281 if (jpeg_info->src->bytes_in_buffer == 0) in GetCharacter()
287 jpeg_info->src->bytes_in_buffer--; in GetCharacter()
711 while (number_bytes > (long) source->manager.bytes_in_buffer) in SkipInputData()
713 number_bytes-=(long) source->manager.bytes_in_buffer; in SkipInputData()
717 source->manager.bytes_in_buffer-=number_bytes; in SkipInputData()
741 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()

12