Microsoft today announced the release of DirectX 12 H264 and HEVC video encoding, which is now included as part of the Windows 11 operating system and is also included in the DirectX 12 Agility SDK (version 1.700.10 preview or later). The new feature adds GPU acceleration support for multiple video applications such as video decoding, video processing, and motion estimation. The Direct3D 12 video interface gives apps a new way to implement video decoding and processing.
DirectX 12 H264 and HEVC video encoding
“DirectX 12 today offers APIs to support GPU acceleration for various video applications such as video decoding, video processing, and motion estimation, as detailed in Direct3D 12 Video Overview. We’re excited to announce that D3D12 has added a new video encoding feature to the existing video API families, with a new set of interfaces that allow developers to perform video encoding using GPU accelerated video engines. This feature provides a new way for apps to implement video encoding consistent with DirectX 12 principles and styles. “
In terms of data flow, the API takes every frame of video represented by ID3D12Resource textures and compresses them into an ID3D12Resource buffer that contains the slice headers and payload of each encoded frame. Currently, depending on driver support, only DXGI_FORMAT_NV12 and DXGI_FORMAT_P010 are available, so the input content may need to be color-converted and sampled beforehand by the API user. The codecs available today are H264 and HEVC and the specific support for each codec and its coding tools must be queried with ID3D12VideoDevice :: CheckFeatureSupport, as there are requirements for driver support. “
Source : Microsoft
Filed under: Gadget news
Latest geeky gadget deals
Disclosure: Some of our articles contain affiliate links. Geeky Gadgets can earn an affiliate commission for buying something through one of these links. Learn more.