diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2009-08-31 16:29:11 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@intel.com> | 2009-08-31 16:29:11 +0800 |
commit | a5f3e05496d75942488483fa2f9c51cdd0c13543 (patch) | |
tree | caa119e8b782e0b3b0f6b92fa125f6a89e2eda7e | |
parent | a7dbd4e05ab1f30d7f020ff0b25d8f1948924f91 (diff) | |
parent | 9664f0b207b48a141200bf392374eef82b3a1d08 (diff) |
Merge branch 'master-fd.o'
-rw-r--r-- | dummy_drv_video/dummy_drv_video.c | 2 | ||||
-rw-r--r-- | i965_drv_video/i965_drv_video.c | 2 | ||||
-rw-r--r-- | src/va.c | 4 | ||||
-rw-r--r-- | src/va.h | 15 |
4 files changed, 19 insertions, 4 deletions
diff --git a/dummy_drv_video/dummy_drv_video.c b/dummy_drv_video/dummy_drv_video.c index 1a9d7c1..f617018 100644 --- a/dummy_drv_video/dummy_drv_video.c +++ b/dummy_drv_video/dummy_drv_video.c @@ -1163,7 +1163,7 @@ VAStatus dummy_Terminate( VADriverContextP ctx ) return VA_STATUS_SUCCESS; } -VAStatus __vaDriverInit_0_30( VADriverContextP ctx ) +VAStatus __vaDriverInit_0_31( VADriverContextP ctx ) { object_base_p obj; int result; diff --git a/i965_drv_video/i965_drv_video.c b/i965_drv_video/i965_drv_video.c index caf7f62..d26942d 100644 --- a/i965_drv_video/i965_drv_video.c +++ b/i965_drv_video/i965_drv_video.c @@ -1312,7 +1312,7 @@ i965_Terminate(VADriverContextP ctx) } VAStatus -__vaDriverInit_0_30( VADriverContextP ctx ) +__vaDriverInit_0_31( VADriverContextP ctx ) { struct i965_driver_data *i965; int result; @@ -39,8 +39,8 @@ #include "va_dricommon.h" -#define DRIVER_INIT_FUNC "__vaDriverInit_0_30" -#define DRIVER_INIT_FUNC_SDS "__vaDriverInit_0_30_sds" +#define DRIVER_INIT_FUNC "__vaDriverInit_0_31" +#define DRIVER_INIT_FUNC_SDS "__vaDriverInit_0_31_sds" #define DRIVER_EXTENSION "_drv_video.so" @@ -392,6 +392,21 @@ VAStatus vaCreateSurfaces ( VASurfaceID *surfaces /* out */ ); +/* Wrap a CI (camera imaging) frame as a VA surface to share captured video between camear + * and VA encode. With frame_id, VA driver need to call CI interfaces to get the information + * of the frame, and to determine if the frame can be wrapped as a VA surface + * + * Application should make sure the frame is idle before the frame is passed into VA stack + * and also a vaSyncSurface should be called before application tries to access the frame + * from CI stack + */ +VAStatus vaCreateSurfaceFromCIFrame ( + VADisplay dpy, + unsigned long frame_id, + VASurfaceID *surface /* out */ +); + + /* * vaDestroySurfaces - Destroy resources associated with surfaces. * Surfaces can only be destroyed after the context associated has been |