• 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ón684c5a16ee9fe0bf92d13b91095e8cf638e82d53 (tree)
Tiempo2017-07-01 00:01:38
AutorPengfei Qu <Pengfei.Qu@inte...>
CommiterXiang, Haihao

Log Message

Enc: add max ref number query for AVC encoder on SKL+

Fixes #199

Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -1022,9 +1022,17 @@ i965_GetConfigAttributes(VADriverContextP ctx,
10221022 break;
10231023
10241024 case VAConfigAttribEncMaxRefFrames:
1025- if (entrypoint == VAEntrypointEncSlice)
1025+ if (entrypoint == VAEntrypointEncSlice) {
10261026 attrib_list[i].value = (1 << 16) | (1 << 0);
1027- else if (entrypoint == VAEntrypointEncSliceLP) {
1027+ if (profile == VAProfileH264ConstrainedBaseline ||
1028+ profile == VAProfileH264Main ||
1029+ profile == VAProfileH264High ||
1030+ profile == VAProfileH264StereoHigh ||
1031+ profile == VAProfileH264MultiviewHigh) {
1032+ if (IS_GEN9(i965->intel.device_info))
1033+ attrib_list[i].value = (2 << 16) | (8 << 0);
1034+ }
1035+ } else if (entrypoint == VAEntrypointEncSliceLP) {
10281036 /* Don't support B frame for low power mode */
10291037 if (profile == VAProfileH264ConstrainedBaseline ||
10301038 profile == VAProfileH264Main ||