Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: third_party/libva/va/egl/va_egl_private.h

Issue 10375035: Add libva to chromium third_party. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/libva/va/egl/va_egl_impl.h ('k') | third_party/libva/va/glx/va_backend_glx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libva/va/egl/va_egl_private.h
diff --git a/third_party/libva/va/egl/va_egl_private.h b/third_party/libva/va/egl/va_egl_private.h
new file mode 100644
index 0000000000000000000000000000000000000000..5934e3679bfc821ea7131f55ff1c85cd6c590a31
--- /dev/null
+++ b/third_party/libva/va/egl/va_egl_private.h
@@ -0,0 +1,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_ */
« no previous file with comments | « third_party/libva/va/egl/va_egl_impl.h ('k') | third_party/libva/va/glx/va_backend_glx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698