Commit 52739317 authored by Ren Zhaohan's avatar Ren Zhaohan

Add vaPutSurfaceBuf for Android

parent 3d018aa9
...@@ -186,3 +186,31 @@ VAStatus vaPutSurface ( ...@@ -186,3 +186,31 @@ VAStatus vaPutSurface (
destx, desty, destw, desth, destx, desty, destw, desth,
cliprects, number_cliprects, flags ); 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 );
}
...@@ -41,6 +41,24 @@ VAStatus vaPutSurface ( ...@@ -41,6 +41,24 @@ VAStatus vaPutSurface (
unsigned int flags /* PutSurface flags */ 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 #ifdef __cplusplus
} }
#endif #endif
......
...@@ -193,6 +193,25 @@ struct VADriverVTable ...@@ -193,6 +193,25 @@ struct VADriverVTable
unsigned int flags /* de-interlacing flags */ 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) ( VAStatus (*vaQueryImageFormats) (
VADriverContextP ctx, VADriverContextP ctx,
VAImageFormat *format_list, /* out */ VAImageFormat *format_list, /* out */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment