Commit d8f7c84f authored by Austin Yuan's avatar Austin Yuan

Added vaDbgCreateSurfaceFromUB for V4L2 buffer sharing

Signed-off-by: default avatarAustin Yuan <shengquan.yuan@intel.com>
parent fee5a472
...@@ -1271,3 +1271,21 @@ VAStatus vaDbgCopySurfaceToBuffer(VADisplay dpy, ...@@ -1271,3 +1271,21 @@ VAStatus vaDbgCopySurfaceToBuffer(VADisplay dpy,
return ctx->vtable.vaDbgCopySurfaceToBuffer( ctx, surface, buffer, stride ); return ctx->vtable.vaDbgCopySurfaceToBuffer( ctx, surface, buffer, stride );
} }
VAStatus vaDbgCreateSurfaceFromUB(
VADisplay dpy,
unsigned int width,
unsigned int height,
unsigned int size,
void *start,
VASurfaceID *surface /* out */
)
{
VADriverContextP ctx;
CHECK_DISPLAY(dpy);
ctx = CTX(dpy);
TRACE(vaDbgCreateSurfaceFromUB);
return ctx->vtable.vaDbgCreateSurfaceFromUB( ctx, width, height, size, start, surface );
}
...@@ -393,6 +393,14 @@ struct VADriverVTable ...@@ -393,6 +393,14 @@ struct VADriverVTable
void **buffer, /* out */ void **buffer, /* out */
unsigned int *stride /* out */ unsigned int *stride /* out */
); );
VAStatus (*vaDbgCreateSurfaceFromUB) (
VADriverContextP ctx,
unsigned int width,
unsigned int height,
unsigned int size,
void *start,
VASurfaceID *surface /* out */
);
}; };
struct VADriverContext struct VADriverContext
......
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