Searched refs:want_alloc (Results 1 – 4 of 4) sorted by relevance
/third_party/gstreamer/gstreamer/gst/ |
D | gstbufferlist.c | 416 guint want_alloc; in gst_buffer_list_insert() local 432 want_alloc = list->n_buffers + 1; in gst_buffer_list_insert() 434 if (want_alloc > list->n_allocated) { in gst_buffer_list_insert() 438 want_alloc = MAX (GST_ROUND_UP_16 (want_alloc), list->n_allocated * 2); in gst_buffer_list_insert() 441 list->buffers = g_renew (GstBuffer *, list->buffers, want_alloc); in gst_buffer_list_insert() 443 list->buffers = g_new0 (GstBuffer *, want_alloc); in gst_buffer_list_insert() 448 list->n_allocated = want_alloc; in gst_buffer_list_insert()
|
D | gststructure.c | 201 guint want_alloc; in _structure_append_val() local 206 want_alloc = in _structure_append_val() 209 impl->fields = g_renew (GstStructureField, impl->fields, want_alloc); in _structure_append_val() 211 impl->fields = g_new0 (GstStructureField, want_alloc); in _structure_append_val() 216 impl->fields_alloc = want_alloc; in _structure_append_val()
|
D | gstvalue.c | 220 guint want_alloc; in resize_value_list() local 225 want_alloc = MAX (GST_ROUND_UP_8 (vlist->len + 1), vlist->allocated * 2); in resize_value_list() 228 vlist->fields = g_renew (GValue, vlist->fields, want_alloc); in resize_value_list() 230 vlist->fields = g_new0 (GValue, want_alloc); in resize_value_list() 234 vlist->allocated = want_alloc; in resize_value_list()
|
/third_party/glib/glib/ |
D | garray.c | 974 guint want_alloc; in g_array_maybe_expand() local 980 want_alloc = g_array_elt_len (array, array->len + len + in g_array_maybe_expand() 983 if (want_alloc > array->alloc) in g_array_maybe_expand() 985 want_alloc = g_nearest_pow (want_alloc); in g_array_maybe_expand() 986 want_alloc = MAX (want_alloc, MIN_ARRAY_SIZE); in g_array_maybe_expand() 988 array->data = g_realloc (array->data, want_alloc); in g_array_maybe_expand() 991 memset (array->data + array->alloc, 0, want_alloc - array->alloc); in g_array_maybe_expand() 993 array->alloc = want_alloc; in g_array_maybe_expand()
|