Home
last modified time | relevance | path

Searched refs:current_size (Results 1 – 25 of 36) 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/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/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/gstreamer/gstplugins_bad/gst/pnm/
Dgstpnmdec.c110 s->current_size = 0; in gst_pnmdec_flush()
250 target = s->size - s->current_size; in gst_pnmdec_parse_ascii()
259 outdata = map.data + s->current_size; in gst_pnmdec_parse_ascii()
347 s->current_size += i; in gst_pnmdec_parse_ascii()
349 i, s->current_size, s->size); in gst_pnmdec_parse_ascii()
467 s->current_size = 0; in gst_pnmdec_handle_frame()
538 s->current_size += (size * 8); in gst_pnmdec_parse()
540 s->current_size += size; in gst_pnmdec_parse()
544 if (s->size <= s->current_size) { in gst_pnmdec_parse()
577 if (s->size && s->size <= s->current_size) { in gst_pnmdec_finish()
Dgstpnmdec.h45 guint size, last_val, current_size ; member
/third_party/glib/gio/
Dgio-tool-move.c55 char *current_size, *total_size, *rate; in show_progress() local
62 current_size = g_format_size (current_num_bytes); in show_progress()
68 current_size, total_size, rate); in show_progress()
72 g_free (current_size); in show_progress()
Dgio-tool-copy.c62 char *current_size, *total_size, *rate; in show_progress() local
69 current_size = g_format_size (current_num_bytes); in show_progress()
74 g_print (_("Transferred %s out of %s (%s/s)"), current_size, total_size, rate); in show_progress()
78 g_free (current_size); in show_progress()
Dgbufferedinputstream.c633 gsize current_size; in compact_buffer() local
637 current_size = priv->end - priv->pos; in compact_buffer()
639 memmove (priv->buffer, priv->buffer + priv->pos, current_size); in compact_buffer()
642 priv->end = current_size; in compact_buffer()
/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/gstreamer/gstplugins_bad/gst/mpegtsdemux/
Dtsdemux.c175 guint current_size; member
774 stream->current_size - frame_unit.sc_offset); in scan_keyframe_h264()
783 stream->current_size = gst_byte_writer_get_size (h264infos->sps); in scan_keyframe_h264()
798 stream->current_size - frame_unit.sc_offset); in scan_keyframe_h264()
799 h264infos->framedata.size = stream->current_size - frame_unit.sc_offset; in scan_keyframe_h264()
1905 stream->current_size = 0; in gst_ts_demux_stream_flush()
2368 stream->current_size = length; in gst_ts_demux_parse_pes_header()
2442 if (G_UNLIKELY (stream->current_size + size > stream->allocated_size)) { in gst_ts_demux_queue_data()
2446 } while (stream->current_size + size > stream->allocated_size); in gst_ts_demux_queue_data()
2449 memcpy (stream->data + stream->current_size, data, size); in gst_ts_demux_queue_data()
[all …]
/third_party/ffmpeg/libavformat/
Dcdxl.c111 uint32_t current_size, video_size, image_size; in cdxl_read_packet() local
129 current_size = AV_RB32(&cdxl->header[2]); in cdxl_read_packet()
145 if (current_size < (uint64_t)audio_size + video_size + CDXL_HEADER_SIZE) in cdxl_read_packet()
221 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
208 current_size = TOC[i].size; in aa_read_header()
209 if (current_size > largest_size) { in aa_read_header()
211 largest_size = current_size; in aa_read_header()
/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/python/Modules/_io/
Dbufferedio.c1517 Py_ssize_t current_size; in _bufferedreader_read_all() local
1521 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_all()
1522 if (current_size) { in _bufferedreader_read_all()
1524 self->buffer + self->pos, current_size); in _bufferedreader_read_all()
1527 self->pos += current_size; in _bufferedreader_read_all()
1550 if (current_size == 0) { in _bufferedreader_read_all()
1581 if (current_size == 0) { in _bufferedreader_read_all()
1591 current_size += PyBytes_GET_SIZE(data); in _bufferedreader_read_all()
1609 Py_ssize_t current_size; in _bufferedreader_read_fast() local
1611 current_size = Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t); in _bufferedreader_read_fast()
[all …]
/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/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/weston/clients/
Dfullscreen.c255 static int current_size = 0; in key_handler() local
286 current_size = (current_size + 1) % 4; in key_handler()
287 fullscreen->width = widths[current_size]; in key_handler()
288 fullscreen->height = heights[current_size]; in key_handler()
/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 …]
/third_party/python/Lib/test/
Dtest_largefile.py31 current_size = os.fstat(f.fileno())[stat.ST_SIZE]
32 if current_size == size+1:
35 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/gstreamer/gstplugins_bad/ext/dash/
Dgstdashdemux.h89 guint64 current_size; member
/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/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/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()

12