Prototype of vaCreateSurfaceFromCIFrame
authorAustin Yuan <shengquan.yuan@intel.com>
Wed, 4 Feb 2009 10:07:54 +0000 (05:07 -0500)
committerAustin Yuan <shengquan.yuan@intel.com>
Wed, 4 Feb 2009 10:07:54 +0000 (05:07 -0500)
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
src/va.c
src/va_backend.h

index d5aed08..1eb7117 100644 (file)
--- a/src/va.c
+++ b/src/va.c
@@ -535,6 +535,21 @@ VAStatus vaCreateSurfaces (
   return ctx->vtable.vaCreateSurfaces( ctx, width, height, format, num_surfaces, surfaces );
 }
 
+
+VAStatus vaCreateSurfaceFromCIFrame (
+    VADisplay dpy,
+    unsigned long frame_id,
+    VASurfaceID *surface       /* out */
+)
+{
+  VADriverContextP ctx;
+  CHECK_DISPLAY(dpy);
+  ctx = CTX(dpy);
+
+  TRACE(vaCreateSurfacesFromCIFrame);
+  return ctx->vtable.vaCreateSurfaceFromCIFrame( ctx, frame_id, surface );
+}
+
 VAStatus vaDestroySurfaces (
     VADisplay dpy,
     VASurfaceID *surface_list,
index 5792141..5d05fca 100755 (executable)
@@ -95,6 +95,12 @@ struct VADriverVTable
                VASurfaceID *surfaces           /* out */
        );
 
+       VAStatus (*vaCreateSurfaceFromCIFrame) (
+               VADriverContextP ctx,
+               unsigned long frame_id,
+               VASurfaceID *surface            /* out */
+       );
+    
        VAStatus (*vaDestroySurfaces) (
                VADriverContextP ctx,
                VASurfaceID *surface_list,