hardware/intel/common/vaapi
Revisión | 684c5a16ee9fe0bf92d13b91095e8cf638e82d53 (tree) |
---|---|
Tiempo | 2017-07-01 00:01:38 |
Autor | Pengfei Qu <Pengfei.Qu@inte...> |
Commiter | Xiang, Haihao |
Enc: add max ref number query for AVC encoder on SKL+
Fixes #199
Signed-off-by: Pengfei Qu <Pengfei.Qu@intel.com>
@@ -1022,9 +1022,17 @@ i965_GetConfigAttributes(VADriverContextP ctx, | ||
1022 | 1022 | break; |
1023 | 1023 | |
1024 | 1024 | case VAConfigAttribEncMaxRefFrames: |
1025 | - if (entrypoint == VAEntrypointEncSlice) | |
1025 | + if (entrypoint == VAEntrypointEncSlice) { | |
1026 | 1026 | 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) { | |
1028 | 1036 | /* Don't support B frame for low power mode */ |
1029 | 1037 | if (profile == VAProfileH264ConstrainedBaseline || |
1030 | 1038 | profile == VAProfileH264Main || |