Reject YUV444 rendering using D3D11VA until it properly supported

This commit is contained in:
Cameron Gutman 2024-07-26 01:19:26 -05:00
parent e2ffeae3f6
commit 778eb07c5f

View File

@ -289,6 +289,11 @@ bool D3D11VARenderer::initialize(PDECODER_PARAMETERS params)
"D3D11VA renderer is only supported on Windows 10 or later.");
return false;
}
else if (params->videoFormat & VIDEO_FORMAT_MASK_YUV444) {
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
"D3D11VA renderer does not support YUV444 (TODO!)");
return false;
}
if (!SDL_DXGIGetOutputInfo(SDL_GetWindowDisplayIndex(params->window),
&adapterIndex, &outputIndex)) {