summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Kerling <pkerling@casix.org>2018-03-07 08:40:37 +0100
committerXiang, Haihao <haihao.xiang@intel.com>2018-03-30 09:57:35 +0800
commit6ac580c296cdbeb9a50462d280cc40d8716ffa30 (patch)
treeb4c551305fc46428a803381a040ea7c49ff9b3a2
parent392187428cee9f5062c1b989cbe83a0a5e17c861 (diff)
downloadlibva-6ac580c296cdbeb9a50462d280cc40d8716ffa30.tar.gz
va: Add VA_SURFACE_ATTRIB_USAGE_HINT_EXPORT
This can be used to tell the driver to prepare the surface such that it can easily be used for export to third-party APIs. For example, the driver might choose to decode to frames instead of fields since only frames can be exported.
-rw-r--r--va/va.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/va/va.h b/va/va.h
index a8e8d14..676999a 100644
--- a/va/va.h
+++ b/va/va.h
@@ -1321,6 +1321,9 @@ typedef struct _VASurfaceAttribExternalBuffers {
#define VA_SURFACE_ATTRIB_USAGE_HINT_VPP_WRITE 0x00000008
/** \brief Surface used for display. */
#define VA_SURFACE_ATTRIB_USAGE_HINT_DISPLAY 0x00000010
+/** \brief Surface used for export to third-party APIs, e.g. via
+ * vaExportSurfaceHandle(). */
+#define VA_SURFACE_ATTRIB_USAGE_HINT_EXPORT 0x00000020
/**@}*/