1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#ifndef _VA_EGL_PRIVATE_H_
#define _VA_EGL_PRIVATE_H_
#include "va.h"
#include "va_backend.h"
#include "va_egl.h"
#include "va_backend_egl.h"
typedef struct VADisplayContextEGL *VADisplayContextEGLP;
typedef struct VADriverContextEGL *VADriverContextEGLP;
typedef struct VASurfaceImplEGL *VASurfaceImplEGLP;
typedef struct VADriverVTableEGL *VADriverVTableEGLP;
typedef struct VADriverVTablePrivEGL *VADriverVTablePrivEGLP;
typedef void (*vaDestroyFunc)(VADisplayContextP);
struct VADisplayContextEGL {
vaDestroyFunc vaDestroy;
};
#define VA_DRIVER_CONTEXT_EGL(ctx) ((VADriverContextEGLP)((ctx)->egl))
struct VADriverVTablePrivEGL {
VAStatus (*vaQuerySurfaceTargetsEGL)(
VADisplay dpy,
EGLenum *target_list, /* out */
int *num_targets /* out */
);
VAStatus (*vaCreateSurfaceEGL)(
VADisplay dpy,
EGLenum target,
unsigned int width,
unsigned int height,
VASurfaceEGL *gl_surface
);
VAStatus (*vaDestroySurfaceEGL)(
VADisplay dpy,
VASurfaceEGL egl_surface
);
VAStatus (*vaAssociateSurfaceEGL)(
VADisplay dpy,
VASurfaceEGL egl_surface,
VASurfaceID surface,
unsigned int flags
);
VAStatus (*vaSyncSurfaceEGL)(
VADisplay dpy,
VASurfaceEGL egl_surface
);
VAStatus (*vaGetSurfaceInfoEGL)(
VADisplay dpy,
VASurfaceEGL egl_surface,
EGLenum *target,
EGLClientBuffer *buffer,
EGLint *attrib_list,
int *num_attribs
);
VAStatus (*vaDeassociateSurfaceEGL)(
VADisplay dpy,
VASurfaceEGL egl_surface
);
};
struct VADriverContextEGL {
struct VADriverVTablePrivEGL vtable;
unsigned int is_initialized : 1;
EGLDisplay egl_display;
};
#endif /* _VA_EGL_PRIVATE_H_ */
|