• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**************************************************************************
2  *
3  * Copyright 2010 Thomas Balling Sørensen & Orasanu Lucian.
4  * Copyright 2014 Advanced Micro Devices, Inc.
5  * All Rights Reserved.
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining a
8  * copy of this software and associated documentation files (the
9  * "Software"), to deal in the Software without restriction, including
10  * without limitation the rights to use, copy, modify, merge, publish,
11  * distribute, sub license, and/or sell copies of the Software, and to
12  * permit persons to whom the Software is furnished to do so, subject to
13  * the following conditions:
14  *
15  * The above copyright notice and this permission notice (including the
16  * next paragraph) shall be included in all copies or substantial portions
17  * of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
22  * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR
23  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26  *
27  **************************************************************************/
28 
29 #ifndef VA_PRIVATE_H
30 #define VA_PRIVATE_H
31 
32 #include <assert.h>
33 
34 #include <va/va.h>
35 #include <va/va_backend.h>
36 #include <va/va_backend_vpp.h>
37 #include <va/va_drmcommon.h>
38 
39 #include "pipe/p_video_enums.h"
40 #include "pipe/p_video_codec.h"
41 #include "pipe/p_video_state.h"
42 
43 #include "vl/vl_compositor.h"
44 #include "vl/vl_csc.h"
45 
46 #include "util/u_dynarray.h"
47 #include "os/os_thread.h"
48 
49 #define VL_VA_DRIVER(ctx) ((vlVaDriver *)ctx->pDriverData)
50 #define VL_VA_PSCREEN(ctx) (VL_VA_DRIVER(ctx)->vscreen->pscreen)
51 
52 #define VL_VA_MAX_IMAGE_FORMATS 11
53 #define VL_VA_ENC_GOP_COEFF 16
54 
55 #define UINT_TO_PTR(x) ((void*)(uintptr_t)(x))
56 #define PTR_TO_UINT(x) ((unsigned)((intptr_t)(x)))
57 
handle_hash(void * key)58 static inline unsigned handle_hash(void *key)
59 {
60     return PTR_TO_UINT(key);
61 }
62 
handle_compare(void * key1,void * key2)63 static inline int handle_compare(void *key1, void *key2)
64 {
65     return PTR_TO_UINT(key1) != PTR_TO_UINT(key2);
66 }
67 
68 static inline enum pipe_video_chroma_format
ChromaToPipe(int format)69 ChromaToPipe(int format)
70 {
71    switch (format) {
72    case VA_RT_FORMAT_YUV420:
73    case VA_RT_FORMAT_YUV420_10BPP:
74       return PIPE_VIDEO_CHROMA_FORMAT_420;
75    case VA_RT_FORMAT_YUV422:
76       return PIPE_VIDEO_CHROMA_FORMAT_422;
77    case VA_RT_FORMAT_YUV444:
78       return PIPE_VIDEO_CHROMA_FORMAT_444;
79    default:
80       return PIPE_VIDEO_CHROMA_FORMAT_NONE;
81    }
82 }
83 
84 static inline enum pipe_format
VaFourccToPipeFormat(unsigned format)85 VaFourccToPipeFormat(unsigned format)
86 {
87    switch(format) {
88    case VA_FOURCC('N','V','1','2'):
89       return PIPE_FORMAT_NV12;
90    case VA_FOURCC('P','0','1','0'):
91    case VA_FOURCC('P','0','1','6'):
92       return PIPE_FORMAT_P016;
93    case VA_FOURCC('I','4','2','0'):
94       return PIPE_FORMAT_IYUV;
95    case VA_FOURCC('Y','V','1','2'):
96       return PIPE_FORMAT_YV12;
97    case VA_FOURCC('Y','U','Y','V'):
98       return PIPE_FORMAT_YUYV;
99    case VA_FOURCC('U','Y','V','Y'):
100       return PIPE_FORMAT_UYVY;
101    case VA_FOURCC('B','G','R','A'):
102       return PIPE_FORMAT_B8G8R8A8_UNORM;
103    case VA_FOURCC('R','G','B','A'):
104       return PIPE_FORMAT_R8G8B8A8_UNORM;
105    case VA_FOURCC('B','G','R','X'):
106       return PIPE_FORMAT_B8G8R8X8_UNORM;
107    case VA_FOURCC('R','G','B','X'):
108       return PIPE_FORMAT_R8G8B8X8_UNORM;
109    default:
110       assert(0);
111       return PIPE_FORMAT_NONE;
112    }
113 }
114 
115 static inline unsigned
PipeFormatToVaFourcc(enum pipe_format p_format)116 PipeFormatToVaFourcc(enum pipe_format p_format)
117 {
118    switch (p_format) {
119    case PIPE_FORMAT_NV12:
120       return VA_FOURCC('N','V','1','2');
121    case PIPE_FORMAT_P016:
122       return VA_FOURCC('P','0','1','6');
123    case PIPE_FORMAT_IYUV:
124       return VA_FOURCC('I','4','2','0');
125    case PIPE_FORMAT_YV12:
126       return VA_FOURCC('Y','V','1','2');
127    case PIPE_FORMAT_UYVY:
128       return VA_FOURCC('U','Y','V','Y');
129    case PIPE_FORMAT_YUYV:
130       return VA_FOURCC('Y','U','Y','V');
131    case PIPE_FORMAT_B8G8R8A8_UNORM:
132       return VA_FOURCC('B','G','R','A');
133    case PIPE_FORMAT_R8G8B8A8_UNORM:
134       return VA_FOURCC('R','G','B','A');
135    case PIPE_FORMAT_B8G8R8X8_UNORM:
136       return VA_FOURCC('B','G','R','X');
137    case PIPE_FORMAT_R8G8B8X8_UNORM:
138       return VA_FOURCC('R','G','B','X');
139    default:
140       assert(0);
141       return -1;
142    }
143 }
144 
145 static inline VAProfile
PipeToProfile(enum pipe_video_profile profile)146 PipeToProfile(enum pipe_video_profile profile)
147 {
148    switch (profile) {
149    case PIPE_VIDEO_PROFILE_MPEG2_SIMPLE:
150       return VAProfileMPEG2Simple;
151    case PIPE_VIDEO_PROFILE_MPEG2_MAIN:
152       return VAProfileMPEG2Main;
153    case PIPE_VIDEO_PROFILE_MPEG4_SIMPLE:
154       return VAProfileMPEG4Simple;
155    case PIPE_VIDEO_PROFILE_MPEG4_ADVANCED_SIMPLE:
156       return VAProfileMPEG4AdvancedSimple;
157    case PIPE_VIDEO_PROFILE_VC1_SIMPLE:
158       return VAProfileVC1Simple;
159    case PIPE_VIDEO_PROFILE_VC1_MAIN:
160       return VAProfileVC1Main;
161    case PIPE_VIDEO_PROFILE_VC1_ADVANCED:
162       return VAProfileVC1Advanced;
163    case PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE:
164       return VAProfileH264ConstrainedBaseline;
165    case PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN:
166       return VAProfileH264Main;
167    case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH:
168       return VAProfileH264High;
169    case PIPE_VIDEO_PROFILE_HEVC_MAIN:
170       return VAProfileHEVCMain;
171    case PIPE_VIDEO_PROFILE_HEVC_MAIN_10:
172       return VAProfileHEVCMain10;
173    case PIPE_VIDEO_PROFILE_JPEG_BASELINE:
174       return VAProfileJPEGBaseline;
175    case PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED:
176    case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10:
177    case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422:
178    case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH444:
179    case PIPE_VIDEO_PROFILE_MPEG4_AVC_CONSTRAINED_BASELINE:
180    case PIPE_VIDEO_PROFILE_HEVC_MAIN_12:
181    case PIPE_VIDEO_PROFILE_HEVC_MAIN_STILL:
182    case PIPE_VIDEO_PROFILE_HEVC_MAIN_444:
183    case PIPE_VIDEO_PROFILE_UNKNOWN:
184       return VAProfileNone;
185    default:
186       assert(0);
187       return -1;
188    }
189 }
190 
191 static inline enum pipe_video_profile
ProfileToPipe(VAProfile profile)192 ProfileToPipe(VAProfile profile)
193 {
194    switch (profile) {
195    case VAProfileMPEG2Simple:
196       return PIPE_VIDEO_PROFILE_MPEG2_SIMPLE;
197    case VAProfileMPEG2Main:
198       return PIPE_VIDEO_PROFILE_MPEG2_MAIN;
199    case VAProfileMPEG4Simple:
200       return PIPE_VIDEO_PROFILE_MPEG4_SIMPLE;
201    case VAProfileMPEG4AdvancedSimple:
202       return PIPE_VIDEO_PROFILE_MPEG4_ADVANCED_SIMPLE;
203    case VAProfileVC1Simple:
204       return PIPE_VIDEO_PROFILE_VC1_SIMPLE;
205    case VAProfileVC1Main:
206       return PIPE_VIDEO_PROFILE_VC1_MAIN;
207    case VAProfileVC1Advanced:
208       return PIPE_VIDEO_PROFILE_VC1_ADVANCED;
209    case VAProfileH264ConstrainedBaseline:
210       return PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE;
211    case VAProfileH264Main:
212       return PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN;
213    case VAProfileH264High:
214       return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH;
215    case VAProfileHEVCMain:
216       return PIPE_VIDEO_PROFILE_HEVC_MAIN;
217    case VAProfileHEVCMain10:
218       return PIPE_VIDEO_PROFILE_HEVC_MAIN_10;
219    case VAProfileJPEGBaseline:
220       return PIPE_VIDEO_PROFILE_JPEG_BASELINE;
221    case VAProfileNone:
222        return PIPE_VIDEO_PROFILE_UNKNOWN;
223    default:
224       return PIPE_VIDEO_PROFILE_UNKNOWN;
225    }
226 }
227 
228 typedef struct {
229    struct vl_screen *vscreen;
230    struct pipe_context *pipe;
231    struct handle_table *htab;
232    struct vl_compositor compositor;
233    struct vl_compositor_state cstate;
234    vl_csc_matrix csc;
235    mtx_t mutex;
236 } vlVaDriver;
237 
238 typedef struct {
239    VAImage *image;
240 
241    struct u_rect src_rect;
242    struct u_rect dst_rect;
243 
244    struct pipe_sampler_view *sampler;
245 } vlVaSubpicture;
246 
247 typedef struct {
248    VABufferType type;
249    unsigned int size;
250    unsigned int num_elements;
251    void *data;
252    struct {
253       struct pipe_resource *resource;
254       struct pipe_transfer *transfer;
255    } derived_surface;
256    unsigned int export_refcount;
257    VABufferInfo export_state;
258    unsigned int coded_size;
259 } vlVaBuffer;
260 
261 typedef struct {
262    struct pipe_video_codec templat, *decoder;
263    struct pipe_video_buffer *target;
264    union {
265       struct pipe_picture_desc base;
266       struct pipe_mpeg12_picture_desc mpeg12;
267       struct pipe_mpeg4_picture_desc mpeg4;
268       struct pipe_vc1_picture_desc vc1;
269       struct pipe_h264_picture_desc h264;
270       struct pipe_h265_picture_desc h265;
271       struct pipe_mjpeg_picture_desc mjpeg;
272       struct pipe_h264_enc_picture_desc h264enc;
273    } desc;
274 
275    struct {
276       unsigned long long int frame_num;
277       unsigned int start_code_size;
278       unsigned int vti_bits;
279       unsigned int quant_scale;
280       VAPictureParameterBufferMPEG4 pps;
281       uint8_t start_code[32];
282    } mpeg4;
283 
284    struct {
285       unsigned sampling_factor;
286    } mjpeg;
287 
288    struct vl_deint_filter *deint;
289    vlVaBuffer *coded_buf;
290    int target_id;
291    bool first_single_submitted;
292    int gop_coeff;
293    bool needs_begin_frame;
294 } vlVaContext;
295 
296 typedef struct {
297    enum pipe_video_profile profile;
298    enum pipe_video_entrypoint entrypoint;
299    enum pipe_h264_enc_rate_control_method rc;
300    unsigned int rt_format;
301 } vlVaConfig;
302 
303 typedef struct {
304    struct pipe_video_buffer templat, *buffer;
305    struct util_dynarray subpics; /* vlVaSubpicture */
306    VAContextID ctx;
307    vlVaBuffer *coded_buf;
308    void *feedback;
309    unsigned int frame_num_cnt;
310    bool force_flushed;
311 } vlVaSurface;
312 
313 // Public functions:
314 VAStatus VA_DRIVER_INIT_FUNC(VADriverContextP ctx);
315 
316 // vtable functions:
317 VAStatus vlVaTerminate(VADriverContextP ctx);
318 VAStatus vlVaQueryConfigProfiles(VADriverContextP ctx, VAProfile *profile_list,int *num_profiles);
319 VAStatus vlVaQueryConfigEntrypoints(VADriverContextP ctx, VAProfile profile,
320                                     VAEntrypoint  *entrypoint_list, int *num_entrypoints);
321 VAStatus vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint entrypoint,
322                                  VAConfigAttrib *attrib_list, int num_attribs);
323 VAStatus vlVaCreateConfig(VADriverContextP ctx, VAProfile profile, VAEntrypoint entrypoint,
324                           VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id);
325 VAStatus vlVaDestroyConfig(VADriverContextP ctx, VAConfigID config_id);
326 VAStatus vlVaQueryConfigAttributes(VADriverContextP ctx, VAConfigID config_id, VAProfile *profile,
327                                    VAEntrypoint *entrypoint, VAConfigAttrib *attrib_list, int *num_attribs);
328 VAStatus vlVaCreateSurfaces(VADriverContextP ctx, int width, int height, int format,
329                             int num_surfaces, VASurfaceID *surfaces);
330 VAStatus vlVaDestroySurfaces(VADriverContextP ctx, VASurfaceID *surface_list, int num_surfaces);
331 VAStatus vlVaCreateContext(VADriverContextP ctx, VAConfigID config_id, int picture_width, int picture_height,
332                            int flag, VASurfaceID *render_targets, int num_render_targets, VAContextID *context);
333 VAStatus vlVaDestroyContext(VADriverContextP ctx, VAContextID context);
334 VAStatus vlVaCreateBuffer(VADriverContextP ctx, VAContextID context, VABufferType type, unsigned int size,
335                           unsigned int num_elements, void *data, VABufferID *buf_id);
336 VAStatus vlVaBufferSetNumElements(VADriverContextP ctx, VABufferID buf_id, unsigned int num_elements);
337 VAStatus vlVaMapBuffer(VADriverContextP ctx, VABufferID buf_id, void **pbuf);
338 VAStatus vlVaUnmapBuffer(VADriverContextP ctx, VABufferID buf_id);
339 VAStatus vlVaDestroyBuffer(VADriverContextP ctx, VABufferID buffer_id);
340 VAStatus vlVaBeginPicture(VADriverContextP ctx, VAContextID context, VASurfaceID render_target);
341 VAStatus vlVaRenderPicture(VADriverContextP ctx, VAContextID context, VABufferID *buffers, int num_buffers);
342 VAStatus vlVaEndPicture(VADriverContextP ctx, VAContextID context);
343 VAStatus vlVaSyncSurface(VADriverContextP ctx, VASurfaceID render_target);
344 VAStatus vlVaQuerySurfaceStatus(VADriverContextP ctx, VASurfaceID render_target, VASurfaceStatus *status);
345 VAStatus vlVaQuerySurfaceError(VADriverContextP ctx, VASurfaceID render_target,
346                                VAStatus error_status, void **error_info);
347 VAStatus vlVaPutSurface(VADriverContextP ctx, VASurfaceID surface, void* draw, short srcx, short srcy,
348                         unsigned short srcw, unsigned short srch, short destx, short desty, unsigned short destw,
349                         unsigned short desth, VARectangle *cliprects, unsigned int number_cliprects,
350                         unsigned int flags);
351 VAStatus vlVaQueryImageFormats(VADriverContextP ctx, VAImageFormat *format_list, int *num_formats);
352 VAStatus vlVaQuerySubpictureFormats(VADriverContextP ctx, VAImageFormat *format_list,
353                                     unsigned int *flags, unsigned int *num_formats);
354 VAStatus vlVaCreateImage(VADriverContextP ctx, VAImageFormat *format, int width, int height, VAImage *image);
355 VAStatus vlVaDeriveImage(VADriverContextP ctx, VASurfaceID surface, VAImage *image);
356 VAStatus vlVaDestroyImage(VADriverContextP ctx, VAImageID image);
357 VAStatus vlVaSetImagePalette(VADriverContextP ctx, VAImageID image, unsigned char *palette);
358 VAStatus vlVaGetImage(VADriverContextP ctx, VASurfaceID surface, int x, int y,
359                       unsigned int width, unsigned int height, VAImageID image);
360 VAStatus vlVaPutImage(VADriverContextP ctx, VASurfaceID surface, VAImageID image, int src_x, int src_y,
361                       unsigned int src_width, unsigned int src_height, int dest_x, int dest_y,
362                       unsigned int dest_width, unsigned int dest_height);
363 VAStatus vlVaQuerySubpictureFormats(VADriverContextP ctx, VAImageFormat *format_list,
364                                     unsigned int *flags, unsigned int *num_formats);
365 VAStatus vlVaCreateSubpicture(VADriverContextP ctx, VAImageID image, VASubpictureID *subpicture);
366 VAStatus vlVaDestroySubpicture(VADriverContextP ctx, VASubpictureID subpicture);
367 VAStatus vlVaSubpictureImage(VADriverContextP ctx, VASubpictureID subpicture, VAImageID image);
368 VAStatus vlVaSetSubpictureChromakey(VADriverContextP ctx, VASubpictureID subpicture,
369                                     unsigned int chromakey_min, unsigned int chromakey_max,
370                                     unsigned int chromakey_mask);
371 VAStatus vlVaSetSubpictureGlobalAlpha(VADriverContextP ctx, VASubpictureID subpicture, float global_alpha);
372 VAStatus vlVaAssociateSubpicture(VADriverContextP ctx, VASubpictureID subpicture, VASurfaceID *target_surfaces,
373                                  int num_surfaces, short src_x, short src_y,
374                                  unsigned short src_width, unsigned short src_height,
375                                  short dest_x, short dest_y, unsigned short dest_width, unsigned short dest_height,
376                                  unsigned int flags);
377 VAStatus vlVaDeassociateSubpicture(VADriverContextP ctx, VASubpictureID subpicture,
378                                    VASurfaceID *target_surfaces, int num_surfaces);
379 VAStatus vlVaQueryDisplayAttributes(VADriverContextP ctx, VADisplayAttribute *attr_list, int *num_attributes);
380 VAStatus vlVaGetDisplayAttributes(VADriverContextP ctx, VADisplayAttribute *attr_list, int num_attributes);
381 VAStatus vlVaSetDisplayAttributes(VADriverContextP ctx, VADisplayAttribute *attr_list, int num_attributes);
382 VAStatus vlVaBufferInfo(VADriverContextP ctx, VABufferID buf_id, VABufferType *type,
383                         unsigned int *size, unsigned int *num_elements);
384 VAStatus vlVaLockSurface(VADriverContextP ctx, VASurfaceID surface, unsigned int *fourcc,
385                          unsigned int *luma_stride, unsigned int *chroma_u_stride, unsigned int *chroma_v_stride,
386                          unsigned int *luma_offset, unsigned int *chroma_u_offset, unsigned int *chroma_v_offset,
387                          unsigned int *buffer_name, void **buffer);
388 VAStatus vlVaUnlockSurface(VADriverContextP ctx, VASurfaceID surface);
389 VAStatus vlVaCreateSurfaces2(VADriverContextP ctx, unsigned int format, unsigned int width, unsigned int height,
390                              VASurfaceID *surfaces, unsigned int num_surfaces, VASurfaceAttrib *attrib_list,
391                              unsigned int num_attribs);
392 VAStatus vlVaQuerySurfaceAttributes(VADriverContextP ctx, VAConfigID config, VASurfaceAttrib *attrib_list,
393                                     unsigned int *num_attribs);
394 
395 VAStatus vlVaAcquireBufferHandle(VADriverContextP ctx, VABufferID buf_id, VABufferInfo *out_buf_info);
396 VAStatus vlVaReleaseBufferHandle(VADriverContextP ctx, VABufferID buf_id);
397 VAStatus vlVaExportSurfaceHandle(VADriverContextP ctx, VASurfaceID surface_id, uint32_t mem_type, uint32_t flags, void *descriptor);
398 
399 VAStatus vlVaQueryVideoProcFilters(VADriverContextP ctx, VAContextID context, VAProcFilterType *filters,
400                                    unsigned int *num_filters);
401 VAStatus vlVaQueryVideoProcFilterCaps(VADriverContextP ctx, VAContextID context, VAProcFilterType type,
402                                       void *filter_caps, unsigned int *num_filter_caps);
403 VAStatus vlVaQueryVideoProcPipelineCaps(VADriverContextP ctx, VAContextID context, VABufferID *filters,
404                                         unsigned int num_filters, VAProcPipelineCaps *pipeline_cap);
405 
406 // internal functions
407 VAStatus vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
408 VAStatus vlVaHandleSurfaceAllocate(vlVaDriver *drv, vlVaSurface *surface, struct pipe_video_buffer *templat);
409 void vlVaGetReferenceFrame(vlVaDriver *drv, VASurfaceID surface_id, struct pipe_video_buffer **ref_frame);
410 void vlVaHandlePictureParameterBufferMPEG12(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
411 void vlVaHandleIQMatrixBufferMPEG12(vlVaContext *context, vlVaBuffer *buf);
412 void vlVaHandleSliceParameterBufferMPEG12(vlVaContext *context, vlVaBuffer *buf);
413 void vlVaHandlePictureParameterBufferH264(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
414 void vlVaHandleIQMatrixBufferH264(vlVaContext *context, vlVaBuffer *buf);
415 void vlVaHandleSliceParameterBufferH264(vlVaContext *context, vlVaBuffer *buf);
416 void vlVaHandlePictureParameterBufferVC1(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
417 void vlVaHandleSliceParameterBufferVC1(vlVaContext *context, vlVaBuffer *buf);
418 void vlVaHandlePictureParameterBufferMPEG4(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
419 void vlVaHandleIQMatrixBufferMPEG4(vlVaContext *context, vlVaBuffer *buf);
420 void vlVaHandleSliceParameterBufferMPEG4(vlVaContext *context, vlVaBuffer *buf);
421 void vlVaDecoderFixMPEG4Startcode(vlVaContext *context);
422 void vlVaHandlePictureParameterBufferHEVC(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
423 void vlVaHandleIQMatrixBufferHEVC(vlVaContext *context, vlVaBuffer *buf);
424 void vlVaHandleSliceParameterBufferHEVC(vlVaContext *context, vlVaBuffer *buf);
425 void vlVaHandlePictureParameterBufferMJPEG(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
426 void vlVaHandleIQMatrixBufferMJPEG(vlVaContext *context, vlVaBuffer *buf);
427 void vlVaHandleHuffmanTableBufferType(vlVaContext *context, vlVaBuffer *buf);
428 void vlVaHandleSliceParameterBufferMJPEG(vlVaContext *context, vlVaBuffer *buf);
429 
430 #endif //VA_PRIVATE_H
431