/third_party/ffmpeg/libavutil/ |
H A D | mem.c | 505 void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size) in av_fast_realloc() argument 509 if (min_size <= *size) in av_fast_realloc() 516 if (min_size > max_size) { in av_fast_realloc() 521 min_size = FFMIN(max_size, FFMAX(min_size + min_size / 16 + 32, min_size)); in av_fast_realloc() 523 ptr = av_realloc(ptr, min_size); in av_fast_realloc() 524 /* we could set this to the unmodified min_size but this is safer in av_fast_realloc() 528 min_size in av_fast_realloc() 535 fast_malloc(void *ptr, unsigned int *size, size_t min_size, int zero_realloc) fast_malloc() argument 565 av_fast_malloc(void *ptr, unsigned int *size, size_t min_size) av_fast_malloc() argument 570 av_fast_mallocz(void *ptr, unsigned int *size, size_t min_size) av_fast_mallocz() argument [all...] |
H A D | mem.h | 374 * @param[in] min_size Desired minimal size of buffer `ptr` 381 void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size); 408 * @param[in] min_size Desired minimal size of buffer `*ptr` 412 void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size); 429 * @param[in] min_size Desired minimal size of buffer `*ptr` 432 void av_fast_mallocz(void *ptr, unsigned int *size, size_t min_size);
|
H A D | bprint.c | 39 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/ |
H A D | span.cc | 12 auto min_size = std::min(x.size(), y.size()); variable 13 const int r = min_size == 0 ? 0 : memcmp(x.data(), y.data(), min_size); 26 auto min_size = std::min(x.size(), y.size()); variable 27 const int r = min_size == 0 ? 0 : memcmp(x.data(), y.data(), min_size);
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-subset-cff-common.cc | 124 subset_fdselect_size = FDSelect::min_size + FDSelect4::min_size + FDSelect4_Range::static_size * num_ranges + HBUINT32::static_size; in hb_plan_subset_cff_fdselect() 129 unsigned int format0_size = FDSelect::min_size + FDSelect0::min_size + HBUINT8::static_size * subset_num_glyphs; in hb_plan_subset_cff_fdselect() 131 unsigned int format3_size = FDSelect::min_size + FDSelect3::min_size + FDSelect3_Range::static_size * num_ranges + HBUINT16::static_size; in hb_plan_subset_cff_fdselect() 185 size -= FDSelect::min_size; in hb_serialize_cff_fdselect()
|
H A D | hb-null.hh | 42 /* Use SFINAE to sniff whether T has min_size; in which case return the larger 46 * by defining min_size but *not* null_size. */ 55 struct _hb_null_size<T, hb_void_t<decltype (T::min_size)>> 65 * Returns T::static_size if T::min_size is defined, or sizeof (T) otherwise. */ 70 struct _hb_static_size<T, hb_void_t<decltype (T::min_size)>> : hb_integral_constant<unsigned, T::static_size> {}; 78 struct _hb_min_size<T, hb_void_t<decltype (T::min_size)>> : hb_integral_constant<unsigned, T::min_size> {};
|
H A 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()
|
H A 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 ()); } \
|
H A 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...] |
H A 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 unsigned int glyph_offset = strike_offset + (unsigned int) imageOffsetsZ[glyph_id] + SBIXGlyph::min_size; in get_glyph_blob() 116 unsigned 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()
|
H A D | hb-ot-cff1-table.hh | 196 Encoding0 *fmt0 = c->allocate_size<Encoding0> (Encoding0::min_size + HBUINT8::static_size * enc_count); in serialize() 213 Encoding1 *fmt1 = c->allocate_size<Encoding1> (Encoding1::min_size + Encoding1_Range::static_size * code_ranges.length); in serialize() 230 CFF1SuppEncData *suppData = c->allocate_size<CFF1SuppEncData> (CFF1SuppEncData::min_size + SuppEncoding::static_size * supp_codes.length); in serialize() 245 unsigned int size = min_size; in get_size() 467 Charset0 *fmt0 = c->allocate_size<Charset0> (Charset0::min_size + HBUINT16::static_size * (num_glyphs - 1)); in serialize() 481 Charset1 *fmt1 = c->allocate_size<Charset1> (Charset1::min_size + Charset1_Range::static_size * sid_ranges.length); in serialize() 495 Charset2 *fmt2 = c->allocate_size<Charset2> (Charset2::min_size + Charset2_Range::static_size * sid_ranges.length); in serialize() 515 case 0: return min_size + u.format0.get_size (num_glyphs); in get_size() 516 case 1: return min_size + u.format1.get_size (num_glyphs); in get_size() 517 case 2: return min_size in get_size() [all...] |
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_cs.c | 151 size_t min_size) in vn_cs_encoder_init() 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() 148 vn_cs_encoder_init(struct vn_cs_encoder *enc, struct vn_instance *instance, enum vn_cs_encoder_storage_type storage_type, size_t min_size) vn_cs_encoder_init() argument
|
/third_party/mesa3d/src/broadcom/simulator/ |
H A 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()
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_speechnorm.c | 347 int min_size = nb_samples - n; \ 358 min_size = FFMIN(min_size, cc->pi_size); \ 362 av_assert1(min_size > 0); \ 376 consume_pi(cc, min_size); \ 380 for (int i = n; !ctx->is_disabled && i < n + min_size; i++) { \ 381 ptype g = tlerp(s->prev_gain, gain, (i - n) / (ptype)min_size); \ 387 n += min_size; \
|
H A D | af_compensationdelay.c | 70 unsigned min_size, new_size = 1; in config_input() local 75 min_size = inlink->sample_rate * COMP_DELAY_MAX_DELAY; in config_input() 77 while (new_size < min_size) in config_input()
|
/third_party/backends/backend/genesys/ |
H A D | motor.cpp | 106 unsigned min_size, unsigned max_size) in create_slope_table_for_speed() 108 DBG_HELPER_ARGS(dbg, "target_speed_w: %d, step_type: %d, steps_alignment: %d, min_size: %d", in create_slope_table_for_speed() 109 target_speed_w, static_cast<unsigned>(step_type), steps_alignment, min_size); in create_slope_table_for_speed() 144 (table.table.size() % steps_alignment != 0 || table.table.size() < min_size)) in create_slope_table_for_speed() 104 create_slope_table_for_speed(const MotorSlope& slope, unsigned target_speed_w, StepType step_type, unsigned steps_alignment, unsigned min_size, unsigned max_size) create_slope_table_for_speed() argument
|
/third_party/ffmpeg/libavcodec/ |
H A D | h2645_parse.c | 262 static int get_bit_length(H2645NAL *nal, int min_size, int skip_trailing_zeros) in get_bit_length() argument 273 if (size <= min_size) { in get_bit_length() 274 if (nal->size < min_size) in get_bit_length() 276 size = min_size; in get_bit_length() 351 int min_size = size; in alloc_rbsp_buffer() local 360 memset(rbsp->rbsp_buffer + min_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in alloc_rbsp_buffer()
|
H A D | utils.c | 48 void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size) in av_fast_padded_malloc() argument 51 if (min_size > SIZE_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in av_fast_padded_malloc() 56 av_fast_mallocz(p, size, min_size + AV_INPUT_BUFFER_PADDING_SIZE); in av_fast_padded_malloc() 58 memset(*p + min_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in av_fast_padded_malloc() 61 void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size) in av_fast_padded_mallocz() argument 64 if (min_size > SIZE_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { in av_fast_padded_mallocz() 69 av_fast_malloc(p, size, min_size + AV_INPUT_BUFFER_PADDING_SIZE); in av_fast_padded_mallocz() 71 memset(*p, 0, min_size + AV_INPUT_BUFFER_PADDING_SIZE); in av_fast_padded_mallocz()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
H A D | low_level_alloc.cc | 217 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/protobuf/src/google/protobuf/stubs/ |
H A D | stringpiece.h | 294 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 = in operator <() 410 const int r = memcmp(x.data(), y.data(), static_cast<size_t>(min_size)); in operator <()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_upload_mgr.c | 178 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() 231 * The caller of u_upload_alloc_buffer will consume min_size bytes, in u_upload_alloc_buffer() 232 * so init the buffer_private_refcount to 1 + size - min_size, instead in u_upload_alloc_buffer() 235 upload->buffer_private_refcount = 1 + (size - min_size); in u_upload_alloc_buffer()
|
/third_party/skia/third_party/externals/libwebp/src/demux/ |
H A D | demux.c | 208 // Store image bearing chunks to 'frame'. 'min_size' is an optional size 210 static ParseStatus StoreFrame(int frame_num, uint32_t min_size, in StoreFrame() argument 215 MemDataSize(mem) < min_size); in StoreFrame() 295 // enough data ('min_size') to parse the payload. 299 uint32_t min_size, uint32_t actual_size, in NewFrame() 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) retur in ReadHeader() 298 NewFrame(const MemBuffer* const mem, uint32_t min_size, uint32_t actual_size, Frame** frame) NewFrame() argument 402 const size_t min_size = CHUNK_HEADER_SIZE; ParseSingleImage() local [all...] |
/third_party/mesa3d/src/util/ |
H A D | ralloc.c | 597 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()
|
/third_party/mesa3d/src/gallium/drivers/virgl/ |
H A D | virgl_staging_mgr.c | 35 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/libfuse/lib/ |
H A D | buffer.c | 37 static size_t min_size(size_t s1, size_t s2) in min_size() function 125 size_t this_len = min_size(tmp.size, len); in fuse_buf_fd_to_fd() 305 len = min_size(src_len, dst_len); in fuse_buf_copy()
|