mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-02 07:46:07 +00:00
Allow software decoding if YUV444 is selected rather than falling back to YUV420
This commit is contained in:
parent
9df65cb814
commit
e01c42153c
@ -1004,8 +1004,14 @@ bool Session::validateLaunch(SDL_Window* testWindow)
|
|||||||
m_StreamConfig.width,
|
m_StreamConfig.width,
|
||||||
m_StreamConfig.height,
|
m_StreamConfig.height,
|
||||||
m_StreamConfig.fps)) {
|
m_StreamConfig.fps)) {
|
||||||
|
if (m_Preferences->videoDecoderSelection == StreamingPreferences::VDS_FORCE_HARDWARE) {
|
||||||
m_SupportedVideoFormats.removeFirst();
|
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() &&
|
if (!m_SupportedVideoFormats.isEmpty() &&
|
||||||
!(m_SupportedVideoFormats.front() & VIDEO_FORMAT_MASK_YUV444)) {
|
!(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."));
|
emitLaunchWarning(tr("This PC's GPU doesn't support YUV 4:4:4 decoding for selected video codec."));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user