Lines Matching refs:array
319 MixVideoFrame *get_expected_frame_from_array(GPtrArray *array, in get_expected_frame_from_array() argument
330 if (!array || !expected || !tolerance || !frametimestamp || expected < tolerance) { in get_expected_frame_from_array()
335 len = array->len; in get_expected_frame_from_array()
341 MixVideoFrame *_frame = (MixVideoFrame *) g_ptr_array_index(array, idx); in get_expected_frame_from_array()
355 g_ptr_array_index(array, idx) = NULL; in get_expected_frame_from_array()
377 MixVideoFrame *_frame = (MixVideoFrame *) g_ptr_array_index(array, lowest_timestamp_idx); in get_expected_frame_from_array()
379 g_ptr_array_index(array, lowest_timestamp_idx) = NULL; in get_expected_frame_from_array()
388 void add_frame_into_array(GPtrArray *array, MixVideoFrame *mvf) { in add_frame_into_array() argument
393 if (!array || !mvf) { in add_frame_into_array()
398 len = array->len; in add_frame_into_array()
403 frame = g_ptr_array_index(array, idx); in add_frame_into_array()
406 g_ptr_array_index(array, idx) = (gpointer) mvf; in add_frame_into_array()
413 g_ptr_array_add(array, (gpointer) mvf); in add_frame_into_array()