Merge branch 'va_backend' into PO
[profile/ivi/libva.git] / va / va_android.h
index 27ffff3..bba85f7 100644 (file)
@@ -6,14 +6,17 @@
 extern "C" {
 #endif
 
-//#define Surface void
 /*
  * Returns a suitable VADisplay for VA API
  */
 VADisplay vaGetDisplay (
-    Display *dpy
+    void *android_dpy
 );
 
+#if ANDROID    
+#include <ui/Surface.h>
+class Surface;
+    
 /*
  * Output rendering
  * Following is the rendering interface for X windows, 
@@ -25,8 +28,7 @@ VADisplay vaGetDisplay (
 VAStatus vaPutSurface (
     VADisplay dpy,
     VASurfaceID surface,       
-    //Surface *draw, /* Android Window/Surface */
-    void* draw,
+    Surface *draw, /* Android Window/Surface */
     short srcx,
     short srcy,
     unsigned short srcw,
@@ -39,6 +41,8 @@ VAStatus vaPutSurface (
     unsigned int number_cliprects, /* number of clip rects in the clip list */
     unsigned int flags /* PutSurface flags */
 );
+#endif
+    
 #ifdef __cplusplus
 }
 #endif