forked from linux-sunxi/libvdpau-sunxi
-
Notifications
You must be signed in to change notification settings - Fork 8
/
opengl_nv.h
31 lines (26 loc) · 813 Bytes
/
opengl_nv.h
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
#ifndef _OPENGL_NV_H_
#define _OPENGL_NV_H_
#include "vdpau_private.h"
#include <EGL/eglplatform_fb.h>
#include "EGL/fbdev_window.h"
#include <EGL/egl.h>
#include <EGL/eglext.h>
typedef uint32_t vdpauSurfaceNV;
#define MAX_NUM_TEXTURES 6
typedef struct surface_nv_ctx_struct
{
enum HandleType surfaceType;
VdpVideoSurface surface;
enum VdpauNVState vdpNvState;
uint32_t target;
GLsizei numTextureNames;
uint textureNames[MAX_NUM_TEXTURES];
EGLImageKHR eglImage[MAX_NUM_TEXTURES];
struct fbdev_pixmap cMemPixmap[MAX_NUM_TEXTURES];
CEDARV_MEMORY convY;
CEDARV_MEMORY convU;
CEDARV_MEMORY convV;
uint32_t conv_width;
uint32_t conv_height;
} surface_nv_ctx_t;
#endif