Skip to content

radeon/vcn: Bitrate not updated when changing framerate

Krunal Patel requested to merge krupatel/mesa:master into master

Issue: Encoding parameters not updated after changing FrameRate

Root Cause: In radeon_enc_begin_frame, there is a parameter need_rate_control which was enabled only if the bitrate is changed. Due to this the radeon_enc_rc_layer_init was not updating the encoder parameters with new framerate, peak_bits_per_picture_integer and avg_target_bits_per_picture

Fix: Added the condition where we will check if there is a change in other parameters and enable rate control. Eventually updating the encoder parameters with new framerate and bitrate.

Signed-off-by: Krunal Patel krunalkumarmukeshkumar.patel@amd.corp-partner.google.com

Edited by Krunal Patel

Merge request reports