Microsoft has 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 can also be found in the DirectX 12 Agility SDK (version 1.700.10-preview or newer). The new feature adds GPU acceleration support for several video applications such as Video Decoding, Video Processing and Motion estimation. The Direct3D 12 video interface provides a new way for apps to implement video decoding and process.
DirectX 12 H264 and HEVC video encoding
“Today DirectX 12 provides APIs to support GPU acceleration for several video applications such as Video Decoding, Video Processing and Motion estimation as detailed in Direct3D 12 Video Overview. We are happy to announce that D3D12 has added a new Video Encode 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 consistently with the DirectX 12 principles and style. “
“In terms of data flow, the API takes each video frame represented by ID3D12Resource textures and compresses them into an ID3D12Resource buffer, that contains the slice headers and payload of each encoded frame. Currently only DXGI_FORMAT_NV12 and DXGI_FORMAT_P010 are available depending on driver support, so input content may need to be color converted and down sampled previously by the API user. The available codecs today are H264 and HEVC and specific support for each codec and their encoding tools must be queried using ID3D12VideoDevice::CheckFeatureSupport as there are driver support requirements.”
Source : Microsoft
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.