diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2009-02-16 08:37:07 -0500 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2009-02-16 08:37:07 -0500 |
commit | ad7f7f2b72da6e5b632ebed6878e84d7c3527beb (patch) | |
tree | 0f53912b62c5d1287ed0ee76b9de5c0a38d68bd0 | |
parent | 939437e3fc617cdbc0e258d6f6ea51238341a307 (diff) |
clean vaDbyCreateSurfaceFromMrstV4L2Buf
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r-- | src/va.c | 16 | ||||
-rwxr-xr-x | src/va_backend.h | 10 |
2 files changed, 19 insertions, 7 deletions
@@ -1271,13 +1271,19 @@ VAStatus vaDbgCopySurfaceToBuffer(VADisplay dpy, return ctx->vtable.vaDbgCopySurfaceToBuffer( ctx, surface, buffer, stride ); } - -VAStatus vaDbgCreateSurfaceFromUB( +#warning TODO: Remove vaDbgCreateSurfaceFromMrstV4L2Buf in rev 0.29 +VAStatus vaDbgCreateSurfaceFromMrstV4L2Buf( VADisplay dpy, unsigned int width, unsigned int height, unsigned int size, - void *start, + unsigned int fourcc, + unsigned int luma_stride, + unsigned int chroma_u_stride, + unsigned int chroma_v_stride, + unsigned int luma_offset, + unsigned int chroma_u_offset, + unsigned int chroma_v_offset, VASurfaceID *surface /* out */ ) { @@ -1285,7 +1291,7 @@ VAStatus vaDbgCreateSurfaceFromUB( CHECK_DISPLAY(dpy); ctx = CTX(dpy); - TRACE(vaDbgCreateSurfaceFromUB); - return ctx->vtable.vaDbgCreateSurfaceFromUB( ctx, width, height, size, start, surface ); + TRACE(vtable.vaDbgCreateSurfaceFromMrstV4L2Buf); + return ctx->vtable.vaDbgCreateSurfaceFromMrstV4L2Buf( ctx, width, height, size, fourcc, luma_stride, chroma_u_stride, chroma_v_stride, luma_offset, chroma_u_offset, chroma_v_offset, surface ); } diff --git a/src/va_backend.h b/src/va_backend.h index 7411eac..7f1f6a2 100755 --- a/src/va_backend.h +++ b/src/va_backend.h @@ -393,12 +393,18 @@ struct VADriverVTable void **buffer, /* out */ unsigned int *stride /* out */ ); - VAStatus (*vaDbgCreateSurfaceFromUB) ( + VAStatus (*vaDbgCreateSurfaceFromMrstV4L2Buf) ( VADriverContextP ctx, unsigned int width, unsigned int height, unsigned int size, - void *start, + unsigned int fourcc, + unsigned int luma_stride, + unsigned int chroma_u_stride, + unsigned int chroma_v_stride, + unsigned int luma_offset, + unsigned int chroma_u_offset, + unsigned int chroma_v_offset, VASurfaceID *surface /* out */ ); }; |