OSDN Git Service

Export the VBR bit rate-control for VP9 encoding on KBL
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 24 May 2016 12:00:38 +0000 (08:00 -0400)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 27 May 2016 05:24:35 +0000 (13:24 +0800)
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
src/i965_drv_video.c

index ca0f462..0a337f4 100644 (file)
@@ -959,6 +959,10 @@ i965_GetConfigAttributes(VADriverContextP ctx,
                 if (profile != VAProfileMPEG2Main &&
                     profile != VAProfileMPEG2Simple)
                     attrib_list[i].value |= VA_RC_CBR;
+
+                if (profile == VAProfileVP9Profile0)
+                    attrib_list[i].value |= VA_RC_VBR;
+
                 break;
             } else if (entrypoint == VAEntrypointEncSliceLP) {
                 struct i965_driver_data * const i965 = i965_driver_data(ctx);