diff options
author | Ren Zhaohan <zhaohan.ren@intel.com> | 2010-04-08 13:44:05 +0800 |
---|---|---|
committer | Ren Zhaohan <zhaohan.ren@intel.com> | 2010-04-08 13:44:05 +0800 |
commit | 52739317c115ccf0b729d0ce282fc3c30249a4f5 (patch) | |
tree | 3a4efccfa09da8dcee5e5c798327ff9e1375c7ae | |
parent | 3d018aa9c3aaa9a80f41d47b29b58242422851f7 (diff) |
Add vaPutSurfaceBuf for AndroidIMG_Drop_20100507_MDFLD20100517_5.3.0.000820100512_5.3.0.000720100510_5.3.0.0006_mdfld_eng_120100505_5.3.0.000520100428_5.3.0.000420100421_5.3.0.000320100414_5.3.0.0002
-rw-r--r-- | va/android/va_android.c | 28 | ||||
-rw-r--r-- | va/va_android.h | 18 | ||||
-rw-r--r-- | va/va_backend.h | 19 |
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 */ |