summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRen Zhaohan <zhaohan.ren@intel.com>2010-04-08 13:44:05 +0800
committerRen Zhaohan <zhaohan.ren@intel.com>2010-04-08 13:44:05 +0800
commit52739317c115ccf0b729d0ce282fc3c30249a4f5 (patch)
tree3a4efccfa09da8dcee5e5c798327ff9e1375c7ae
parent3d018aa9c3aaa9a80f41d47b29b58242422851f7 (diff)
-rw-r--r--va/android/va_android.c28
-rw-r--r--va/va_android.h18
-rw-r--r--va/va_backend.h19
3 files changed, 65 insertions, 0 deletions
diff --git a/va/android/va_android.c b/va/android/va_android.c
index 687b86d..c7176c9 100644
--- a/va/android/va_android.c
+++ b/va/android/va_android.c
@@ -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 );
+}
diff --git a/va/va_android.h b/va/va_android.h
index 176c258..eefe4f4 100644
--- a/va/va_android.h
+++ b/va/va_android.h
@@ -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
diff --git a/va/va_backend.h b/va/va_backend.h
index 25dfeed..a857857 100644
--- a/va/va_backend.h
+++ b/va/va_backend.h
@@ -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 */