33 static void destroy_buffers(VADisplay display, VABufferID *buffers,
unsigned int n_buffers)
36 for (i = 0; i < n_buffers; i++) {
38 vaDestroyBuffer(display, buffers[i]);
46 VABufferID va_buffers[3];
47 unsigned int n_va_buffers = 0;
63 surface) != VA_STATUS_SUCCESS)
67 va_buffers, n_va_buffers) != VA_STATUS_SUCCESS)
83 VABufferID *slice_buf_ids;
84 VABufferID slice_param_buf_id, slice_data_buf_id;
97 slice_param_buf_id = 0;
99 VASliceParameterBufferType,
102 &slice_param_buf_id) != VA_STATUS_SUCCESS)
106 slice_data_buf_id = 0;
108 VASliceDataBufferType,
111 &slice_data_buf_id) != VA_STATUS_SUCCESS)
127 type, size, 1,
NULL, buf_id) == VA_STATUS_SUCCESS)
128 vaMapBuffer(vactx->
display, *buf_id, &data);
151 VASliceParameterBufferBase *slice_param;
170 slice_param->slice_data_size =
size;
172 slice_param->slice_data_flag = VA_SLICE_DATA_FLAG_ALL;
183 av_dlog(avctx,
"ff_vaapi_common_end_frame()\n");