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,
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,
unsigned int number_cliprects, /* number of clip rects in the clip list */
unsigned int flags /* PutSurface flags */
);
+#endif
+
#ifdef __cplusplus
}
#endif