hardware/intel/common/libva
Revision | 9664f0b207b48a141200bf392374eef82b3a1d08 (tree) |
---|---|
Time | 2009-08-31 17:27:09 |
Author | Austin Yuan <shengquan.yuan@inte...> |
Commiter | Austin Yuan |
vaDriverInit_0_30 --> vaDriverInit_0_31 for libva31
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
@@ -1163,7 +1163,7 @@ VAStatus dummy_Terminate( VADriverContextP ctx ) | ||
1163 | 1163 | return VA_STATUS_SUCCESS; |
1164 | 1164 | } |
1165 | 1165 | |
1166 | -VAStatus __vaDriverInit_0_30( VADriverContextP ctx ) | |
1166 | +VAStatus __vaDriverInit_0_31( VADriverContextP ctx ) | |
1167 | 1167 | { |
1168 | 1168 | object_base_p obj; |
1169 | 1169 | int result; |
@@ -1312,7 +1312,7 @@ i965_Terminate(VADriverContextP ctx) | ||
1312 | 1312 | } |
1313 | 1313 | |
1314 | 1314 | VAStatus |
1315 | -__vaDriverInit_0_30( VADriverContextP ctx ) | |
1315 | +__vaDriverInit_0_31( VADriverContextP ctx ) | |
1316 | 1316 | { |
1317 | 1317 | struct i965_driver_data *i965; |
1318 | 1318 | int result; |
@@ -39,8 +39,8 @@ | ||
39 | 39 | #include "va_dricommon.h" |
40 | 40 | |
41 | 41 | |
42 | -#define DRIVER_INIT_FUNC "__vaDriverInit_0_30" | |
43 | -#define DRIVER_INIT_FUNC_SDS "__vaDriverInit_0_30_sds" | |
42 | +#define DRIVER_INIT_FUNC "__vaDriverInit_0_31" | |
43 | +#define DRIVER_INIT_FUNC_SDS "__vaDriverInit_0_31_sds" | |
44 | 44 | |
45 | 45 | #define DRIVER_EXTENSION "_drv_video.so" |
46 | 46 |
@@ -392,6 +392,21 @@ VAStatus vaCreateSurfaces ( | ||
392 | 392 | VASurfaceID *surfaces /* out */ |
393 | 393 | ); |
394 | 394 | |
395 | +/* Wrap a CI (camera imaging) frame as a VA surface to share captured video between camear | |
396 | + * and VA encode. With frame_id, VA driver need to call CI interfaces to get the information | |
397 | + * of the frame, and to determine if the frame can be wrapped as a VA surface | |
398 | + * | |
399 | + * Application should make sure the frame is idle before the frame is passed into VA stack | |
400 | + * and also a vaSyncSurface should be called before application tries to access the frame | |
401 | + * from CI stack | |
402 | + */ | |
403 | +VAStatus vaCreateSurfaceFromCIFrame ( | |
404 | + VADisplay dpy, | |
405 | + unsigned long frame_id, | |
406 | + VASurfaceID *surface /* out */ | |
407 | +); | |
408 | + | |
409 | + | |
395 | 410 | /* |
396 | 411 | * vaDestroySurfaces - Destroy resources associated with surfaces. |
397 | 412 | * Surfaces can only be destroyed after the context associated has been |