32 static void destroy_buffers(VADisplay display, VABufferID *buffers,
unsigned int n_buffers)
35 for (i = 0; i < n_buffers; i++) {
37 vaDestroyBuffer(display, buffers[i]);
45 VABufferID va_buffers[3];
46 unsigned int n_va_buffers = 0;
62 surface) != VA_STATUS_SUCCESS)
66 va_buffers, n_va_buffers) != VA_STATUS_SUCCESS)
82 VABufferID *slice_buf_ids;
83 VABufferID slice_param_buf_id, slice_data_buf_id;
96 slice_param_buf_id = 0;
98 VASliceParameterBufferType,
101 &slice_param_buf_id) != VA_STATUS_SUCCESS)
105 slice_data_buf_id = 0;
107 VASliceDataBufferType,
110 &slice_data_buf_id) != VA_STATUS_SUCCESS)
126 type, size, 1,
NULL, buf_id) == VA_STATUS_SUCCESS)
127 vaMapBuffer(vactx->
display, *buf_id, &data);
150 VASliceParameterBufferBase *slice_param;
169 slice_param->slice_data_size =
size;
171 slice_param->slice_data_flag = VA_SLICE_DATA_FLAG_ALL;