WIP: D3D11VA support

Overlays work, but drawing the actual video is unimplemented
This commit is contained in:
Cameron Gutman committed 2022-02-03 19:45:07 -06:00
1 parent 76bd4a1c7b
commit 67612f607e
11 files changed
+1140 -2

No files matched your search

@@ -669,6 +669,12 @@ bool DXVA2Renderer::initializeDevice(SDL_Window* window, bool enableVsync)
bool DXVA2Renderer::initialize(PDECODER_PARAMETERS params)
{
// Don't use DXVA2 for HDR10. While it can render 10-bit color, it doesn't support
// the HDR colorspace and HDR display metadata required to enable HDR mode properly.
if (params->videoFormat == VIDEO_FORMAT_H265_MAIN10) {
return false;
}
m_VideoFormat = params->videoFormat;
m_VideoWidth = params->width;
m_VideoHeight = params->height;