remove Drawable paramater of vaPutSurfaceBuf 79/579/1
authorRen Zhaohan <zhaohan.ren@intel.com>
Wed, 12 May 2010 06:16:37 +0000 (14:16 +0800)
committerRen Zhaohan <zhaohan.ren@intel.com>
Wed, 12 May 2010 06:16:37 +0000 (14:16 +0800)
va/va_backend_tpi.h
va/va_tpi.c
va/va_tpi.h

index f4417d2..2f40e5a 100644 (file)
@@ -54,7 +54,6 @@ struct VADriverVTableTPI
        VAStatus (*vaPutSurfaceBuf) (
                VADisplay dpy,
                VASurfaceID surface,
-               unsigned int draw, /* Android Surface/Window */
                unsigned char* data,
                int* data_len,
                short srcx,
index f375656..dda28e5 100644 (file)
 #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
 #define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }
 
-#ifdef ANDROID
-#define Drawable unsigned int
-#endif
-
 static int vaDisplayIsValid (VADisplay dpy)
 {
     VADisplayContextP pDisplayContext = (VADisplayContextP)dpy;
@@ -111,7 +107,6 @@ VAStatus vaCreateSurfaceFromV4L2Buf(
 VAStatus vaPutSurfaceBuf (
     VADisplay dpy,
     VASurfaceID surface,
-    Drawable draw, /* Android Surface/Window */
     unsigned char* data,
     int* data_len,
     short srcx,
@@ -134,7 +129,7 @@ VAStatus vaPutSurfaceBuf (
   
   tpi = ( struct VADriverVTableTPI *)ctx->vtable_tpi;
   if (tpi && tpi->vaPutSurfaceBuf) {
-      return tpi->vaPutSurfaceBuf( ctx, surface, draw, data, data_len, srcx, srcy, srcw, srch,
+      return tpi->vaPutSurfaceBuf( ctx, surface, data, data_len, srcx, srcy, srcw, srch,
                                       destx, desty, destw, desth, cliprects, number_cliprects, flags );
   } else
       return VA_STATUS_ERROR_UNIMPLEMENTED;
index 632639a..1fe4b8d 100644 (file)
  * and also a vaSyncSurface should be called before application tries to access the frame
  * from CI stack
  */
+#include <va/va.h>
 
-#ifdef ANDROID
-#define Drawable unsigned int
-#else
-#include <X11/Xlib.h>
+#ifdef __cplusplus
+extern "C" {
 #endif
 
-#include <va/va.h>
 VAStatus vaCreateSurfaceFromCIFrame (
     VADisplay dpy,
     unsigned long frame_id,
@@ -55,7 +53,6 @@ VAStatus vaCreateSurfaceFromV4L2Buf(
 VAStatus vaPutSurfaceBuf (
     VADisplay dpy,
     VASurfaceID surface,
-    Drawable draw, /* Android Surface/Window */
     unsigned char* data,
     int* data_len,
     short srcx,
@@ -70,3 +67,7 @@ VAStatus vaPutSurfaceBuf (
     unsigned int number_cliprects, /* number of clip rects in the clip list */
     unsigned int flags /* de-interlacing flags */
 );
+
+#ifdef __cplusplus
+}
+#endif