Add vaPutSurfaceBuf for Android 49/549/1 20100414_5.3.0.0002 20100421_5.3.0.0003 20100428_5.3.0.0004 20100505_5.3.0.0005 20100510_5.3.0.0006_mdfld_eng_1 20100512_5.3.0.0007 20100517_5.3.0.0008 IMG_Drop_20100507_MDFLD
authorRen Zhaohan <zhaohan.ren@intel.com>
Thu, 8 Apr 2010 05:44:05 +0000 (13:44 +0800)
committerRen Zhaohan <zhaohan.ren@intel.com>
Thu, 8 Apr 2010 05:44:05 +0000 (13:44 +0800)
va/android/va_android.c
va/va_android.h
va/va_backend.h

index 687b86d..c7176c9 100644 (file)
@@ -186,3 +186,31 @@ VAStatus vaPutSurface (
                                    destx, desty, destw, desth,
                                    cliprects, number_cliprects, flags );
 }
+
+VAStatus vaPutSurfaceBuf (
+    VADisplay dpy,
+    VASurfaceID surface,
+    Drawable draw, /* Android Surface/Window */
+    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;
+
+  CHECK_DISPLAY(dpy);
+  ctx = CTX(dpy);
+
+  return ctx->vtable.vaPutSurfaceBuf( ctx, surface, draw, data, data_len, srcx, srcy, srcw, srch,
+                                     destx, desty, destw, desth, cliprects, number_cliprects, flags );
+}
index 176c258..eefe4f4 100644 (file)
@@ -41,6 +41,24 @@ VAStatus vaPutSurface (
     unsigned int flags /* PutSurface flags */
 );
 
+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 */
+       );
 #ifdef __cplusplus
 }
 #endif
index 25dfeed..a857857 100644 (file)
@@ -193,6 +193,25 @@ struct VADriverVTable
                unsigned int flags /* de-interlacing flags */
        );
 
+       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 */
+       );
+
        VAStatus (*vaQueryImageFormats) (
                VADriverContextP ctx,
                VAImageFormat *format_list,        /* out */