Skip to content

radeon/vce: Bitrate not updated when changing framerate

Krunal Patel requested to merge krupatel/mesa:staging/20.2 into staging/20.2

Issue: Encoding parameters not updated after changing FrameRate

Root Cause: In rvce_begin_frame, need_rate_control was enabled if the target_bitrate, quant_i_frames, quant_p_frames, quant_b_frames or rate_ctrl_method changes. Due to this the rate_control() 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 need_rate_control. Eventually updating the encoder parameters with new framerate and bitrate.

Signed-off-by: Krunal Patel krunalkumarmukeshkumar.patel@amd.corp-partner.google.com Reviewed-by: Leo Liu leo.liu@amd.com Part-of: !7696 (merged) (cherry picked from commit 35613c75)

Merge request reports