Add 4K resolution option. Fixes #364

This commit is contained in:
Cameron Gutman
2019-05-27 10:37:26 -07:00
parent ff52adf4f8
commit 797fa0f492
3 changed files with 6 additions and 1 deletions

View File

@@ -134,6 +134,9 @@ static const int bitrateTable[] = {
case 1080:
resolution = 2;
break;
case 2160:
resolution = 3;
break;
}
// Only show the 120 FPS option if we have a > 60-ish Hz display
@@ -228,7 +231,7 @@ static const int bitrateTable[] = {
}
- (NSInteger) getChosenStreamHeight {
const int resolutionTable[] = { 360, 720, 1080 };
const int resolutionTable[] = { 360, 720, 1080, 2160 };
return resolutionTable[[self.resolutionSelector selectedSegmentIndex]];
}

View File

@@ -93,6 +93,7 @@
<segment title="360p"/>
<segment title="720p"/>
<segment title="1080p"/>
<segment title="4K"/>
</segments>
<color key="tintColor" red="0.6716768741607666" green="0.61711704730987549" blue="0.99902987480163574" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</segmentedControl>

View File

@@ -111,6 +111,7 @@
<segment title="360p"/>
<segment title="720p"/>
<segment title="1080p"/>
<segment title="4K"/>
</segments>
<color key="tintColor" red="0.6716768741607666" green="0.61711704730987549" blue="0.99902987480163574" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</segmentedControl>