From: Austin Yuan Date: Wed, 4 Feb 2009 10:07:54 +0000 (-0500) Subject: Prototype of vaCreateSurfaceFromCIFrame X-Git-Tag: 20090306~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cb6ba5375d8fe7ba411fe588a48afda92f1d3b3;p=platform%2Fupstream%2Flibva.git Prototype of vaCreateSurfaceFromCIFrame Signed-off-by: Austin Yuan --- 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,