mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-03 08:15:31 +00:00
Add handling for above 4K resolutions
This commit is contained in:
parent
311bf33e84
commit
ecd3427767
@ -448,6 +448,11 @@ void ClConnectionStatusUpdate(int status)
|
|||||||
config.allowHevc = YES;
|
config.allowHevc = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Streaming at resolutions above 4K requires HEVC
|
||||||
|
if (config.width > 4096 || config.height > 4096) {
|
||||||
|
config.allowHevc = YES;
|
||||||
|
}
|
||||||
|
|
||||||
// On iOS 11, we can use HEVC if the server supports encoding it
|
// On iOS 11, we can use HEVC if the server supports encoding it
|
||||||
// and this device has hardware decode for it (A9 and later).
|
// and this device has hardware decode for it (A9 and later).
|
||||||
// Additionally, iPhone X had a bug which would cause video
|
// Additionally, iPhone X had a bug which would cause video
|
||||||
|
@ -65,6 +65,16 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_config.width > 4096 || _config.height > 4096) {
|
||||||
|
// Pascal added support for 8K HEVC encoding support. Maxwell 2 could encode HEVC but only up to 4K.
|
||||||
|
// We can't directly identify Pascal, but we can look for HEVC Main10 which was added in the same generation.
|
||||||
|
NSString* codecSupport = [serverInfoResp getStringTag:@"ServerCodecModeSupport"];
|
||||||
|
if (codecSupport == nil || !([codecSupport intValue] & 0x200)) {
|
||||||
|
[_callbacks launchFailed:@"Your host PC's GPU doesn't support streaming video resolutions over 4K."];
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// resumeApp and launchApp handle calling launchFailed
|
// resumeApp and launchApp handle calling launchFailed
|
||||||
if ([serverState hasSuffix:@"_SERVER_BUSY"]) {
|
if ([serverState hasSuffix:@"_SERVER_BUSY"]) {
|
||||||
// App already running, resume it
|
// App already running, resume it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user