st/va: enable vbr rate control for vaapi encode
authorBoyuan Zhang <boyuan.zhang@amd.com>
Tue, 6 Sep 2016 20:39:45 +0000 (16:39 -0400)
committerLeo Liu <leo.liu@amd.com>
Mon, 12 Sep 2016 14:34:53 +0000 (10:34 -0400)
commite5009b7c2638e1fe10443ae2efafaa3a4e7f19c7
tree869c0dda7ed29be1505393b70fe5705b17e02d29
parent6a7f79af9b1ac4380e46c1bc438a7a491d1d99da
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 <boyuan.zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/config.c
src/gallium/state_trackers/va/picture.c