MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / alloc_buffer

Function alloc_buffer

libavcodec/vaapi.c:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120static void *alloc_buffer(struct vaapi_context *vactx, int type, unsigned int size, uint32_t *buf_id)
121{
122 void *data = NULL;
123
124 *buf_id = 0;
125 if (vaCreateBuffer(vactx->display, vactx->context_id,
126 type, size, 1, NULL, buf_id) == VA_STATUS_SUCCESS)
127 vaMapBuffer(vactx->display, *buf_id, &data);
128
129 return data;
130}
131
132void *ff_vaapi_alloc_pic_param(struct vaapi_context *vactx, unsigned int size)
133{

Callers 3

ff_vaapi_alloc_pic_paramFunction · 0.85
ff_vaapi_alloc_iq_matrixFunction · 0.85
ff_vaapi_alloc_bitplaneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected