diff options
author | Ren Zhaohan <zhaohan.ren@intel.com> | 2010-04-27 14:36:24 +0800 |
---|---|---|
committer | Ren Zhaohan <zhaohan.ren@intel.com> | 2010-04-27 14:36:24 +0800 |
commit | c4a03c1016cd41e22ecc3410be6759aa0e1a71cf (patch) | |
tree | f2956c9fa8df9b84a15b65e6a4f5c1c912149fc2 /va/va_backend.h | |
parent | 24914b55e70e2012682eecd8e81bb3bd5fada310 (diff) |
libva backend
Diffstat (limited to 'va/va_backend.h')
-rw-r--r-- | va/va_backend.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/va/va_backend.h b/va/va_backend.h index cd6201e..b496b35 100644 --- a/va/va_backend.h +++ b/va/va_backend.h @@ -30,15 +30,18 @@ #define _VA_BACKEND_H_ #include <va/va.h> +#ifndef ANDROID #include <X11/Xlib.h> +#endif #include <linux/videodev2.h> -#include <ui/Surface.h> - -class Surface; typedef struct VADriverContext *VADriverContextP; typedef struct VADisplayContext *VADisplayContextP; +#ifdef ANDROID +#define Surface void +#endif + struct VADriverVTable { VAStatus (*vaTerminate) ( VADriverContextP ctx ); @@ -182,7 +185,11 @@ struct VADriverVTable VAStatus (*vaPutSurface) ( VADriverContextP ctx, VASurfaceID surface, + #ifdef ANDROID Surface* draw, /* X Drawable */ + #else + Drawable draw, + #endif short srcx, short srcy, unsigned short srcw, |