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>
@@ -505,6 +505,20 @@ typedef enum | ||
505 | 505 | */ |
506 | 506 | VAConfigAttribEncMacroblockInfo = 16, |
507 | 507 | /** |
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 | + /** | |
508 | 522 | * \brief JPEG encoding attribute. Read-only. |
509 | 523 | * |
510 | 524 | * This attribute exposes a number of capabilities of the underlying |
@@ -99,6 +99,8 @@ const char *vaConfigAttribTypeStr(VAConfigAttribType configAttribType) | ||
99 | 99 | TOSTR(VAConfigAttribFEIFunctionType); |
100 | 100 | TOSTR(VAConfigAttribFEIMVPredictors); |
101 | 101 | TOSTR(VAConfigAttribDecJPEG); |
102 | + TOSTR(VAConfigAttribMaxPictureWidth); | |
103 | + TOSTR(VAConfigAttribMaxPictureHeight); | |
102 | 104 | case VAConfigAttribTypeMax: break; |
103 | 105 | } |
104 | 106 | return "<unknown config attribute type>"; |