Added vaDbgCreateSurfaceFromUB for V4L2 buffer sharing
authorAustin Yuan <shengquan.yuan@intel.com>
Fri, 6 Feb 2009 13:38:25 +0000 (08:38 -0500)
committerAustin Yuan <shengquan.yuan@intel.com>
Fri, 6 Feb 2009 13:38:25 +0000 (08:38 -0500)
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
src/va.c
src/va_backend.h

index 1eb7117..1d7945c 100644 (file)
--- a/src/va.c
+++ b/src/va.c
@@ -1271,3 +1271,21 @@ VAStatus vaDbgCopySurfaceToBuffer(VADisplay dpy,
   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 );
+}
+
index 5d05fca..7411eac 100755 (executable)
@@ -393,6 +393,14 @@ struct VADriverVTable
                void **buffer, /* 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