diff options
author | Boyuan Zhang <[email protected]> | 2016-09-06 16:39:45 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2016-09-12 10:34:53 -0400 |
commit | e5009b7c2638e1fe10443ae2efafaa3a4e7f19c7 (patch) | |
tree | 869c0dda7ed29be1505393b70fe5705b17e02d29 /src/gallium/state_trackers/va/config.c | |
parent | 6a7f79af9b1ac4380e46c1bc438a7a491d1d99da (diff) |
st/va: enable vbr rate control for vaapi encode
This patch enables variable bit-rate for vaapi encoding. According to va.h,
target bit-rate equals to maximum bit-rate multiplies by target_percentage.
Signed-off-by: Boyuan Zhang <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va/config.c')
-rw-r--r-- | src/gallium/state_trackers/va/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/config.c b/src/gallium/state_trackers/va/config.c index 84bf9135288..405231685d3 100644 --- a/src/gallium/state_trackers/va/config.c +++ b/src/gallium/state_trackers/va/config.c @@ -120,7 +120,7 @@ vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint en value = VA_RT_FORMAT_YUV420; break; case VAConfigAttribRateControl: - value = VA_RC_CQP | VA_RC_CBR; + value = VA_RC_CQP | VA_RC_CBR | VA_RC_VBR; break; default: value = VA_ATTRIB_NOT_SUPPORTED; |