Home
last modified time | relevance | path

Searched refs:g_malloc (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/third_party/glib/glib/tests/
Dmem-overflow.c57 MEM_OVERFLOW_TEST (realloc_n_a_a, p = g_malloc (1); p = g_realloc_n (p, a, a))
58 MEM_OVERFLOW_TEST (realloc_n_a_b, p = g_malloc (1); p = g_realloc_n (p, a, b))
59 MEM_OVERFLOW_TEST (realloc_n_b_a, p = g_malloc (1); p = g_realloc_n (p, b, a))
60 MEM_OVERFLOW_TEST (realloc_n_b_b, p = g_malloc (1); p = g_realloc_n (p, b, b))
68 MEM_OVERFLOW_TEST (renew_a, p = g_malloc (1); p = g_renew (X, p, a))
69 MEM_OVERFLOW_TEST (renew_b, p = g_malloc (1); p = g_renew (X, p, b))
76 p = g_malloc (0); in mem_overflow_malloc_0()
85 p = g_malloc (10); in mem_overflow_realloc_0()
112 q = g_malloc (1); in mem_overflow()
Dsort.c35 data = g_malloc (10000 * sizeof (int)); in test_sort_basic()
75 data = g_malloc (10000 * sizeof (SortItem)); in test_sort_stable()
99 data = g_malloc (10000 * sizeof (BigItem)); in test_sort_big()
Dutils.c588 a = g_malloc (5); in test_clear_pointer()
592 a = g_malloc (5); in test_clear_pointer()
644 gpointer obj = g_malloc (5); in get_obj()
688 a = g_malloc (16); in test_misc_mem()
782 list = g_list_prepend (list, g_malloc (16)); in test_clear_list()
806 slist = g_slist_prepend (slist, g_malloc (16)); in test_clear_slist()
Dutf8-pointer.c41 p = (const gchar **) g_malloc (num_chars * sizeof (gchar *)); in test_utf8()
106 gchar *str_copy = g_malloc (str_size); in test_find()
Dbase64.c21 data2 = g_malloc (length); in test_incremental()
22 text = g_malloc (length * 4); in test_incremental()
386 decoded = g_malloc (len / 4 * 3 + 3); in test_base64_decode_smallblock()
/third_party/gstreamer/gstplugins_bad/ext/curl/
Dgstcurlqueue.c67 g_malloc (sizeof (GstCurlHttpSrcQueueElement)); in gst_curl_http_src_add_queue_item()
93 g_malloc (sizeof (GstCurlHttpSrcQueueElement)); in gst_curl_http_src_add_queue_item()
103 g_malloc (sizeof (GstCurlHttpSrcQueueElement)); in gst_curl_http_src_add_queue_item()
/third_party/glib/glib/
Dgunicollate.c241 result = g_malloc (result_len + 1); in collate_key_to_string()
405 result = g_malloc (result_len + 1); in g_utf8_collate_key()
433 result = g_malloc (xfrm_len + 1); in g_utf8_collate_key()
452 result = g_malloc (xfrm_len + 2); in g_utf8_collate_key()
463 result = g_malloc (xfrm_len + 2); in g_utf8_collate_key()
Dgvarianttype.c398 new = g_malloc (length + 1); in g_variant_type_copy()
1209 new = g_malloc (size + 1); in g_variant_type_new_array()
1239 new = g_malloc (size + 1); in g_variant_type_new_maybe()
1274 new = g_malloc (1 + keysize + valsize + 1); in g_variant_type_new_dict_entry()
Dgrcbox.c223 allocated = g_malloc (real_size + sizeof (gpointer)); in g_rc_box_alloc_full()
236 allocated = g_malloc (real_size); in g_rc_box_alloc_full()
Dgmem.c100 g_malloc (gsize n_bytes) in g_malloc() function
344 return g_malloc (n_blocks * n_block_bytes); in g_malloc_n()
/third_party/gstreamer/gstreamer/docs/random/ensonic/
Dembedded.txt42 == g_malloc vs. g_try_malloc ==
43 g_malloc/g_new should not be used when allocating space of a size that is
47 $ find . -name "*.c" -exec grep "g_malloc" {} \; | wc -l
/third_party/glib/gio/tests/
Dconverter-stream.c304 converted1 = g_malloc (100*1000); /* Large enough */ in test_expander()
305 converted2 = g_malloc (100*1000); /* Large enough */ in test_expander()
399 expanded = g_malloc (100*1000); /* Large enough */ in test_compressor()
411 converted = g_malloc (100*1000); /* Large enough */ in test_compressor()
679 orig = g_malloc (LEFTOVER_BUFSIZE); in test_converter_leftover()
680 converted = g_malloc (LEFTOVER_BUFSIZE); in test_converter_leftover()
753 data0 = g_malloc (DATA_LENGTH * sizeof (guint32)); in test_roundtrip()
978 expanded = g_malloc (100*1000); /* Large enough */ in test_converter_pollable()
993 converted = g_malloc (100*1000); /* Large enough */ in test_converter_pollable()
1120 data0 = g_malloc (DATA_LENGTH * sizeof (guint32)); in test_truncation()
Dfilter-streams.c243 expected_data = g_malloc (20); in test_input_async()
259 expected_data = g_malloc (20); in test_input_async()
346 expected_data = g_malloc (20); in test_output_async()
362 expected_data = g_malloc (20); in test_output_async()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/mpegts/
Dgstmpegtsdescriptor.c354 out_buffer = g_malloc (*out_size + 3); in dvb_text_from_utf8()
375 out_buffer = g_malloc (*out_size + 1); in dvb_text_from_utf8()
386 out_buffer = g_malloc (*out_size + 1); in dvb_text_from_utf8()
396 out_buffer = g_malloc (*out_size + 1); in dvb_text_from_utf8()
429 pos = tmp = g_malloc (length * 2); in convert_to_utf8()
664 descriptor->data = g_malloc (length + 2); in _new_descriptor()
686 descriptor->data = g_malloc (length + 3); in _new_descriptor_with_extension()
/third_party/libsoup/tests/
Dchunk-io-test.c375 buf = g_malloc (raw_contents->length); in do_io_tests()
412 buf = g_malloc (raw_contents->length); in do_io_tests()
451 buf = g_malloc (chunkified->len); in do_io_tests()
496 buf = g_malloc (chunkified->len); in do_io_tests()
557 buf = g_malloc (chunkified->len); in do_io_tests()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dvideo-resampler.c225 resampler->taps = g_malloc (sizeof (gdouble) * max_taps * out_size); in resampler_calculate_taps()
226 n_taps = resampler->n_taps = g_malloc (sizeof (guint32) * out_size); in resampler_calculate_taps()
227 offset = resampler->offset = g_malloc (sizeof (guint32) * out_size); in resampler_calculate_taps()
228 phase = resampler->phase = g_malloc (sizeof (guint32) * out_size); in resampler_calculate_taps()
/third_party/gstreamer/gstplugins_bad/ext/opencv/
Dgstsegmentation.cpp320 g_malloc (sizeof (codeBook) * in gst_segmentation_set_caps()
529 (code_element **) g_malloc (sizeof (code_element *) * in update_codebook()
534 foo[c->numEntries] = (code_element *) g_malloc (sizeof (code_element)); in update_codebook()
576 int *keep = (int *) g_malloc (sizeof (int) * (c->numEntries)); in clear_stale_entries()
592 foo = (code_element **) g_malloc (sizeof (code_element *) * keepCnt); in clear_stale_entries()
/third_party/gstreamer/gstplugins_bad/sys/dvb/
Dcamresourcemanager.c84 buffer = g_malloc (buffer_size); in send_simple()
126 buffer = g_malloc (buffer_size); in send_profile_reply()
/third_party/glib/glib/gnulib/
Dg-gnulib.h33 #define malloc g_malloc
/third_party/gstreamer/gstreamer/gst/printf/
Dgst-printf.h35 #define malloc g_malloc
/third_party/gstreamer/gstreamer/libs/gst/helpers/
Dgst-plugin-scanner.c49 my_argv = g_malloc (my_argc * sizeof (char *)); in main()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/fft/
Dkiss_fft_f64.h36 #define KISS_FFT_F64_MALLOC g_malloc
Dkiss_fft_f32.h36 #define KISS_FFT_F32_MALLOC g_malloc
Dkiss_fft_s32.h36 #define KISS_FFT_S32_MALLOC g_malloc
Dkiss_fft_s16.h36 #define KISS_FFT_S16_MALLOC g_malloc

12345678910>>...12