From: Ren Zhaohan Date: Thu, 8 Apr 2010 05:44:05 +0000 (+0800) Subject: Add vaPutSurfaceBuf for Android X-Git-Tag: 20100414_5.3.0.0002 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2F20100505_5.3.0.0005;p=profile%2Fivi%2Flibva.git Add vaPutSurfaceBuf for Android --- 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 */