Home
last modified time | relevance | path

Searched refs:int_fb_list (Results 1 – 2 of 2) sorted by relevance

/external/libvpx/libvpx/vp9/common/
Dvp9_frame_buffers.c43 InternalFrameBufferList *const int_fb_list = in vp9_get_frame_buffer() local
45 if (int_fb_list == NULL) return -1; in vp9_get_frame_buffer()
48 for (i = 0; i < int_fb_list->num_internal_frame_buffers; ++i) { in vp9_get_frame_buffer()
49 if (!int_fb_list->int_fb[i].in_use) break; in vp9_get_frame_buffer()
52 if (i == int_fb_list->num_internal_frame_buffers) return -1; in vp9_get_frame_buffer()
54 if (int_fb_list->int_fb[i].size < min_size) { in vp9_get_frame_buffer()
55 vpx_free(int_fb_list->int_fb[i].data); in vp9_get_frame_buffer()
59 int_fb_list->int_fb[i].data = (uint8_t *)vpx_calloc(1, min_size); in vp9_get_frame_buffer()
60 if (!int_fb_list->int_fb[i].data) return -1; in vp9_get_frame_buffer()
61 int_fb_list->int_fb[i].size = min_size; in vp9_get_frame_buffer()
[all …]
/external/libaom/libaom/av1/common/
Dframe_buffers.c60 InternalFrameBufferList *const int_fb_list = in av1_get_frame_buffer() local
62 if (int_fb_list == NULL) return -1; in av1_get_frame_buffer()
65 for (i = 0; i < int_fb_list->num_internal_frame_buffers; ++i) { in av1_get_frame_buffer()
66 if (!int_fb_list->int_fb[i].in_use) break; in av1_get_frame_buffer()
69 if (i == int_fb_list->num_internal_frame_buffers) return -1; in av1_get_frame_buffer()
71 if (int_fb_list->int_fb[i].size < min_size) { in av1_get_frame_buffer()
72 aom_free(int_fb_list->int_fb[i].data); in av1_get_frame_buffer()
76 int_fb_list->int_fb[i].data = (uint8_t *)aom_calloc(1, min_size); in av1_get_frame_buffer()
77 if (!int_fb_list->int_fb[i].data) { in av1_get_frame_buffer()
78 int_fb_list->int_fb[i].size = 0; in av1_get_frame_buffer()
[all …]