Skip to content

Commit

Permalink
解像度に qHD (960x540) を追加する
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Oct 19, 2023
1 parent 6cc088a commit 3dd76ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

- [ADD] VideoCodec に H265 を追加する
- @enm10k
- [UPDATE] 解像度に qHD (960x540) を追加する
- @enm10k

## 2023.3.0

Expand Down
5 changes: 5 additions & 0 deletions Sora/CameraVideoCapturer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ public struct CameraSettings: CustomStringConvertible {
/// VGA, 640x480
case vga480p

/// qHD540p, 960x540
case qhd540p

/// HD 720p, 1280x720
case hd720p

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3dd76ae

Please sign in to comment.