diff --git a/CHANGES.md b/CHANGES.md index 3f65f178..13d421a7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,8 @@ - [ADD] VideoCodec に H265 を追加する - @enm10k +- [UPDATE] 解像度に qHD (960x540) を追加する + - @enm10k ## 2023.3.0 diff --git a/Sora/CameraVideoCapturer.swift b/Sora/CameraVideoCapturer.swift index 9a124a34..4b281db6 100644 --- a/Sora/CameraVideoCapturer.swift +++ b/Sora/CameraVideoCapturer.swift @@ -327,6 +327,9 @@ public struct CameraSettings: CustomStringConvertible { /// VGA, 640x480 case vga480p + /// qHD540p, 960x540 + case qhd540p + /// HD 720p, 1280x720 case hd720p @@ -344,6 +347,7 @@ public struct CameraSettings: CustomStringConvertible { switch self { case .qvga240p: return 320 case .vga480p: return 640 + case .qhd540p: return 960 case .hd720p: return 1280 case .hd1080p: return 1920 case .uhd2160p: return 3840 @@ -356,6 +360,7 @@ public struct CameraSettings: CustomStringConvertible { switch self { case .qvga240p: return 240 case .vga480p: return 480 + case .qhd540p: return 540 case .hd720p: return 720 case .hd1080p: return 1080 case .uhd2160p: return 2160