Home
last modified time | relevance | path

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

12

/third_party/jerryscript/jerry-ext/handler/
Dhandler-assert.c63 jerry_length_t current_size = 0; in jerryx_handler_assert_fatal() local
75 current_size, in jerryx_handler_assert_fatal()
76 current_size + copy_size, in jerryx_handler_assert_fatal()
82 current_size += copied_bytes; in jerryx_handler_assert_fatal()
84 while (total_size != current_size); in jerryx_handler_assert_fatal()
/third_party/ffmpeg/libavformat/
Dcdxl.c121 uint32_t current_size, video_size, image_size; in cdxl_read_packet() local
141 current_size = AV_RB32(&cdxl->header[2]); in cdxl_read_packet()
163 if (current_size < (uint64_t)audio_size + video_size + CDXL_HEADER_SIZE) in cdxl_read_packet()
187 if (current_size && cdxl->filesize > 0 && audio_size > 0) in cdxl_read_packet()
188 st->duration = (cdxl->filesize / current_size) * audio_size / channels; in cdxl_read_packet()
210 if (current_size && cdxl->filesize > 0) in cdxl_read_packet()
211 st->nb_frames = cdxl->filesize / current_size; in cdxl_read_packet()
233 avio_skip(pb, current_size - audio_size - video_size - CDXL_HEADER_SIZE); in cdxl_read_packet()
Daadec.c78 int64_t largest_size = -1, current_size = -1, chapter_pos; in aa_read_header() local
209 current_size = TOC[i].size; in aa_read_header()
210 if (current_size > largest_size) { in aa_read_header()
212 largest_size = current_size; in aa_read_header()
/third_party/flutter/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c210 const size_t current_size = bw->cur_ - bw->buf_; in VP8LBitWriterResize() local
211 const uint64_t size_required_64b = (uint64_t)current_size + extra_size; in VP8LBitWriterResize()
227 if (current_size > 0) { in VP8LBitWriterResize()
228 memcpy(allocated_buf, bw->buf_, current_size); in VP8LBitWriterResize()
232 bw->cur_ = bw->buf_ + current_size; in VP8LBitWriterResize()
244 const size_t current_size = src->cur_ - src->buf_; in VP8LBitWriterClone() local
246 if (!VP8LBitWriterResize(dst, current_size)) return 0; in VP8LBitWriterClone()
247 memcpy(dst->buf_, src->buf_, current_size); in VP8LBitWriterClone()
251 dst->cur_ = dst->buf_ + current_size; in VP8LBitWriterClone()
/third_party/skia/third_party/externals/libwebp/src/utils/
Dbit_writer_utils.c210 const size_t current_size = bw->cur_ - bw->buf_; in VP8LBitWriterResize() local
211 const uint64_t size_required_64b = (uint64_t)current_size + extra_size; in VP8LBitWriterResize()
227 if (current_size > 0) { in VP8LBitWriterResize()
228 memcpy(allocated_buf, bw->buf_, current_size); in VP8LBitWriterResize()
232 bw->cur_ = bw->buf_ + current_size; in VP8LBitWriterResize()
244 const size_t current_size = src->cur_ - src->buf_; in VP8LBitWriterClone() local
246 if (!VP8LBitWriterResize(dst, current_size)) return 0; in VP8LBitWriterClone()
247 memcpy(dst->buf_, src->buf_, current_size); in VP8LBitWriterClone()
251 dst->cur_ = dst->buf_ + current_size; in VP8LBitWriterClone()
/third_party/gstreamer/gstplugins_bad/gst/pnm/
Dgstpnmdec.c112 s->current_size = 0; in gst_pnmdec_flush()
252 target = s->size - s->current_size; in gst_pnmdec_parse_ascii()
261 outdata = map.data + s->current_size; in gst_pnmdec_parse_ascii()
349 s->current_size += i; in gst_pnmdec_parse_ascii()
351 i, s->current_size, s->size); in gst_pnmdec_parse_ascii()
469 s->current_size = 0; in gst_pnmdec_handle_frame()
540 s->current_size += (size * 8); in gst_pnmdec_parse()
542 s->current_size += size; in gst_pnmdec_parse()
546 if (s->size <= s->current_size) { in gst_pnmdec_parse()
579 if (s->size && s->size <= s->current_size) { in gst_pnmdec_finish()
Dgstpnmdec.h45 guint size, last_val, current_size ; member
/third_party/gstreamer/gstplugins_bad/gst/mpegtsdemux/
Dtsdemux.c191 guint current_size; member
867 stream->current_size - frame_unit.sc_offset); in scan_keyframe_h264()
876 stream->current_size = gst_byte_writer_get_size (h264infos->sps); in scan_keyframe_h264()
891 stream->current_size - frame_unit.sc_offset); in scan_keyframe_h264()
892 h264infos->framedata.size = stream->current_size - frame_unit.sc_offset; in scan_keyframe_h264()
2207 stream->current_size = 0; in gst_ts_demux_stream_flush()
2745 stream->current_size = length; in gst_ts_demux_parse_pes_header()
2840 if (G_UNLIKELY (stream->current_size + size > stream->allocated_size)) { in gst_ts_demux_queue_data()
2844 } while (stream->current_size + size > stream->allocated_size); in gst_ts_demux_queue_data()
2847 memcpy (stream->data + stream->current_size, data, size); in gst_ts_demux_queue_data()
[all …]
/third_party/flutter/engine/flutter/lib/ui/painting/
Dimage_decoder.cc32 static SkISize GetResizedDimensions(SkISize current_size, in GetResizedDimensions() argument
35 if (current_size.isEmpty()) { in GetResizedDimensions()
44 static_cast<double>(current_size.width()) / current_size.height(); in GetResizedDimensions()
56 return current_size; in GetResizedDimensions()
/third_party/python/Modules/_io/
Dbufferedio.c1528 Py_ssize_t current_size; in _bufferedreader_read_all() local
1532 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_all()
1533 if (current_size) { in _bufferedreader_read_all()
1535 self->buffer + self->pos, current_size); in _bufferedreader_read_all()
1538 self->pos += current_size; in _bufferedreader_read_all()
1561 if (current_size == 0) { in _bufferedreader_read_all()
1592 if (current_size == 0) { in _bufferedreader_read_all()
1602 current_size += PyBytes_GET_SIZE(data); in _bufferedreader_read_all()
1620 Py_ssize_t current_size; in _bufferedreader_read_fast() local
1622 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_fast()
[all …]
/third_party/ffmpeg/libavutil/
Daudio_fifo.c118 int current_size = av_audio_fifo_size(af); in av_audio_fifo_write() local
120 if (INT_MAX / 2 - current_size < nb_samples) in av_audio_fifo_write()
123 if ((ret = av_audio_fifo_realloc(af, 2 * (current_size + nb_samples))) < 0) in av_audio_fifo_write()
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sample/subtly/
Dfont_assembler.cc160 int32_t current_size = loca_table->header_length(); in AssembleGlyphAndLocaTables() local
161 if (previous_size != -1 && current_size != previous_size) { in AssembleGlyphAndLocaTables()
164 previous_size = current_size; in AssembleGlyphAndLocaTables()
/third_party/skia/third_party/externals/sfntly/cpp/src/sample/subtly/
Dfont_assembler.cc160 int32_t current_size = loca_table->header_length(); in AssembleGlyphAndLocaTables() local
161 if (previous_size != -1 && current_size != previous_size) { in AssembleGlyphAndLocaTables()
164 previous_size = current_size; in AssembleGlyphAndLocaTables()
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-string.c2434 header_p->current_size = initial_size; in ecma_stringbuilder_create()
2455 header_p->current_size = initial_size; in ecma_stringbuilder_create_from()
2481 header_p->current_size = initial_size; in ecma_stringbuilder_create_raw()
2504 const lit_utf8_size_t new_size = header_p->current_size + required_size; in ecma_stringbuilder_grow()
2505 header_p = jmem_heap_realloc_block (header_p, header_p->current_size, new_size); in ecma_stringbuilder_grow()
2506 header_p->current_size = new_size; in ecma_stringbuilder_grow()
2513 return ((lit_utf8_byte_t *) header_p) + header_p->current_size - required_size; in ecma_stringbuilder_grow()
2555 JERRY_ASSERT (new_size <= header_p->current_size); in ecma_stringbuilder_revert()
2558 jmem_stats_free_string_bytes (header_p->current_size - new_size); in ecma_stringbuilder_revert()
2561 header_p = jmem_heap_realloc_block (header_p, header_p->current_size, new_size); in ecma_stringbuilder_revert()
[all …]
Decma-globals.h1636 lit_utf8_size_t current_size; /**< size of the data in the buffer */ member
1649 ((lit_utf8_size_t) (header_p->current_size - sizeof (ecma_ascii_string_t)))
/third_party/python/Lib/test/
Dtest_largefile.py32 current_size = os.fstat(f.fileno())[stat.ST_SIZE]
33 if current_size == size+1:
36 if current_size == 0:
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-glyf-table.hh400 glyph (glyph_), current (nullptr), current_size (0) in composite_iter_t()
405 composite_iter_t () : glyph (hb_bytes_t ()), current (nullptr), current_size (0) {} in composite_iter_t()
413 set_next (&StructAtOffset<CompositeGlyphChain> (current, current_size)); in __next__()
424 current_size = 0; in set_next()
431 current_size = 0; in set_next()
436 current_size = size; in set_next()
442 unsigned current_size; member
/third_party/flutter/engine/flutter/shell/gpu/
Dgpu_surface_gl.cc317 auto current_size = in PresentSurface() local
324 current_size, // root surface size in PresentSurface()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_setup.c1242 const unsigned current_size = MIN2(setup->constants[i].current.buffer_size, in try_update_scene_state() local
1257 if (current_data && current_size >= sizeof(float)) { in try_update_scene_state()
1262 if (setup->constants[i].stored_size != current_size || in try_update_scene_state()
1266 current_size) != 0) { in try_update_scene_state()
1268 void *stored = lp_scene_alloc(scene, current_size); in try_update_scene_state()
1276 current_size); in try_update_scene_state()
1277 setup->constants[i].stored_size = current_size; in try_update_scene_state()
/third_party/gstreamer/gstplugins_bad/ext/dash/
Dgstdashdemux.h89 guint64 current_size; member
Dgstdashdemux.c1488 dashstream->isobmff_parser.current_size = 0; in gst_dash_demux_stream_seek()
2083 dashstream->isobmff_parser.current_size = 0; in gst_dash_demux_stream_advance_fragment()
2270 dashstream->isobmff_parser.current_size = 0; in gst_dash_demux_stream_select_bitrate()
2833 g_assert (dash_stream->isobmff_parser.current_size == 0); in gst_dash_demux_parse_isobmff()
2843 dash_stream->isobmff_parser.current_size = 0; in gst_dash_demux_parse_isobmff()
2856 dash_stream->isobmff_parser.current_size = -1; in gst_dash_demux_parse_isobmff()
2860 dash_stream->isobmff_parser.current_size = size; in gst_dash_demux_parse_isobmff()
2987 dash_stream->isobmff_parser.current_size = 0; in gst_dash_demux_parse_isobmff()
3000 dash_stream->isobmff_parser.current_size); in gst_dash_demux_parse_isobmff()
3008 dash_stream->isobmff_parser.current_size = 0; in gst_dash_demux_parse_isobmff()
[all …]
/third_party/selinux/libselinux/src/
Dlabel_file.c421 size_t current_size; in rolling_append() local
426 current_size = strlen(current); in rolling_append()
429 size = current_size + suffix_size; in rolling_append()
430 if (size < current_size || size < suffix_size) in rolling_append()
443 char *to = current + current_size; in rolling_append()
/third_party/flutter/skia/third_party/externals/libwebp/src/dec/
Didec_dec.c181 const size_t current_size = MemDataSize(mem) + new_mem_start; in AppendToMemBuffer() local
182 const uint64_t new_size = (uint64_t)current_size + data_size; in AppendToMemBuffer()
187 memcpy(new_buf, old_base, current_size); in AppendToMemBuffer()
192 mem->end_ = current_size; in AppendToMemBuffer()
/third_party/skia/third_party/externals/libwebp/src/dec/
Didec_dec.c183 const size_t current_size = MemDataSize(mem) + new_mem_start; in AppendToMemBuffer() local
184 const uint64_t new_size = (uint64_t)current_size + data_size; in AppendToMemBuffer()
189 if (old_base != NULL) memcpy(new_buf, old_base, current_size); in AppendToMemBuffer()
194 mem->end_ = current_size; in AppendToMemBuffer()
/third_party/python/Parser/
Dtokenizer.c329 Py_ssize_t current_size = tok->interactive_src_end - tok->interactive_src_start; in tok_concatenate_interactive_new_line() local
333 new_str = PyMem_Realloc(new_str, current_size + line_size + 1); in tok_concatenate_interactive_new_line()
343 strcpy(new_str + current_size, line); in tok_concatenate_interactive_new_line()
346 tok->interactive_src_end = new_str + current_size + line_size; in tok_concatenate_interactive_new_line()

12