Add environment variables to configure DXVA2 and D3D11VA options

This commit is contained in:
Cameron Gutman committed 2022-02-08 22:27:27 -06:00
1 parent b21131a466
commit be2af1d17a
2 files changed
+10

No files matched your search

@@ -674,6 +674,11 @@ bool DXVA2Renderer::initialize(PDECODER_PARAMETERS params)
if (params->videoFormat == VIDEO_FORMAT_H265_MAIN10) {
return false;
}
else if (qgetenv("DXVA2_ENABLED") == "0") {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"DXVA2 is disabled by environment variable");
return false;
}
m_VideoFormat = params->videoFormat;
m_VideoWidth = params->width;