/third_party/ffmpeg/libavutil/ |
D | mem_internal.h | 139 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()
|
D | mem.c | 478 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 …]
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-subset-cff-common.cc | 124 …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()
|
D | hb-machinery.hh | 107 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 ()); } \
|
D | hb-ot-hdmx-table.hh | 45 { 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()
|
D | hb-null.hh | 55 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…
|
D | hb-ot-color-cbdt-table.hh | 345 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 …]
|
D | hb-ot-color-sbix-table.hh | 84 { 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/harfbuzz/src/ |
D | hb-subset-cff-common.cc | 125 …subset_fdselect_size = FDSelect::min_size + FDSelect4::min_size + FDSelect4_Range::static_size * n… in hb_plan_subset_cff_fdselect() 130 …unsigned int format0_size = FDSelect::min_size + FDSelect0::min_size + HBUINT8::static_size * subs… in hb_plan_subset_cff_fdselect() 132 …unsigned int format3_size = FDSelect::min_size + FDSelect3::min_size + FDSelect3_Range::static_siz… in hb_plan_subset_cff_fdselect() 189 size -= FDSelect::min_size; in hb_serialize_cff_fdselect()
|
D | hb-machinery.hh | 107 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 ()); } \
|
D | hb-ot-hdmx-table.hh | 45 { 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()
|
D | hb-null.hh | 55 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…
|
D | hb-ot-color-cbdt-table.hh | 345 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 …]
|
D | hb-ot-color-sbix-table.hh | 84 { 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/flutter/skia/third_party/externals/harfbuzz/src/ |
D | hb-subset-cff-common.cc | 126 …subset_fdselect_size = FDSelect::min_size + FDSelect4::min_size + FDSelect4_Range::static_size * n… in hb_plan_subset_cff_fdselect() 131 …unsigned int format0_size = FDSelect::min_size + FDSelect0::min_size + HBUINT8::static_size * subs… in hb_plan_subset_cff_fdselect() 133 …unsigned int format3_size = FDSelect::min_size + FDSelect3::min_size + FDSelect3_Range::static_siz… in hb_plan_subset_cff_fdselect() 190 size -= FDSelect::min_size; in hb_serialize_cff_fdselect()
|
D | hb-ot-color-cbdt-table.hh | 423 if (unlikely (image_length < GlyphBitmapDataFormat17::min_size)) in get_extents() 431 if (unlikely (image_length < GlyphBitmapDataFormat18::min_size)) in get_extents() 476 if (unlikely (image_length < GlyphBitmapDataFormat17::min_size)) in reference_png() 481 image_offset + GlyphBitmapDataFormat17::min_size, in reference_png() 485 if (unlikely (image_length < GlyphBitmapDataFormat18::min_size)) in reference_png() 490 image_offset + GlyphBitmapDataFormat18::min_size, in reference_png() 494 if (unlikely (image_length < GlyphBitmapDataFormat19::min_size)) in reference_png() 499 image_offset + GlyphBitmapDataFormat19::min_size, in reference_png()
|
D | hb-machinery.hh | 118 static constexpr unsigned min_size = (size); \ 125 static constexpr unsigned min_size = (size) 130 static constexpr unsigned min_size = (size) 134 static constexpr unsigned min_size = (size) 140 static constexpr unsigned min_size = (size) 143 unsigned int get_size () const { return (size - (array).min_size + (array).get_size ()); } \
|
D | hb-ot-hdmx-table.hh | 45 { return hb_ceil_to_4 (min_size + count * HBUINT8::static_size); } in get_size() 88 { return min_size + numRecords * sizeDeviceRecord; } in get_size() 154 return sizeDeviceRecord - DeviceRecord::min_size; in get_num_glyphs() 162 sizeDeviceRecord >= DeviceRecord::min_size && in sanitize()
|
D | hb-ot-cff1-table.hh | 203 …Encoding0 *fmt0 = c->allocate_size<Encoding0> (Encoding0::min_size + HBUINT8::static_size * enc_co… in serialize() 218 …Encoding1 *fmt1 = c->allocate_size<Encoding1> (Encoding1::min_size + Encoding1_Range::static_size … in serialize() 231 …CFF1SuppEncData *suppData = c->allocate_size<CFF1SuppEncData> (CFF1SuppEncData::min_size + SuppEnc… in serialize() 248 unsigned int size = min_size; in calculate_serialized_size() 250 size += Encoding0::min_size + HBUINT8::static_size * enc_count; in calculate_serialized_size() 252 size += Encoding1::min_size + Encoding1_Range::static_size * enc_count; in calculate_serialized_size() 254 size += CFF1SuppEncData::min_size + SuppEncoding::static_size * supp_count; in calculate_serialized_size() 260 unsigned int size = min_size; in get_size() 476 …Charset0 *fmt0 = c->allocate_size<Charset0> (Charset0::min_size + HBUINT16::static_size * (num_gly… in serialize() 488 …Charset1 *fmt1 = c->allocate_size<Charset1> (Charset1::min_size + Charset1_Range::static_size * si… in serialize() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/debugutils/ |
D | gstchopmydata.c | 158 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/ |
D | vn_cs.c | 151 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/ |
D | af_speechnorm.c | 354 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; \
|
/third_party/flutter/skia/third_party/externals/libwebp/src/demux/ |
D | demux.c | 210 static ParseStatus StoreFrame(int frame_num, uint32_t min_size, in StoreFrame() argument 215 MemDataSize(mem) < min_size); in StoreFrame() 295 uint32_t min_size, uint32_t actual_size, in NewFrame() argument 297 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR; in NewFrame() 298 if (actual_size < min_size) return PARSE_ERROR; in NewFrame() 299 if (MemDataSize(mem) < min_size) return PARSE_NEED_MORE_DATA; in NewFrame() 368 const size_t min_size = RIFF_HEADER_SIZE + CHUNK_HEADER_SIZE; in ReadHeader() local 372 if (MemDataSize(mem) < min_size) return PARSE_NEED_MORE_DATA; in ReadHeader() 393 const size_t min_size = CHUNK_HEADER_SIZE; in ParseSingleImage() local 400 if (SizeIsInvalid(mem, min_size)) return PARSE_ERROR; in ParseSingleImage() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/demux/ |
D | demux.c | 210 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/mesa3d/src/broadcom/simulator/ |
D | v3d_simulator_wrapper.cpp | 54 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()
|