avcodec: add D3D12VA hardware HEVC encoder

This implementation is based on D3D12 Video Encoding Spec:
https://microsoft.github.io/DirectX-Specs/d3d/D3D12VideoEncoding.html

Sample command line for transcoding:
ffmpeg.exe -hwaccel d3d12va -hwaccel_output_format d3d12 -i input.mp4
-c:v hevc_d3d12va output.mp4

Signed-off-by: Tong Wu <tong1.wu@intel.com>
This commit is contained in:
Tong Wu 2023-08-22 13:26:36 +08:00 committed by Lynne
parent d822146f4f
commit ba0c14e6bf
6 changed files with 2910 additions and 1 deletions

1558
libavcodec/d3d12va_encode.c Normal file

File diff suppressed because it is too large Load diff