summaryrefslogtreecommitdiff
path: root/va/va_android.h
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@gmail.com>2010-04-16 05:36:59 +0800
committerAustin Yuan <shengquan.yuan@gmail.com>2010-04-16 05:36:59 +0800
commit0ea43daae2db5fbfcb4c412853d763f77328414b (patch)
tree5a1573c1b761d1047593a6d822a95440f6d7be3b /va/va_android.h
parent52739317c115ccf0b729d0ce282fc3c30249a4f5 (diff)
downloadlibva-0ea43daae2db5fbfcb4c412853d763f77328414b.tar.gz
save
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Diffstat (limited to 'va/va_android.h')
-rw-r--r--va/va_android.h46
1 files changed, 27 insertions, 19 deletions
diff --git a/va/va_android.h b/va/va_android.h
index eefe4f4..4b92c88 100644
--- a/va/va_android.h
+++ b/va/va_android.h
@@ -2,13 +2,13 @@
#define _VA_ANDROID_H_
#include <va/va.h>
-#include <ui/Surface.h>
-class Surface;
+
#ifdef __cplusplus
extern "C" {
#endif
+
/*
* Returns a suitable VADisplay for VA API
*/
@@ -16,6 +16,11 @@ VADisplay vaGetDisplay (
void *dpy
);
+#ifdef ANDROID
+
+#include <ui/Surface.h>
+class Surface;
+
/*
* Output rendering
* Following is the rendering interface for X windows,
@@ -42,23 +47,26 @@ VAStatus vaPutSurface (
);
VAStatus vaPutSurfaceBuf (
- VADriverContextP ctx,
- VASurfaceID surface,
- Drawable draw, /* X Drawable */
- unsigned char* data,
- int* data_len,
- short srcx,
- short srcy,
- unsigned short srcw,
- unsigned short srch,
- short destx,
- short desty,
- unsigned short destw,
- unsigned short desth,
- VARectangle *cliprects, /* client supplied clip list */
- unsigned int number_cliprects, /* number of clip rects in the clip list */
- unsigned int flags /* de-interlacing flags */
- );
+ VADriverContextP ctx,
+ VASurfaceID surface,
+ Drawable draw, /* X Drawable */
+ unsigned char* data,
+ int* data_len,
+ short srcx,
+ short srcy,
+ unsigned short srcw,
+ unsigned short srch,
+ short destx,
+ short desty,
+ unsigned short destw,
+ unsigned short desth,
+ VARectangle *cliprects, /* client supplied clip list */
+ unsigned int number_cliprects, /* number of clip rects in the clip list */
+ unsigned int flags /* de-interlacing flags */
+);
+
+#endif
+
#ifdef __cplusplus
}
#endif