From 56aba26a4da0fda058196fcb866e13d35dda538e Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 26 Feb 2020 21:10:04 +0000 Subject: WinGui: Add an explicit option in preferences to enable additional fixed function hardware on newer Intel CPU's. --- win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs') 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(UserSettingConstants.EnableQuickSyncDecoding); this.SelectedScalingMode = this.userSettingService.GetUserSetting(UserSettingConstants.ScalingMode); this.UseQSVDecodeForNonQSVEnc = this.userSettingService.GetUserSetting(UserSettingConstants.UseQSVDecodeForNonQSVEnc); + this.EnableQuickSyncLowPower = this.userSettingService.GetUserSetting(UserSettingConstants.EnableQuickSyncLowPower); this.EnableQuickSyncEncoding = this.userSettingService.GetUserSetting(UserSettingConstants.EnableQuickSyncEncoding); this.EnableVceEncoder = this.userSettingService.GetUserSetting(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); -- cgit v1.2.3