diff options
Diffstat (limited to 'va/egl/va_backend_egl.h')
-rw-r--r-- | va/egl/va_backend_egl.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/va/egl/va_backend_egl.h b/va/egl/va_backend_egl.h index 925d933..9dae84f 100644 --- a/va/egl/va_backend_egl.h +++ b/va/egl/va_backend_egl.h @@ -36,6 +36,38 @@ struct VADriverVTableEGL { void **buffer ); /* TBD: more APIs for EGL */ + /* Optional: create a surface used for display to OpenGL */ + VAStatus (*vaCreateSurfaceEGL)( + VADriverContextP ctx, + GLenum target, + GLuint texture, + unsigned int width, + unsigned int height, + VASurfaceEGL *egl_surface + ); + + /* Optional: destroy a VA/EGL surface */ + VAStatus (*vaDestroySurfaceEGL)( + VADriverContextP ctx, + VASurfaceEGL egl_surface + ); + + VAStatus (*vaAssociateSurfaceEGL)( + VADriverContextP ctx, + VASurfaceEGL egl_surface, + VASurfaceID surface, + unsigned int flags + ); + + VAStatus (*vaUpdateAssociatedSurfaceEGL)( + VADriverContextP ctx, + VASurfaceEGL egl_surface + ); + + VAStatus (*vaDeassociateSurfaceEGL)( + VADriverContextP ctx, + VASurfaceEGL egl_surface + ); }; #endif /* VA_BACKEND_EGL_H */ |