From 3dd76ae20cf30b071796bff18e72769bee273f84 Mon Sep 17 00:00:00 2001 From: enm10k Date: Thu, 19 Oct 2023 18:13:01 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=83=8F=E5=BA=A6=E3=81=AB=20qHD=20(9?= =?UTF-8?q?60x540)=20=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGES.md | 2 ++ Sora/CameraVideoCapturer.swift | 5 +++++ 2 files changed, 7 insertions(+) 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