radeonsi/vce: VCE/UVD encoding changes
This is mostly adaptation of changes that were already done for VCN to VCE/UVD encoders.
-
Fix leaks
- fence leaks
- session info buffer leak in HEVC encoder
-
Don't force buffer size for H264 constant bitrate encoding
- no longer needed as the buffer size is now configurable
-
Tweak motion estimation parameters for H264 encoding
- improves video quality
-
Add VUI parameters in output bitstream for H264 + HEVC encoding
- needed to set params like full-range flag, color properties, chroma loc to ensure the video plays correctly
Tested on RX 570.