Allow software decoding if YUV444 is selected rather than falling back to YUV420

This commit is contained in:
Cameron Gutman 2024-08-19 20:58:16 -05:00
parent 9df65cb814
commit e01c42153c

View File

@ -1004,8 +1004,14 @@ bool Session::validateLaunch(SDL_Window* testWindow)
m_StreamConfig.width,
m_StreamConfig.height,
m_StreamConfig.fps)) {
if (m_Preferences->videoDecoderSelection == StreamingPreferences::VDS_FORCE_HARDWARE) {
m_SupportedVideoFormats.removeFirst();
}
else {
emitLaunchWarning(tr("Using software decoding due to your selection to force YUV 4:4:4 without GPU support. This may cause poor streaming performance."));
break;
}
}
if (!m_SupportedVideoFormats.isEmpty() &&
!(m_SupportedVideoFormats.front() & VIDEO_FORMAT_MASK_YUV444)) {
emitLaunchWarning(tr("This PC's GPU doesn't support YUV 4:4:4 decoding for selected video codec."));