[Libva] [LIBVA-INTEL-DRIVER][PATCH 12/12] Export the VBR bit rate-control for VP9 encoding on KBL

Zhao Yakui yakui.zhao at intel.com
Tue May 24 12:00:38 UTC 2016


Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley at intel.com>
---
 src/i965_drv_video.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 77fe9c7..17941cb 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -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);
-- 
1.8.2.1



More information about the Libva mailing list