• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/common/libva


コミットメタ情報

リビジョン03b410ca392972c6f349b55321ba2b094ea80f16 (tree)
日時2017-11-22 16:27:31
作者xfengcarl <carl.zhang@inte...>
コミッターXiang, Haihao

ログメッセージ

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>

変更サマリ

差分

--- a/va/va.h
+++ b/va/va.h
@@ -505,6 +505,20 @@ typedef enum
505505 */
506506 VAConfigAttribEncMacroblockInfo = 16,
507507 /**
508+ * \brief Maximum picture width. Read-only.
509+ *
510+ * This attribute determines the maximum picture width the driver supports
511+ * for a given configuration.
512+ */
513+ VAConfigAttribMaxPictureWidth = 18,
514+ /**
515+ * \brief Maximum picture height. Read-only.
516+ *
517+ * This attribute determines the maximum picture height the driver supports
518+ * for a given configuration.
519+ */
520+ VAConfigAttribMaxPictureHeight = 19,
521+ /**
508522 * \brief JPEG encoding attribute. Read-only.
509523 *
510524 * This attribute exposes a number of capabilities of the underlying
--- a/va/va_str.c
+++ b/va/va_str.c
@@ -99,6 +99,8 @@ const char *vaConfigAttribTypeStr(VAConfigAttribType configAttribType)
9999 TOSTR(VAConfigAttribFEIFunctionType);
100100 TOSTR(VAConfigAttribFEIMVPredictors);
101101 TOSTR(VAConfigAttribDecJPEG);
102+ TOSTR(VAConfigAttribMaxPictureWidth);
103+ TOSTR(VAConfigAttribMaxPictureHeight);
102104 case VAConfigAttribTypeMax: break;
103105 }
104106 return "<unknown config attribute type>";