rename varialbles
This commit is contained in:
1 parent
aad8673ff0
commit
053893005b
3 files changed
+10
-7
No files matched your search
@@ -116,7 +116,7 @@ typedef NS_ENUM(NSInteger, WidgetSizeTransition) {
|
|||||||
preferredCodec:(uint32_t)preferredCodec
|
preferredCodec:(uint32_t)preferredCodec
|
||||||
enableYUV444:(BOOL)enableYUV444
|
enableYUV444:(BOOL)enableYUV444
|
||||||
enablePIP:(BOOL)enablePIP
|
enablePIP:(BOOL)enablePIP
|
||||||
fullRange:(BOOL)fullRange
|
fullColorRange:(BOOL)fullColorRange
|
||||||
enableHdr:(BOOL)enableHdr
|
enableHdr:(BOOL)enableHdr
|
||||||
btMouseSupport:(BOOL)btMouseSupport
|
btMouseSupport:(BOOL)btMouseSupport
|
||||||
// absoluteTouchMode:(BOOL)absoluteTouchMode
|
// absoluteTouchMode:(BOOL)absoluteTouchMode
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
preferredCodec:(uint32_t)preferredCodec
|
preferredCodec:(uint32_t)preferredCodec
|
||||||
enableYUV444:(BOOL)enableYUV444
|
enableYUV444:(BOOL)enableYUV444
|
||||||
enablePIP:(BOOL)enablePIP
|
enablePIP:(BOOL)enablePIP
|
||||||
fullRange:(BOOL)fullRange
|
fullColorRange:(BOOL)fullColorRange
|
||||||
enableHdr:(BOOL)enableHdr
|
enableHdr:(BOOL)enableHdr
|
||||||
btMouseSupport:(BOOL)btMouseSupport
|
btMouseSupport:(BOOL)btMouseSupport
|
||||||
// absoluteTouchMode:(BOOL)absoluteTouchMode
|
// absoluteTouchMode:(BOOL)absoluteTouchMode
|
||||||
@@ -162,7 +162,7 @@
|
|||||||
settingsToSave.preferredCodec = preferredCodec;
|
settingsToSave.preferredCodec = preferredCodec;
|
||||||
settingsToSave.enableYUV444 = enableYUV444;
|
settingsToSave.enableYUV444 = enableYUV444;
|
||||||
settingsToSave.enablePIP = enablePIP;
|
settingsToSave.enablePIP = enablePIP;
|
||||||
settingsToSave.fullColorRange = fullRange;
|
settingsToSave.fullColorRange = fullColorRange;
|
||||||
settingsToSave.enableHdr = enableHdr;
|
settingsToSave.enableHdr = enableHdr;
|
||||||
settingsToSave.btMouseSupport = btMouseSupport;
|
settingsToSave.btMouseSupport = btMouseSupport;
|
||||||
// settingsToSave.absoluteTouchMode = absoluteTouchMode;
|
// settingsToSave.absoluteTouchMode = absoluteTouchMode;
|
||||||
|
|||||||
@@ -755,7 +755,7 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
[self addSetting:self.codecStack ofId:@"codecStack" withInfoTag:NO withDynamicLabel:NO to:videoSection];
|
[self addSetting:self.codecStack ofId:@"codecStack" withInfoTag:NO withDynamicLabel:NO to:videoSection];
|
||||||
[self addSetting:self.hdrStack ofId:@"hdrStack" withInfoTag:![self hdrSupported] withDynamicLabel:NO to:videoSection];
|
[self addSetting:self.hdrStack ofId:@"hdrStack" withInfoTag:![self hdrSupported] withDynamicLabel:NO to:videoSection];
|
||||||
[self addSetting:self.yuv444Stack ofId:@"yuv444Stack" withInfoTag:YES withDynamicLabel:NO to:videoSection];
|
[self addSetting:self.yuv444Stack ofId:@"yuv444Stack" withInfoTag:YES withDynamicLabel:NO to:videoSection];
|
||||||
[self addSetting:self.fullColorRangeStack ofId:@"fullRangeStack" withInfoTag:NO withDynamicLabel:NO to:videoSection];
|
[self addSetting:self.fullColorRangeStack ofId:@"fullColorRangeStack" withInfoTag:NO withDynamicLabel:NO to:videoSection];
|
||||||
[self addSetting:self.pipStack ofId:@"pipStack" withInfoTag:YES withDynamicLabel:NO to:videoSection];
|
[self addSetting:self.pipStack ofId:@"pipStack" withInfoTag:YES withDynamicLabel:NO to:videoSection];
|
||||||
[self addSetting:self.framePacingStack ofId:@"framePacingStack" withInfoTag:YES withDynamicLabel:NO to:videoSection];
|
[self addSetting:self.framePacingStack ofId:@"framePacingStack" withInfoTag:YES withDynamicLabel:NO to:videoSection];
|
||||||
[self addSetting:self.frameQueueSizeStack ofId:@"frameQueueSizeStack" withInfoTag:NO withDynamicLabel:YES to:videoSection];
|
[self addSetting:self.frameQueueSizeStack ofId:@"frameQueueSizeStack" withInfoTag:NO withDynamicLabel:YES to:videoSection];
|
||||||
@@ -3316,7 +3316,7 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
uint32_t preferredCodec = [self getChosenCodecPreference];
|
uint32_t preferredCodec = [self getChosenCodecPreference];
|
||||||
BOOL enableYUV444 = self.yuv444Switch.isOn;
|
BOOL enableYUV444 = self.yuv444Switch.isOn;
|
||||||
BOOL enablePIP = self.pipSwitch.isOn;
|
BOOL enablePIP = self.pipSwitch.isOn;
|
||||||
BOOL fullRange = self.fullColorRangeSwitch.isOn;
|
BOOL fullColorRange = self.fullColorRangeSwitch.isOn;
|
||||||
BOOL btMouseSupport = self.citrixX1MouseSwitch.isOn;
|
BOOL btMouseSupport = self.citrixX1MouseSwitch.isOn;
|
||||||
NSInteger touchMode = [self isNotNativeTouchOnly] ? self.touchModeSelector1.selectedSegmentIndex : NativeTouchOnly;
|
NSInteger touchMode = [self isNotNativeTouchOnly] ? self.touchModeSelector1.selectedSegmentIndex : NativeTouchOnly;
|
||||||
NSInteger statsOverlayLevel = [self.statsOverlaySelector selectedSegmentIndex];
|
NSInteger statsOverlayLevel = [self.statsOverlaySelector selectedSegmentIndex];
|
||||||
@@ -3388,7 +3388,7 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
preferredCodec:preferredCodec
|
preferredCodec:preferredCodec
|
||||||
enableYUV444:enableYUV444
|
enableYUV444:enableYUV444
|
||||||
enablePIP:enablePIP
|
enablePIP:enablePIP
|
||||||
fullRange:fullRange
|
fullColorRange:fullColorRange
|
||||||
enableHdr:enableHdr
|
enableHdr:enableHdr
|
||||||
btMouseSupport:btMouseSupport
|
btMouseSupport:btMouseSupport
|
||||||
touchMode:touchMode
|
touchMode:touchMode
|
||||||
@@ -3446,7 +3446,8 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
uint32_t codec = [self getChosenCodecPreference];
|
uint32_t codec = [self getChosenCodecPreference];
|
||||||
BOOL isAV1 = (codec == CODEC_PREF_AV1);
|
BOOL isAV1 = (codec == CODEC_PREF_AV1);
|
||||||
BOOL isH264 = (codec == CODEC_PREF_H264);
|
BOOL isH264 = (codec == CODEC_PREF_H264);
|
||||||
|
BOOL isHEVC = (codec == CODEC_PREF_HEVC);
|
||||||
|
|
||||||
if (isAV1) {
|
if (isAV1) {
|
||||||
// AV1 must use limited range, so disable fullRange and turn it off
|
// AV1 must use limited range, so disable fullRange and turn it off
|
||||||
[self.fullColorRangeSwitch setOn:NO animated:NO];
|
[self.fullColorRangeSwitch setOn:NO animated:NO];
|
||||||
@@ -3459,6 +3460,8 @@ BOOL isCustomResolution(int resolutionSelected) {
|
|||||||
[self.fullColorRangeSwitch setEnabled:YES];
|
[self.fullColorRangeSwitch setEnabled:YES];
|
||||||
[self.yuv444Switch setEnabled:YES];
|
[self.yuv444Switch setEnabled:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isHEVC || isH264) [self.fullColorRangeSwitch setOn:YES animated:NO];
|
||||||
|
|
||||||
// H264 doesn't support HDR, so disable it and turn it off
|
// H264 doesn't support HDR, so disable it and turn it off
|
||||||
if (isH264) {
|
if (isH264) {
|
||||||
|
|||||||
Reference in new issue
Block a user