frontends/va: add max_frame_size into rate control
authorRuijing Dong <ruijing.dong@amd.com>
Sat, 10 Sep 2022 20:42:40 +0000 (16:42 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 14 Sep 2022 00:16:20 +0000 (00:16 +0000)
commit3c8937d3633d7327b5d6a0e1d65ea78b1557bc76
tree0ecda461e77b86189b4e4373f2c45b529a9bc735
parent6646ae257663685646a19b98bb815678a3de8603
frontends/va: add max_frame_size into rate control

why:
max au size and per picture rate control data structure
need to follow the input

how:
have max_frame_size as the input to rate control
also re-calculate other rate control related params

Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18534>
src/gallium/drivers/radeonsi/radeon_vcn_enc.c
src/gallium/drivers/radeonsi/si_get.c
src/gallium/frontends/va/config.c
src/gallium/frontends/va/picture.c
src/gallium/frontends/va/picture_h264_enc.c
src/gallium/frontends/va/picture_hevc_enc.c
src/gallium/frontends/va/va_private.h
src/gallium/include/pipe/p_video_enums.h
src/gallium/include/pipe/p_video_state.h