summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-02-04 05:07:54 -0500
committerAustin Yuan <shengquan.yuan@intel.com>2009-02-04 05:07:54 -0500
commit1cb6ba5375d8fe7ba411fe588a48afda92f1d3b3 (patch)
tree3bd6b12e33adc35c4331dee220b64db58aa23295 /src
parenta59133d8bdb2418b45f95279ff00146363701a64 (diff)
downloadlibva-1cb6ba5375d8fe7ba411fe588a48afda92f1d3b3.tar.gz
Prototype of vaCreateSurfaceFromCIFrame
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/va.c15
-rwxr-xr-xsrc/va_backend.h6
2 files changed, 21 insertions, 0 deletions
diff --git a/src/va.c b/src/va.c
index d5aed08..1eb7117 100644
--- 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,
diff --git a/src/va_backend.h b/src/va_backend.h
index 5792141..5d05fca 100755
--- a/src/va_backend.h
+++ b/src/va_backend.h
@@ -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,