Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/gallium/frontends/va/va_private.h
4561 views
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
#ifndef VA_RT_FORMAT_YUV420_10
50
#define VA_RT_FORMAT_YUV420_10 VA_RT_FORMAT_YUV420_10BPP
51
#endif
52
53
#define VL_VA_DRIVER(ctx) ((vlVaDriver *)ctx->pDriverData)
54
#define VL_VA_PSCREEN(ctx) (VL_VA_DRIVER(ctx)->vscreen->pscreen)
55
56
#define VL_VA_MAX_IMAGE_FORMATS 12
57
#define VL_VA_ENC_GOP_COEFF 16
58
59
#define UINT_TO_PTR(x) ((void*)(uintptr_t)(x))
60
#define PTR_TO_UINT(x) ((unsigned)((intptr_t)(x)))
61
62
#define SOI 2
63
#define DQT (4 + 4 * 65)
64
#define DHT (4 + 2 * 29 + 2 * 179)
65
#define DRI 6
66
#define SOF (10 + 255 * 3)
67
#define SOS (8 + 4 * 2)
68
#define MAX_MJPEG_SLICE_HEADER_SIZE (SOI + DQT + DHT + DRI + SOF + SOS)
69
70
static inline enum pipe_video_chroma_format
71
ChromaToPipe(int format)
72
{
73
switch (format) {
74
case VA_RT_FORMAT_YUV420:
75
case VA_RT_FORMAT_YUV420_10BPP:
76
return PIPE_VIDEO_CHROMA_FORMAT_420;
77
case VA_RT_FORMAT_YUV422:
78
return PIPE_VIDEO_CHROMA_FORMAT_422;
79
case VA_RT_FORMAT_YUV444:
80
return PIPE_VIDEO_CHROMA_FORMAT_444;
81
default:
82
return PIPE_VIDEO_CHROMA_FORMAT_NONE;
83
}
84
}
85
86
static inline enum pipe_format
87
VaFourccToPipeFormat(unsigned format)
88
{
89
switch(format) {
90
case VA_FOURCC('N','V','1','2'):
91
return PIPE_FORMAT_NV12;
92
case VA_FOURCC('P','0','1','0'):
93
return PIPE_FORMAT_P010;
94
case VA_FOURCC('P','0','1','6'):
95
return PIPE_FORMAT_P016;
96
case VA_FOURCC('I','4','2','0'):
97
return PIPE_FORMAT_IYUV;
98
case VA_FOURCC('Y','V','1','2'):
99
return PIPE_FORMAT_YV12;
100
case VA_FOURCC('Y','U','Y','V'):
101
case VA_FOURCC('Y','U','Y','2'):
102
return PIPE_FORMAT_YUYV;
103
case VA_FOURCC('U','Y','V','Y'):
104
return PIPE_FORMAT_UYVY;
105
case VA_FOURCC('B','G','R','A'):
106
return PIPE_FORMAT_B8G8R8A8_UNORM;
107
case VA_FOURCC('R','G','B','A'):
108
return PIPE_FORMAT_R8G8B8A8_UNORM;
109
case VA_FOURCC('B','G','R','X'):
110
return PIPE_FORMAT_B8G8R8X8_UNORM;
111
case VA_FOURCC('R','G','B','X'):
112
return PIPE_FORMAT_R8G8B8X8_UNORM;
113
default:
114
assert(0);
115
return PIPE_FORMAT_NONE;
116
}
117
}
118
119
static inline unsigned
120
PipeFormatToVaFourcc(enum pipe_format p_format)
121
{
122
switch (p_format) {
123
case PIPE_FORMAT_NV12:
124
return VA_FOURCC('N','V','1','2');
125
case PIPE_FORMAT_P010:
126
return VA_FOURCC('P','0','1','0');
127
case PIPE_FORMAT_P016:
128
return VA_FOURCC('P','0','1','6');
129
case PIPE_FORMAT_IYUV:
130
return VA_FOURCC('I','4','2','0');
131
case PIPE_FORMAT_YV12:
132
return VA_FOURCC('Y','V','1','2');
133
case PIPE_FORMAT_UYVY:
134
return VA_FOURCC('U','Y','V','Y');
135
case PIPE_FORMAT_YUYV:
136
return VA_FOURCC('Y','U','Y','V');
137
case PIPE_FORMAT_B8G8R8A8_UNORM:
138
return VA_FOURCC('B','G','R','A');
139
case PIPE_FORMAT_R8G8B8A8_UNORM:
140
return VA_FOURCC('R','G','B','A');
141
case PIPE_FORMAT_B8G8R8X8_UNORM:
142
return VA_FOURCC('B','G','R','X');
143
case PIPE_FORMAT_R8G8B8X8_UNORM:
144
return VA_FOURCC('R','G','B','X');
145
default:
146
assert(0);
147
return -1;
148
}
149
}
150
151
static inline VAProfile
152
PipeToProfile(enum pipe_video_profile profile)
153
{
154
switch (profile) {
155
case PIPE_VIDEO_PROFILE_MPEG2_SIMPLE:
156
return VAProfileMPEG2Simple;
157
case PIPE_VIDEO_PROFILE_MPEG2_MAIN:
158
return VAProfileMPEG2Main;
159
case PIPE_VIDEO_PROFILE_MPEG4_SIMPLE:
160
return VAProfileMPEG4Simple;
161
case PIPE_VIDEO_PROFILE_MPEG4_ADVANCED_SIMPLE:
162
return VAProfileMPEG4AdvancedSimple;
163
case PIPE_VIDEO_PROFILE_VC1_SIMPLE:
164
return VAProfileVC1Simple;
165
case PIPE_VIDEO_PROFILE_VC1_MAIN:
166
return VAProfileVC1Main;
167
case PIPE_VIDEO_PROFILE_VC1_ADVANCED:
168
return VAProfileVC1Advanced;
169
case PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE:
170
return VAProfileH264ConstrainedBaseline;
171
case PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN:
172
return VAProfileH264Main;
173
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH:
174
return VAProfileH264High;
175
case PIPE_VIDEO_PROFILE_HEVC_MAIN:
176
return VAProfileHEVCMain;
177
case PIPE_VIDEO_PROFILE_HEVC_MAIN_10:
178
return VAProfileHEVCMain10;
179
case PIPE_VIDEO_PROFILE_JPEG_BASELINE:
180
return VAProfileJPEGBaseline;
181
case PIPE_VIDEO_PROFILE_VP9_PROFILE0:
182
return VAProfileVP9Profile0;
183
case PIPE_VIDEO_PROFILE_VP9_PROFILE2:
184
return VAProfileVP9Profile2;
185
case PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED:
186
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10:
187
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422:
188
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH444:
189
case PIPE_VIDEO_PROFILE_MPEG4_AVC_CONSTRAINED_BASELINE:
190
case PIPE_VIDEO_PROFILE_HEVC_MAIN_12:
191
case PIPE_VIDEO_PROFILE_HEVC_MAIN_STILL:
192
case PIPE_VIDEO_PROFILE_HEVC_MAIN_444:
193
case PIPE_VIDEO_PROFILE_UNKNOWN:
194
return VAProfileNone;
195
default:
196
assert(0);
197
return -1;
198
}
199
}
200
201
static inline enum pipe_video_profile
202
ProfileToPipe(VAProfile profile)
203
{
204
switch (profile) {
205
case VAProfileMPEG2Simple:
206
return PIPE_VIDEO_PROFILE_MPEG2_SIMPLE;
207
case VAProfileMPEG2Main:
208
return PIPE_VIDEO_PROFILE_MPEG2_MAIN;
209
case VAProfileMPEG4Simple:
210
return PIPE_VIDEO_PROFILE_MPEG4_SIMPLE;
211
case VAProfileMPEG4AdvancedSimple:
212
return PIPE_VIDEO_PROFILE_MPEG4_ADVANCED_SIMPLE;
213
case VAProfileVC1Simple:
214
return PIPE_VIDEO_PROFILE_VC1_SIMPLE;
215
case VAProfileVC1Main:
216
return PIPE_VIDEO_PROFILE_VC1_MAIN;
217
case VAProfileVC1Advanced:
218
return PIPE_VIDEO_PROFILE_VC1_ADVANCED;
219
case VAProfileH264ConstrainedBaseline:
220
return PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE;
221
case VAProfileH264Main:
222
return PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN;
223
case VAProfileH264High:
224
return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH;
225
case VAProfileHEVCMain:
226
return PIPE_VIDEO_PROFILE_HEVC_MAIN;
227
case VAProfileHEVCMain10:
228
return PIPE_VIDEO_PROFILE_HEVC_MAIN_10;
229
case VAProfileJPEGBaseline:
230
return PIPE_VIDEO_PROFILE_JPEG_BASELINE;
231
case VAProfileVP9Profile0:
232
return PIPE_VIDEO_PROFILE_VP9_PROFILE0;
233
case VAProfileVP9Profile2:
234
return PIPE_VIDEO_PROFILE_VP9_PROFILE2;
235
case VAProfileNone:
236
return PIPE_VIDEO_PROFILE_UNKNOWN;
237
default:
238
return PIPE_VIDEO_PROFILE_UNKNOWN;
239
}
240
}
241
242
typedef struct {
243
struct vl_screen *vscreen;
244
struct pipe_context *pipe;
245
struct handle_table *htab;
246
struct vl_compositor compositor;
247
struct vl_compositor_state cstate;
248
vl_csc_matrix csc;
249
mtx_t mutex;
250
char vendor_string[256];
251
} vlVaDriver;
252
253
typedef struct {
254
VAImage *image;
255
256
struct u_rect src_rect;
257
struct u_rect dst_rect;
258
259
struct pipe_sampler_view *sampler;
260
} vlVaSubpicture;
261
262
typedef struct {
263
VABufferType type;
264
unsigned int size;
265
unsigned int num_elements;
266
void *data;
267
struct {
268
struct pipe_resource *resource;
269
struct pipe_transfer *transfer;
270
} derived_surface;
271
unsigned int export_refcount;
272
VABufferInfo export_state;
273
unsigned int coded_size;
274
struct pipe_video_buffer *derived_image_buffer;
275
} vlVaBuffer;
276
277
typedef struct {
278
struct pipe_video_codec templat, *decoder;
279
struct pipe_video_buffer *target;
280
union {
281
struct pipe_picture_desc base;
282
struct pipe_mpeg12_picture_desc mpeg12;
283
struct pipe_mpeg4_picture_desc mpeg4;
284
struct pipe_vc1_picture_desc vc1;
285
struct pipe_h264_picture_desc h264;
286
struct pipe_h265_picture_desc h265;
287
struct pipe_mjpeg_picture_desc mjpeg;
288
struct pipe_vp9_picture_desc vp9;
289
struct pipe_h264_enc_picture_desc h264enc;
290
struct pipe_h265_enc_picture_desc h265enc;
291
} desc;
292
293
struct {
294
unsigned long long int frame_num;
295
unsigned int start_code_size;
296
unsigned int vti_bits;
297
unsigned int quant_scale;
298
VAPictureParameterBufferMPEG4 pps;
299
uint8_t start_code[32];
300
} mpeg4;
301
302
struct {
303
unsigned sampling_factor;
304
uint8_t slice_header[MAX_MJPEG_SLICE_HEADER_SIZE];
305
unsigned int slice_header_size;
306
} mjpeg;
307
308
struct vl_deint_filter *deint;
309
vlVaBuffer *coded_buf;
310
int target_id;
311
bool first_single_submitted;
312
int gop_coeff;
313
bool needs_begin_frame;
314
void *blit_cs;
315
int packed_header_type;
316
} vlVaContext;
317
318
typedef struct {
319
enum pipe_video_profile profile;
320
enum pipe_video_entrypoint entrypoint;
321
enum pipe_h2645_enc_rate_control_method rc;
322
unsigned int rt_format;
323
} vlVaConfig;
324
325
typedef struct {
326
struct pipe_video_buffer templat, *buffer;
327
struct util_dynarray subpics; /* vlVaSubpicture */
328
VAContextID ctx;
329
vlVaBuffer *coded_buf;
330
void *feedback;
331
unsigned int frame_num_cnt;
332
bool force_flushed;
333
} vlVaSurface;
334
335
// Public functions:
336
VAStatus VA_DRIVER_INIT_FUNC(VADriverContextP ctx);
337
338
// vtable functions:
339
VAStatus vlVaTerminate(VADriverContextP ctx);
340
VAStatus vlVaQueryConfigProfiles(VADriverContextP ctx, VAProfile *profile_list,int *num_profiles);
341
VAStatus vlVaQueryConfigEntrypoints(VADriverContextP ctx, VAProfile profile,
342
VAEntrypoint *entrypoint_list, int *num_entrypoints);
343
VAStatus vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint entrypoint,
344
VAConfigAttrib *attrib_list, int num_attribs);
345
VAStatus vlVaCreateConfig(VADriverContextP ctx, VAProfile profile, VAEntrypoint entrypoint,
346
VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id);
347
VAStatus vlVaDestroyConfig(VADriverContextP ctx, VAConfigID config_id);
348
VAStatus vlVaQueryConfigAttributes(VADriverContextP ctx, VAConfigID config_id, VAProfile *profile,
349
VAEntrypoint *entrypoint, VAConfigAttrib *attrib_list, int *num_attribs);
350
VAStatus vlVaCreateSurfaces(VADriverContextP ctx, int width, int height, int format,
351
int num_surfaces, VASurfaceID *surfaces);
352
VAStatus vlVaDestroySurfaces(VADriverContextP ctx, VASurfaceID *surface_list, int num_surfaces);
353
VAStatus vlVaCreateContext(VADriverContextP ctx, VAConfigID config_id, int picture_width, int picture_height,
354
int flag, VASurfaceID *render_targets, int num_render_targets, VAContextID *context);
355
VAStatus vlVaDestroyContext(VADriverContextP ctx, VAContextID context);
356
VAStatus vlVaCreateBuffer(VADriverContextP ctx, VAContextID context, VABufferType type, unsigned int size,
357
unsigned int num_elements, void *data, VABufferID *buf_id);
358
VAStatus vlVaBufferSetNumElements(VADriverContextP ctx, VABufferID buf_id, unsigned int num_elements);
359
VAStatus vlVaMapBuffer(VADriverContextP ctx, VABufferID buf_id, void **pbuf);
360
VAStatus vlVaUnmapBuffer(VADriverContextP ctx, VABufferID buf_id);
361
VAStatus vlVaDestroyBuffer(VADriverContextP ctx, VABufferID buffer_id);
362
VAStatus vlVaBeginPicture(VADriverContextP ctx, VAContextID context, VASurfaceID render_target);
363
VAStatus vlVaRenderPicture(VADriverContextP ctx, VAContextID context, VABufferID *buffers, int num_buffers);
364
VAStatus vlVaEndPicture(VADriverContextP ctx, VAContextID context);
365
VAStatus vlVaSyncSurface(VADriverContextP ctx, VASurfaceID render_target);
366
VAStatus vlVaQuerySurfaceStatus(VADriverContextP ctx, VASurfaceID render_target, VASurfaceStatus *status);
367
VAStatus vlVaQuerySurfaceError(VADriverContextP ctx, VASurfaceID render_target,
368
VAStatus error_status, void **error_info);
369
VAStatus vlVaPutSurface(VADriverContextP ctx, VASurfaceID surface, void* draw, short srcx, short srcy,
370
unsigned short srcw, unsigned short srch, short destx, short desty, unsigned short destw,
371
unsigned short desth, VARectangle *cliprects, unsigned int number_cliprects,
372
unsigned int flags);
373
VAStatus vlVaQueryImageFormats(VADriverContextP ctx, VAImageFormat *format_list, int *num_formats);
374
VAStatus vlVaQuerySubpictureFormats(VADriverContextP ctx, VAImageFormat *format_list,
375
unsigned int *flags, unsigned int *num_formats);
376
VAStatus vlVaCreateImage(VADriverContextP ctx, VAImageFormat *format, int width, int height, VAImage *image);
377
VAStatus vlVaDeriveImage(VADriverContextP ctx, VASurfaceID surface, VAImage *image);
378
VAStatus vlVaDestroyImage(VADriverContextP ctx, VAImageID image);
379
VAStatus vlVaSetImagePalette(VADriverContextP ctx, VAImageID image, unsigned char *palette);
380
VAStatus vlVaGetImage(VADriverContextP ctx, VASurfaceID surface, int x, int y,
381
unsigned int width, unsigned int height, VAImageID image);
382
VAStatus vlVaPutImage(VADriverContextP ctx, VASurfaceID surface, VAImageID image, int src_x, int src_y,
383
unsigned int src_width, unsigned int src_height, int dest_x, int dest_y,
384
unsigned int dest_width, unsigned int dest_height);
385
VAStatus vlVaQuerySubpictureFormats(VADriverContextP ctx, VAImageFormat *format_list,
386
unsigned int *flags, unsigned int *num_formats);
387
VAStatus vlVaCreateSubpicture(VADriverContextP ctx, VAImageID image, VASubpictureID *subpicture);
388
VAStatus vlVaDestroySubpicture(VADriverContextP ctx, VASubpictureID subpicture);
389
VAStatus vlVaSubpictureImage(VADriverContextP ctx, VASubpictureID subpicture, VAImageID image);
390
VAStatus vlVaSetSubpictureChromakey(VADriverContextP ctx, VASubpictureID subpicture,
391
unsigned int chromakey_min, unsigned int chromakey_max,
392
unsigned int chromakey_mask);
393
VAStatus vlVaSetSubpictureGlobalAlpha(VADriverContextP ctx, VASubpictureID subpicture, float global_alpha);
394
VAStatus vlVaAssociateSubpicture(VADriverContextP ctx, VASubpictureID subpicture, VASurfaceID *target_surfaces,
395
int num_surfaces, short src_x, short src_y,
396
unsigned short src_width, unsigned short src_height,
397
short dest_x, short dest_y, unsigned short dest_width, unsigned short dest_height,
398
unsigned int flags);
399
VAStatus vlVaDeassociateSubpicture(VADriverContextP ctx, VASubpictureID subpicture,
400
VASurfaceID *target_surfaces, int num_surfaces);
401
VAStatus vlVaQueryDisplayAttributes(VADriverContextP ctx, VADisplayAttribute *attr_list, int *num_attributes);
402
VAStatus vlVaGetDisplayAttributes(VADriverContextP ctx, VADisplayAttribute *attr_list, int num_attributes);
403
VAStatus vlVaSetDisplayAttributes(VADriverContextP ctx, VADisplayAttribute *attr_list, int num_attributes);
404
VAStatus vlVaBufferInfo(VADriverContextP ctx, VABufferID buf_id, VABufferType *type,
405
unsigned int *size, unsigned int *num_elements);
406
VAStatus vlVaLockSurface(VADriverContextP ctx, VASurfaceID surface, unsigned int *fourcc,
407
unsigned int *luma_stride, unsigned int *chroma_u_stride, unsigned int *chroma_v_stride,
408
unsigned int *luma_offset, unsigned int *chroma_u_offset, unsigned int *chroma_v_offset,
409
unsigned int *buffer_name, void **buffer);
410
VAStatus vlVaUnlockSurface(VADriverContextP ctx, VASurfaceID surface);
411
VAStatus vlVaCreateSurfaces2(VADriverContextP ctx, unsigned int format, unsigned int width, unsigned int height,
412
VASurfaceID *surfaces, unsigned int num_surfaces, VASurfaceAttrib *attrib_list,
413
unsigned int num_attribs);
414
VAStatus vlVaQuerySurfaceAttributes(VADriverContextP ctx, VAConfigID config, VASurfaceAttrib *attrib_list,
415
unsigned int *num_attribs);
416
417
VAStatus vlVaAcquireBufferHandle(VADriverContextP ctx, VABufferID buf_id, VABufferInfo *out_buf_info);
418
VAStatus vlVaReleaseBufferHandle(VADriverContextP ctx, VABufferID buf_id);
419
VAStatus vlVaExportSurfaceHandle(VADriverContextP ctx, VASurfaceID surface_id, uint32_t mem_type, uint32_t flags, void *descriptor);
420
421
VAStatus vlVaQueryVideoProcFilters(VADriverContextP ctx, VAContextID context, VAProcFilterType *filters,
422
unsigned int *num_filters);
423
VAStatus vlVaQueryVideoProcFilterCaps(VADriverContextP ctx, VAContextID context, VAProcFilterType type,
424
void *filter_caps, unsigned int *num_filter_caps);
425
VAStatus vlVaQueryVideoProcPipelineCaps(VADriverContextP ctx, VAContextID context, VABufferID *filters,
426
unsigned int num_filters, VAProcPipelineCaps *pipeline_cap);
427
428
// internal functions
429
VAStatus vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
430
VAStatus vlVaHandleSurfaceAllocate(vlVaDriver *drv, vlVaSurface *surface, struct pipe_video_buffer *templat,
431
const uint64_t *modifiers, unsigned int modifiers_count);
432
void vlVaGetReferenceFrame(vlVaDriver *drv, VASurfaceID surface_id, struct pipe_video_buffer **ref_frame);
433
void vlVaHandlePictureParameterBufferMPEG12(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
434
void vlVaHandleIQMatrixBufferMPEG12(vlVaContext *context, vlVaBuffer *buf);
435
void vlVaHandleSliceParameterBufferMPEG12(vlVaContext *context, vlVaBuffer *buf);
436
void vlVaHandlePictureParameterBufferH264(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
437
void vlVaHandleIQMatrixBufferH264(vlVaContext *context, vlVaBuffer *buf);
438
void vlVaHandleSliceParameterBufferH264(vlVaContext *context, vlVaBuffer *buf);
439
void vlVaHandlePictureParameterBufferVC1(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
440
void vlVaHandleSliceParameterBufferVC1(vlVaContext *context, vlVaBuffer *buf);
441
void vlVaHandlePictureParameterBufferMPEG4(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
442
void vlVaHandleIQMatrixBufferMPEG4(vlVaContext *context, vlVaBuffer *buf);
443
void vlVaHandleSliceParameterBufferMPEG4(vlVaContext *context, vlVaBuffer *buf);
444
void vlVaDecoderFixMPEG4Startcode(vlVaContext *context);
445
void vlVaGetJpegSliceHeader(vlVaContext *context);
446
void vlVaHandlePictureParameterBufferHEVC(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
447
void vlVaHandleIQMatrixBufferHEVC(vlVaContext *context, vlVaBuffer *buf);
448
void vlVaHandleSliceParameterBufferHEVC(vlVaContext *context, vlVaBuffer *buf);
449
void vlVaHandlePictureParameterBufferMJPEG(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
450
void vlVaHandleIQMatrixBufferMJPEG(vlVaContext *context, vlVaBuffer *buf);
451
void vlVaHandleHuffmanTableBufferType(vlVaContext *context, vlVaBuffer *buf);
452
void vlVaHandleSliceParameterBufferMJPEG(vlVaContext *context, vlVaBuffer *buf);
453
void vlVaHandlePictureParameterBufferVP9(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
454
void vlVaHandleSliceParameterBufferVP9(vlVaContext *context, vlVaBuffer *buf);
455
void vlVaDecoderVP9BitstreamHeader(vlVaContext *context, vlVaBuffer *buf);
456
void getEncParamPresetH264(vlVaContext *context);
457
void getEncParamPresetH265(vlVaContext *context);
458
VAStatus vlVaHandleVAEncPictureParameterBufferTypeH264(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
459
VAStatus vlVaHandleVAEncSliceParameterBufferTypeH264(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
460
VAStatus vlVaHandleVAEncSequenceParameterBufferTypeH264(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
461
VAStatus vlVaHandleVAEncMiscParameterTypeRateControlH264(vlVaContext *context, VAEncMiscParameterBuffer *buf);
462
VAStatus vlVaHandleVAEncMiscParameterTypeFrameRateH264(vlVaContext *context, VAEncMiscParameterBuffer *buf);
463
VAStatus vlVaHandleVAEncPictureParameterBufferTypeHEVC(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
464
VAStatus vlVaHandleVAEncSliceParameterBufferTypeHEVC(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
465
VAStatus vlVaHandleVAEncSequenceParameterBufferTypeHEVC(vlVaDriver *drv, vlVaContext *context, vlVaBuffer *buf);
466
VAStatus vlVaHandleVAEncMiscParameterTypeRateControlHEVC(vlVaContext *context, VAEncMiscParameterBuffer *buf);
467
VAStatus vlVaHandleVAEncMiscParameterTypeFrameRateHEVC(vlVaContext *context, VAEncMiscParameterBuffer *buf);
468
VAStatus vlVaHandleVAEncPackedHeaderDataBufferTypeHEVC(vlVaContext *context, vlVaBuffer *buf);
469
#endif //VA_PRIVATE_H
470
471