AMD Enables VCN Region Of Interest "ROI" Video Encoder Support For Linux GPU Drivers

Written by Michael Larabel in Radeon on 17 December 2023 at 09:18 AM EST. 27 Comments
RADEON
While not talked about as much as the AMD open-source OpenGL and Vulkan drivers for Linux, AMD's multimedia stack on Linux continues to be improved upon for supporting new use-cases with AMD-based Linux deployments continuing to come up in the embedded space for all different applications like in-vehicle infotainment systems. The newest AMD video acceleration feature to now be wired up to their open-source Mesa code is enabling region of interest (ROI) encoding functionality.

With code now merged for Mesa 24.0-devel, when running on Video Core Next (VCN) enabled Radeon graphics hardware is now support for ROI encode functionality. This allows specifying areas of the video frame that are higher/lower priority than the rest of the frame. Multiple regions can be expressed to the encoder and in turn the video encoder hardware can determine where to best focus its bit usage for optimal results.

The regions of interest can be important for situations like AR/VR as well as if wanting to map a region of the video frame with persistent text to be higher/lower quality than the rest of the frame. The ROI video encode feature is similar in concept to variable rate shading with OpenGL and Vulkan.

AMD VCN ROI patches for Mesa


AMD contributed this Mesa VA ROI feature and is successfully working with all AMD VCN encoders as well as supported video codecs by the hardware. With the likes of FFmpeg, the regions of interest can be passed using the "addroi" video filter.

This code is in Mesa Git for the Mesa 24.0 feature release coming up in Q1 along with many improvements to the RadeonSI Gallium3D and RADV Vulkan drivers.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week