mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 14:03:41 +00:00
Add resolution 8K
This commit is contained in:
parent
9feac08461
commit
d409a4ca48
@ -5,6 +5,8 @@ import Foundation
|
|||||||
// swiftlint:disable:next final_class
|
// swiftlint:disable:next final_class
|
||||||
class Stream: Equatable, Hashable, Identifiable {
|
class Stream: Equatable, Hashable, Identifiable {
|
||||||
enum Resolution: String, CaseIterable, Comparable, Defaults.Serializable {
|
enum Resolution: String, CaseIterable, Comparable, Defaults.Serializable {
|
||||||
|
case hd4320p60
|
||||||
|
case hd4320p
|
||||||
case hd2160p60
|
case hd2160p60
|
||||||
case hd2160p50
|
case hd2160p50
|
||||||
case hd2160p48
|
case hd2160p48
|
||||||
|
@ -96,6 +96,8 @@ extension Defaults.Keys {
|
|||||||
|
|
||||||
enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
|
enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
|
||||||
case best
|
case best
|
||||||
|
case hd4320p60
|
||||||
|
case hd4320p
|
||||||
case hd2160p60
|
case hd2160p60
|
||||||
case hd2160p
|
case hd2160p
|
||||||
case hd1440p60
|
case hd1440p60
|
||||||
@ -112,7 +114,7 @@ enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
|
|||||||
var value: Stream.Resolution {
|
var value: Stream.Resolution {
|
||||||
switch self {
|
switch self {
|
||||||
case .best:
|
case .best:
|
||||||
return .hd2160p60
|
return .hd4320p60
|
||||||
default:
|
default:
|
||||||
return Stream.Resolution(rawValue: rawValue)!
|
return Stream.Resolution(rawValue: rawValue)!
|
||||||
}
|
}
|
||||||
@ -122,6 +124,10 @@ enum ResolutionSetting: String, CaseIterable, Defaults.Serializable {
|
|||||||
switch self {
|
switch self {
|
||||||
case .best:
|
case .best:
|
||||||
return "Best available quality"
|
return "Best available quality"
|
||||||
|
case .hd4320p60:
|
||||||
|
return "8K, 60fps"
|
||||||
|
case .hd4320p:
|
||||||
|
return "8K"
|
||||||
case .hd2160p60:
|
case .hd2160p60:
|
||||||
return "4K, 60fps"
|
return "4K, 60fps"
|
||||||
case .hd2160p:
|
case .hd2160p:
|
||||||
|
Loading…
Reference in New Issue
Block a user