summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-02-26 21:10:04 +0000
committersr55 <[email protected]>2020-02-26 21:10:16 +0000
commit56aba26a4da0fda058196fcb866e13d35dda538e (patch)
tree2372ce345a3ae2a6b230e9971bb422a768c28d43 /win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
parent22cfd6a1ec05a261284554b72109567392b91c9b (diff)
WinGui: Add an explicit option in preferences to enable additional fixed function hardware on newer Intel CPU's.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs21
1 files changed, 19 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
index 3ceac7714..6796141fd 100644
--- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
@@ -111,12 +111,12 @@ namespace HandBrakeWPF.ViewModels
private bool alwaysUseDefaultPath;
private bool pauseOnLowBattery;
private int lowBatteryLevel;
-
+
// Experimental
private int remoteServicePort;
private bool remoteServiceEnabled;
-
+ private bool enableQuickSyncLowPower;
#endregion
@@ -1169,6 +1169,21 @@ namespace HandBrakeWPF.ViewModels
}
}
+ public bool EnableQuickSyncLowPower
+ {
+ get => this.enableQuickSyncLowPower;
+ set
+ {
+ if (value == this.enableQuickSyncLowPower)
+ {
+ return;
+ }
+
+ this.enableQuickSyncLowPower = value;
+ this.NotifyOfPropertyChange(() => this.EnableQuickSyncLowPower);
+ }
+ }
+
public VideoScaler SelectedScalingMode { get; set; }
public bool IsQuickSyncAvailable
@@ -1581,6 +1596,7 @@ namespace HandBrakeWPF.ViewModels
this.EnableQuickSyncDecoding = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableQuickSyncDecoding);
this.SelectedScalingMode = this.userSettingService.GetUserSetting<VideoScaler>(UserSettingConstants.ScalingMode);
this.UseQSVDecodeForNonQSVEnc = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.UseQSVDecodeForNonQSVEnc);
+ this.EnableQuickSyncLowPower = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableQuickSyncLowPower);
this.EnableQuickSyncEncoding = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableQuickSyncEncoding);
this.EnableVceEncoder = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableVceEncoder);
@@ -1735,6 +1751,7 @@ namespace HandBrakeWPF.ViewModels
this.userSettingService.SetUserSetting(UserSettingConstants.EnableQuickSyncEncoding, this.EnableQuickSyncEncoding);
this.userSettingService.SetUserSetting(UserSettingConstants.EnableVceEncoder, this.EnableVceEncoder);
this.userSettingService.SetUserSetting(UserSettingConstants.EnableNvencEncoder, this.EnableNvencEncoder);
+ this.userSettingService.SetUserSetting(UserSettingConstants.EnableQuickSyncLowPower, this.EnableQuickSyncLowPower);
/* System and Logging */
this.userSettingService.SetUserSetting(UserSettingConstants.ProcessPriorityInt, this.SelectedPriority);