summaryrefslogtreecommitdiff
path: root/va/va.h
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2015-05-23 09:23:23 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2015-05-22 16:42:03 +0800
commit9f2a994643001a03e103aa13268abbd86b49a5c4 (patch)
treed894d6d8877c27f58effd1179dae0f3358b8da11 /va/va.h
parent9bfde38f19d81b7f33db8c4c8e80420c9e60429e (diff)
downloadlibva-9f2a994643001a03e103aa13268abbd86b49a5c4.tar.gz
Add one API to allow the user to specify the loaded backend driver
Sometimes there exist multiple backend vaapi drivers on one system. In such case user hopes to load the specific driver based on the request. Currently it can be specified by using LIBVA_DRIVER_NAME environment. But it is not convenient. So one API is added to allow the user to specify the loaded backend vaapi driver. And it is called by using the following sequence: >vaGetDisplay( >vaSetDriverName(va_dpy, driver_name) >vaInitialize V1->V2: Use the reserved space to store override_driver_name based on Haihao's suggestion. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'va/va.h')
-rw-r--r--va/va.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/va/va.h b/va/va.h
index 83d633f..88fde4e 100644
--- a/va/va.h
+++ b/va/va.h
@@ -232,7 +232,14 @@ const char *vaErrorStr(VAStatus error_status);
typedef void* VANativeDisplay; /* window system dependent */
int vaDisplayIsValid(VADisplay dpy);
-
+
+/**
+ * Set the override driver name instead of queried driver driver.
+ */
+VAStatus vaSetDriverName(VADisplay dpy,
+ char *driver_name
+);
+
/**
* Initialize the library
*/