summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2021-02-23 19:58:11 +0000
committersr55 <[email protected]>2021-02-23 19:58:40 +0000
commita829a6f6af9539c34c9865239a54a6e51d7a7c41 (patch)
tree7dae6027d83566ffa930bd4766e5c87d082916a0 /win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
parentd4773a2d2cb59814d2fbede899ac2038ec81288c (diff)
WinGui: Add support for Media Foundation 264/265 encoders for QC based ARM64 devices. #2887
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/PresetService.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
index 2d280aad3..11e448c62 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
@@ -16,6 +16,7 @@ namespace HandBrakeWPF.Services.Presets
using System.ComponentModel;
using System.IO;
using System.Linq;
+ using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Xps.Serialization;
@@ -833,11 +834,6 @@ namespace HandBrakeWPF.Services.Presets
private bool IsPresetDisabled(Preset preset)
{
- if (preset.Task.VideoEncoder == VideoEncoder.QuickSyncH265)
- {
- Console.Write("tets");
- }
-
bool isQsvEnabled = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableQuickSyncEncoding);
bool isNvencEnabled = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableNvencEncoder);
bool isVcnEnabled = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.EnableVceEncoder);
@@ -876,7 +872,15 @@ namespace HandBrakeWPF.Services.Presets
{
return true;
}
-
+
+ if (preset.Task.VideoEncoder == VideoEncoder.MFH264 || preset.Task.VideoEncoder == VideoEncoder.MFH265)
+ {
+ if (RuntimeInformation.ProcessArchitecture != Architecture.Arm64)
+ {
+ return true;
+ }
+ }
+
return false;
}