summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxfengcarl <carl.zhang@intel.com>2017-06-13 22:22:00 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2017-11-21 23:27:31 -0800
commit03b410ca392972c6f349b55321ba2b094ea80f16 (patch)
tree2fa185e6b2f506269a179f915caf9bf62a54b05d
parent075566a6e1e672e8ff88c54c08503539cb8bd360 (diff)
downloadlibva-03b410ca392972c6f349b55321ba2b094ea80f16.tar.gz
expose driver capibility of resolution
application can get the maxium resolution supported by driver through these two attribute:VAConfigAttribMaxPictureWidth & VAConfigAttribMaxPictureHeight Signed-off-by: Carl.Zhang <carl.zhang@intel.com>
-rw-r--r--va/va.h14
-rw-r--r--va/va_str.c2
2 files changed, 16 insertions, 0 deletions
diff --git a/va/va.h b/va/va.h
index d8a9eaa..748e587 100644
--- a/va/va.h
+++ b/va/va.h
@@ -505,6 +505,20 @@ typedef enum
*/
VAConfigAttribEncMacroblockInfo = 16,
/**
+ * \brief Maximum picture width. Read-only.
+ *
+ * This attribute determines the maximum picture width the driver supports
+ * for a given configuration.
+ */
+ VAConfigAttribMaxPictureWidth = 18,
+ /**
+ * \brief Maximum picture height. Read-only.
+ *
+ * This attribute determines the maximum picture height the driver supports
+ * for a given configuration.
+ */
+ VAConfigAttribMaxPictureHeight = 19,
+ /**
* \brief JPEG encoding attribute. Read-only.
*
* This attribute exposes a number of capabilities of the underlying
diff --git a/va/va_str.c b/va/va_str.c
index d9d2473..48b021a 100644
--- a/va/va_str.c
+++ b/va/va_str.c
@@ -99,6 +99,8 @@ const char *vaConfigAttribTypeStr(VAConfigAttribType configAttribType)
TOSTR(VAConfigAttribFEIFunctionType);
TOSTR(VAConfigAttribFEIMVPredictors);
TOSTR(VAConfigAttribDecJPEG);
+ TOSTR(VAConfigAttribMaxPictureWidth);
+ TOSTR(VAConfigAttribMaxPictureHeight);
case VAConfigAttribTypeMax: break;
}
return "<unknown config attribute type>";