• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

hardware/intel/common/vaapi


Commit MetaInfo

Revisión8e9b449ee437e459dfe5b757591417152dc28ec2 (tree)
Tiempo2017-07-13 13:17:12
Autorpeng.chen <peng.c.chen@inte...>
CommiterXiang, Haihao

Log Message

Add HEVC ROI attributes for VAConfigAttribEncROI

Fixes #179

Signed-off-by: peng.chen <peng.c.chen@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -1084,6 +1084,8 @@ i965_GetConfigAttributes(VADriverContextP ctx,
10841084 case VAConfigAttribEncROI:
10851085 if (entrypoint == VAEntrypointEncSlice ||
10861086 entrypoint == VAEntrypointEncSliceLP) {
1087+ VAConfigAttribValEncROI *roi_config =
1088+ (VAConfigAttribValEncROI *) & (attrib_list[i].value);
10871089
10881090 if (profile == VAProfileH264ConstrainedBaseline ||
10891091 profile == VAProfileH264Main ||
@@ -1093,10 +1095,6 @@ i965_GetConfigAttributes(VADriverContextP ctx,
10931095 entrypoint == VAEntrypointEncSlice)
10941096 attrib_list[i].value = 0;
10951097 else {
1096-
1097- VAConfigAttribValEncROI *roi_config =
1098- (VAConfigAttribValEncROI *) & (attrib_list[i].value);
1099-
11001098 if (entrypoint == VAEntrypointEncSliceLP) {
11011099 roi_config->bits.num_roi_regions = 3;
11021100 roi_config->bits.roi_rc_priority_support = 0;
@@ -1108,6 +1106,12 @@ i965_GetConfigAttributes(VADriverContextP ctx,
11081106 roi_config->bits.roi_rc_qp_delat_support = 1;
11091107 }
11101108 }
1109+ } else if (profile == VAProfileHEVCMain ||
1110+ profile == VAProfileHEVCMain10) {
1111+ roi_config->bits.num_roi_regions =
1112+ I965_MAX_NUM_ROI_REGIONS;
1113+ roi_config->bits.roi_rc_priority_support = 1;
1114+ roi_config->bits.roi_rc_qp_delat_support = 1;
11111115 } else {
11121116 attrib_list[i].value = 0;
11131117 }