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;
66 surface) != VA_STATUS_SUCCESS)
70 va_buffers, n_va_buffers) != VA_STATUS_SUCCESS)
86 VABufferID *slice_buf_ids;
87 VABufferID slice_param_buf_id, slice_data_buf_id;
100 slice_param_buf_id = 0;
102 VASliceParameterBufferType,
105 &slice_param_buf_id) != VA_STATUS_SUCCESS)
109 slice_data_buf_id = 0;
111 VASliceDataBufferType,
114 &slice_data_buf_id) != VA_STATUS_SUCCESS)
130 type, size, 1, NULL, buf_id) == VA_STATUS_SUCCESS)
131 vaMapBuffer(vactx->
display, *buf_id, &data);
154 VASliceParameterBufferBase *slice_param;
173 slice_param->slice_data_size =
size;
175 slice_param->slice_data_flag = VA_SLICE_DATA_FLAG_ALL;
186 av_dlog(avctx,
"ff_vaapi_common_end_frame()\n");