Home
last modified time | relevance | path

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

123456

/third_party/ffmpeg/libavutil/
Dmem_internal.h139 static inline int ff_fast_malloc(void *ptr, unsigned int *size, size_t min_size, int zero_realloc) in ff_fast_malloc() argument
144 if (min_size <= *size) { in ff_fast_malloc()
145 av_assert0(val || !min_size); in ff_fast_malloc()
148 min_size = FFMAX(min_size + min_size / 16 + 32, min_size); in ff_fast_malloc()
150 val = zero_realloc ? av_mallocz(min_size) : av_malloc(min_size); in ff_fast_malloc()
153 min_size = 0; in ff_fast_malloc()
154 *size = min_size; in ff_fast_malloc()
Dmem.c478 void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size) in av_fast_realloc() argument
480 if (min_size <= *size) in av_fast_realloc()
483 if (min_size > max_alloc_size) { in av_fast_realloc()
488 min_size = FFMIN(max_alloc_size, FFMAX(min_size + min_size / 16 + 32, min_size)); in av_fast_realloc()
490 ptr = av_realloc(ptr, min_size); in av_fast_realloc()
495 min_size = 0; in av_fast_realloc()
497 *size = min_size; in av_fast_realloc()
502 void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size) in av_fast_malloc() argument
504 ff_fast_malloc(ptr, size, min_size, 0); in av_fast_malloc()
507 void av_fast_mallocz(void *ptr, unsigned int *size, size_t min_size) in av_fast_mallocz() argument
[all …]
Dmem.h382 void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size);
413 void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size);
433 void av_fast_mallocz(void *ptr, unsigned int *size, size_t min_size);
Dbprint.c39 unsigned min_size, new_size; in av_bprint_alloc() local
45 min_size = buf->len + 1 + FFMIN(UINT_MAX - buf->len - 1, room); in av_bprint_alloc()
47 if (new_size < min_size) in av_bprint_alloc()
48 new_size = FFMIN(buf->size_max, min_size); in av_bprint_alloc()
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/
Dspan.cc12 auto min_size = std::min(x.size(), y.size()); in SpanLessThan() local
13 const int r = min_size == 0 ? 0 : memcmp(x.data(), y.data(), min_size); in SpanLessThan()
26 auto min_size = std::min(x.size(), y.size()); in SpanLessThan() local
27 const int r = min_size == 0 ? 0 : memcmp(x.data(), y.data(), min_size); in SpanLessThan()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-subset-cff-common.cc124 …subset_fdselect_size = FDSelect::min_size + FDSelect4::min_size + FDSelect4_Range::static_size * n… in hb_plan_subset_cff_fdselect()
129 …unsigned int format0_size = FDSelect::min_size + FDSelect0::min_size + HBUINT8::static_size * subs… in hb_plan_subset_cff_fdselect()
131 …unsigned int format3_size = FDSelect::min_size + FDSelect3::min_size + FDSelect3_Range::static_siz… in hb_plan_subset_cff_fdselect()
185 size -= FDSelect::min_size; in hb_serialize_cff_fdselect()
Dhb-machinery.hh107 static constexpr unsigned min_size = (size); \
114 static constexpr unsigned min_size = (size)
119 static constexpr unsigned min_size = (size)
123 static constexpr unsigned min_size = (size)
129 static constexpr unsigned min_size = (size)
132 unsigned int get_size () const { return (size - (array).min_size + (array).get_size ()); } \
Dhb-ot-hdmx-table.hh45 { return hb_ceil_to_4 (min_size + count * HBUINT8::static_size); } in get_size()
88 { return min_size + numRecords * sizeDeviceRecord; } in get_size()
151 return sizeDeviceRecord - DeviceRecord::min_size; in get_num_glyphs()
159 sizeDeviceRecord >= DeviceRecord::min_size && in sanitize()
Dhb-null.hh55 struct _hb_null_size<T, hb_void_t<decltype (T::min_size)>>
70 struct _hb_static_size<T, hb_void_t<decltype (T::min_size)>> : hb_integral_constant<unsigned, T::st…
78 struct _hb_min_size<T, hb_void_t<decltype (T::min_size)>> : hb_integral_constant<unsigned, T::min_s…
Dhb-ot-color-cbdt-table.hh345 case 1: *size += IndexSubtableFormat1::min_size; break; in populate_header()
346 case 3: *size += IndexSubtableFormat3::min_size; break; in populate_header()
463 bitmap_size_context->size += IndexSubtableRecord::min_size; in add_new_record()
849 if (unlikely (image_length < GlyphBitmapDataFormat17::min_size)) in get_extents()
856 if (unlikely (image_length < GlyphBitmapDataFormat18::min_size)) in get_extents()
897 if (unlikely (image_length < GlyphBitmapDataFormat17::min_size)) in reference_png()
901 image_offset + GlyphBitmapDataFormat17::min_size, in reference_png()
906 if (unlikely (image_length < GlyphBitmapDataFormat18::min_size)) in reference_png()
910 image_offset + GlyphBitmapDataFormat18::min_size, in reference_png()
915 if (unlikely (image_length < GlyphBitmapDataFormat19::min_size)) in reference_png()
[all …]
Dhb-ot-color-sbix-table.hh84 { return min_size + num_glyphs * HBUINT32::static_size; } in get_size()
111 imageOffsetsZ[glyph_id + 1] - imageOffsetsZ[glyph_id] <= SBIXGlyph::min_size || in get_glyph_blob()
115 …ed int glyph_offset = strike_offset + (unsigned int) imageOffsetsZ[glyph_id] + SBIXGlyph::min_size; in get_glyph_blob()
116 …ned int glyph_length = imageOffsetsZ[glyph_id + 1] - imageOffsetsZ[glyph_id] - SBIXGlyph::min_size; in get_glyph_blob()
162 imageOffsetsZ[old_gid + 1] - imageOffsetsZ[old_gid] <= SBIXGlyph::min_size) || in subset()
170 unsigned int glyph_data_length = delta - SBIXGlyph::min_size; in subset()
/third_party/gstreamer/gstplugins_bad/gst/debugutils/
Dgstchopmydata.c158 chopmydata->min_size = DEFAULT_MIN_SIZE; in gst_chop_my_data_init()
176 chopmydata->min_size = g_value_get_int (value); in gst_chop_my_data_set_property()
201 g_value_set_int (value, chopmydata->min_size); in gst_chop_my_data_get_property()
263 begin = (chopmydata->min_size + chopmydata->step_size - 1) / in get_next_size()
304 guint min_size = chopmydata->min_size; in gst_chop_my_data_process() local
306 while (gst_adapter_available (chopmydata->adapter) >= min_size) { in gst_chop_my_data_process()
307 buffer = gst_adapter_take_buffer (chopmydata->adapter, min_size); in gst_chop_my_data_process()
/third_party/mesa3d/src/virtio/vulkan/
Dvn_cs.c151 size_t min_size) in vn_cs_encoder_init() argument
159 enc->min_buffer_size = min_size; in vn_cs_encoder_init()
186 next_array_size(uint32_t cur_size, uint32_t min_size) in next_array_size() argument
188 const uint32_t next_size = cur_size ? cur_size * 2 : min_size; in next_array_size()
193 next_buffer_size(size_t cur_size, size_t min_size, size_t need) in next_buffer_size() argument
195 size_t next_size = cur_size ? cur_size * 2 : min_size; in next_buffer_size()
/third_party/ffmpeg/libavfilter/
Daf_speechnorm.c354 int min_size = nb_samples - n; \
364 min_size = FFMIN(min_size, cc->pi_size); \
368 av_assert0(min_size > 0); \
381 consume_pi(cc, min_size); \
385 for (int i = n; i < n + min_size; i++) { \
386 ptype g = lerp(s->prev_gain, gain, (i - n) / (double)min_size); \
392 n += min_size; \
Daf_compensationdelay.c100 unsigned min_size, new_size = 1; in config_input() local
104 min_size = inlink->sample_rate * COMP_DELAY_MAX_DELAY; in config_input()
106 while (new_size < min_size) in config_input()
/third_party/mesa3d/src/broadcom/simulator/
Dv3d_simulator_wrapper.cpp54 bool v3d_hw_alloc_mem(struct v3d_hw *hw, size_t min_size) in v3d_hw_alloc_mem() argument
56 return hw->alloc_mem(min_size) == V3D_HW_ALLOC_SUCCESS; in v3d_hw_alloc_mem()
/third_party/skia/third_party/externals/libwebp/src/demux/
Ddemux.c210 static ParseStatus StoreFrame(int frame_num, uint32_t min_size, in StoreFrame() argument
215 MemDataSize(mem) < min_size); in StoreFrame()
299 uint32_t min_size, uint32_t actual_size, in NewFrame() argument
301 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR; in NewFrame()
302 if (actual_size < min_size) return PARSE_ERROR; in NewFrame()
303 if (MemDataSize(mem) < min_size) return PARSE_NEED_MORE_DATA; in NewFrame()
377 const size_t min_size = RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE; in ReadHeader() local
381 if (MemDataSize(mem) < min_size) return PARSE_NEED_MORE_DATA; in ReadHeader()
402 const size_t min_size = CHUNK_HEADER_SIZE; in ParseSingleImage() local
409 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR; in ParseSingleImage()
[all …]
/third_party/protobuf/src/google/protobuf/stubs/
Dstringpiece.h294 const stringpiece_ssize_type min_size = in compare() local
296 int r = memcmp(ptr_, x.ptr_, static_cast<size_t>(min_size)); in compare()
408 const stringpiece_ssize_type min_size = variable
410 const int r = memcmp(x.data(), y.data(), static_cast<size_t>(min_size));
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc217 const size_t min_size; member
356 min_size(2 * round_up), in Arena()
483 a->levels = LLA_SkiplistLevels(a->header.size, arena->min_size, in Coalesce()
498 f->levels = LLA_SkiplistLevels(f->header.size, arena->min_size, in AddToFreelist()
534 int i = LLA_SkiplistLevels(req_rnd, arena->min_size, nullptr) - 1; in DoAllocWithArena()
585 if (CheckedAdd(req_rnd, arena->min_size) <= s->header.size) { in DoAllocWithArena()
/third_party/cef/patch/patches/
Dset_resize_background_color.patch5 @@ -142,6 +142,10 @@ void WebView::EnableSizingFromWebContents(const gfx::Size& min_size,
21 void EnableSizingFromWebContents(const gfx::Size& min_size,
/third_party/mesa3d/src/gallium/drivers/virgl/
Dvirgl_staging_mgr.c35 virgl_staging_alloc_buffer(struct virgl_staging_mgr *staging, unsigned min_size) in virgl_staging_alloc_buffer() argument
46 size = align(MAX2(staging->default_size, min_size), 4096); in virgl_staging_alloc_buffer()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_upload_mgr.c178 u_upload_alloc_buffer(struct u_upload_mgr *upload, unsigned min_size) in u_upload_alloc_buffer() argument
190 size = align(MAX2(upload->default_size, min_size), 4096); in u_upload_alloc_buffer()
235 upload->buffer_private_refcount = 1 + (size - min_size); in u_upload_alloc_buffer()
/third_party/cef/libcef/browser/
Dimage_impl.cc267 int32_t min_size = std::numeric_limits<int32_t>::max(); in AddBitmaps() local
270 if (size < min_size) in AddBitmaps()
271 min_size = size; in AddBitmaps()
273 scale_1x_size = min_size; in AddBitmaps()
/third_party/ffmpeg/libavcodec/
Dlibvpxdec.c49 static int get_frame_buffer(void *priv, size_t min_size, vpx_codec_frame_buffer_t *fb) in get_frame_buffer() argument
54 if (min_size > ctx->pool_size) { in get_frame_buffer()
57 ctx->pool = av_buffer_pool_init(min_size, av_buffer_allocz); in get_frame_buffer()
62 ctx->pool_size = min_size; in get_frame_buffer()
/third_party/mesa3d/src/util/
Dralloc.c597 create_linear_node(void *ralloc_ctx, unsigned min_size) in create_linear_node() argument
601 min_size += sizeof(linear_size_chunk); in create_linear_node()
603 if (likely(min_size < MIN_LINEAR_BUFSIZE)) in create_linear_node()
604 min_size = MIN_LINEAR_BUFSIZE; in create_linear_node()
606 node = ralloc_size(ralloc_ctx, sizeof(linear_header) + min_size); in create_linear_node()
614 node->size = min_size; in create_linear_node()

123456