summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-08-31 16:27:09 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2009-08-31 16:27:09 +0800
commit9664f0b207b48a141200bf392374eef82b3a1d08 (patch)
tree38a3ff518634e5b0ffa784633af40dd62776ed99 /src
parent2822d025263d516bd619c8bbe1d17ff4c1bd1af2 (diff)
downloadlibva-9664f0b207b48a141200bf392374eef82b3a1d08.tar.gz
__vaDriverInit_0_30 --> __vaDriverInit_0_31 for libva31
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/va.c4
-rw-r--r--src/va.h15
2 files changed, 17 insertions, 2 deletions
diff --git a/src/va.c b/src/va.c
index dbfcd31..9a34534 100644
--- a/src/va.c
+++ b/src/va.c
@@ -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"
diff --git a/src/va.h b/src/va.h
index 874049f..083275b 100644
--- a/src/va.h
+++ b/src/va.h
@@ -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