summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2019-09-12 14:23:56 -0800
committerXiang, Haihao <haihao.xiang@intel.com>2019-11-21 14:36:10 +0800
commitb682a685bdc336bfb722c58eb38c2c4da87a206b (patch)
treeef7cf83a2f3c345a3d59f34e98825196fccda6a6
parent9724ff9bfb6f3bbc198c390b32e3d43d458b6215 (diff)
downloadlibva-intel-driver-b682a685bdc336bfb722c58eb38c2c4da87a206b.tar.gz
Fix QualityRange query for the VP8 encoder
The VP8 encoder supports two quality levels, one for the normal mode and the other for performance-mode(less-quality). This patch ensures that the ConfigAttrib query advertising the correct range.
-rw-r--r--src/i965_drv_video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 55b066f3..ff163887 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -1147,6 +1147,8 @@ i965_GetConfigAttributes(VADriverContextP ctx,
else if (profile == VAProfileVP9Profile0 &&
entrypoint == VAEntrypointEncSliceLP) {
attrib_list[i].value = ENCODER_QUALITY_RANGE_VP9;
+ } else if (profile == VAProfileVP8Version0_3) {
+ attrib_list[i].value = ENCODER_QUALITY_RANGE;
}
break;