mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
WIP: D3D11VA support
Overlays work, but drawing the actual video is unimplemented
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user