| 118 | } |
| 119 | |
| 120 | static 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 | |
| 132 | void *ff_vaapi_alloc_pic_param(struct vaapi_context *vactx, unsigned int size) |
| 133 | { |
no outgoing calls
no test coverage detected