OSDN Git Service

Support VBR for HEVC 10bit
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 2 Feb 2018 04:23:58 +0000 (12:23 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 2 Feb 2018 04:28:47 +0000 (12:28 +0800)
VBR should be returned when querying the supported RC modes for
VAProfileHEVCMain10/VAEntrypointEncSlice pair

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/i965_drv_video.c

index 61b0d4f..36719e8 100644 (file)
@@ -978,7 +978,8 @@ i965_get_rc_attributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint ent
             rc_attribs |= VA_RC_CBR;
 
         if (profile == VAProfileVP8Version0_3 ||
-            profile == VAProfileHEVCMain)
+            profile == VAProfileHEVCMain ||
+            profile == VAProfileHEVCMain10)
             rc_attribs |= VA_RC_VBR;
 
         if (profile == VAProfileVP9Profile0)