Commit ad7f7f2b authored by Austin Yuan's avatar Austin Yuan

clean vaDbyCreateSurfaceFromMrstV4L2Buf

Signed-off-by: default avatarAustin Yuan <shengquan.yuan@intel.com>
parent 939437e3
...@@ -1271,13 +1271,19 @@ VAStatus vaDbgCopySurfaceToBuffer(VADisplay dpy, ...@@ -1271,13 +1271,19 @@ VAStatus vaDbgCopySurfaceToBuffer(VADisplay dpy,
return ctx->vtable.vaDbgCopySurfaceToBuffer( ctx, surface, buffer, stride ); return ctx->vtable.vaDbgCopySurfaceToBuffer( ctx, surface, buffer, stride );
} }
#warning TODO: Remove vaDbgCreateSurfaceFromMrstV4L2Buf in rev 0.29
VAStatus vaDbgCreateSurfaceFromUB( VAStatus vaDbgCreateSurfaceFromMrstV4L2Buf(
VADisplay dpy, VADisplay dpy,
unsigned int width, unsigned int width,
unsigned int height, unsigned int height,
unsigned int size, 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 */ VASurfaceID *surface /* out */
) )
{ {
...@@ -1285,7 +1291,7 @@ VAStatus vaDbgCreateSurfaceFromUB( ...@@ -1285,7 +1291,7 @@ VAStatus vaDbgCreateSurfaceFromUB(
CHECK_DISPLAY(dpy); CHECK_DISPLAY(dpy);
ctx = CTX(dpy); ctx = CTX(dpy);
TRACE(vaDbgCreateSurfaceFromUB); TRACE(vtable.vaDbgCreateSurfaceFromMrstV4L2Buf);
return ctx->vtable.vaDbgCreateSurfaceFromUB( ctx, width, height, size, start, surface ); 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 );
} }
...@@ -393,12 +393,18 @@ struct VADriverVTable ...@@ -393,12 +393,18 @@ struct VADriverVTable
void **buffer, /* out */ void **buffer, /* out */
unsigned int *stride /* out */ unsigned int *stride /* out */
); );
VAStatus (*vaDbgCreateSurfaceFromUB) ( VAStatus (*vaDbgCreateSurfaceFromMrstV4L2Buf) (
VADriverContextP ctx, VADriverContextP ctx,
unsigned int width, unsigned int width,
unsigned int height, unsigned int height,
unsigned int size, 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 */ VASurfaceID *surface /* 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