diff options
author | sr55 <[email protected]> | 2013-09-21 22:12:56 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-09-21 22:12:56 +0000 |
commit | a27b2c176c84d290339f3bb0dc5b9f9961817b30 (patch) | |
tree | a1b38d3c0bb432ec6fcb998d51dc32b397fe88ed /win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs | |
parent | ab17c5c37fcc9a9f8a1617505b3131b9196f1549 (diff) |
WinGui: Added a new tab in Options to host "Video" related settings including hardware acceleration. Only showing the QuickSync options. DXVA/OpenCl options are hidden for now.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5794 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs index d65b7f9f1..1d3a4e208 100644 --- a/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/EnumComboConverter.cs @@ -19,6 +19,8 @@ namespace HandBrakeWPF.Converters using HandBrake.Interop.Model.Encoding;
using HandBrake.Interop.Model.Encoding.x264;
+ using HandBrakeWPF.Model;
+
/// <summary>
/// Enum Combo Converter
/// </summary>
@@ -91,6 +93,11 @@ namespace HandBrakeWPF.Converters return EnumHelper<Denoise>.GetEnumDisplayValues(typeof(Denoise));
}
+ if (value is IEnumerable<VideoScaler>)
+ {
+ return EnumHelper<VideoScaler>.GetEnumDisplayValues(typeof(VideoScaler));
+ }
+
// Single Items
@@ -140,6 +147,11 @@ namespace HandBrakeWPF.Converters return EnumHelper<QueueItemStatus>.GetDisplay((QueueItemStatus)value);
}
+ if (targetType == typeof(VideoScaler) || value.GetType() == typeof(VideoScaler))
+ {
+ return EnumHelper<VideoScaler>.GetDisplay((VideoScaler)value);
+ }
+
return null;
}
@@ -190,7 +202,6 @@ namespace HandBrakeWPF.Converters {
return EnumHelper<QsvPreset>.GetValue(value.ToString());
}
-
if (targetType == typeof(PresetPictureSettingsMode) || value.GetType() == typeof(PresetPictureSettingsMode))
{
return EnumHelper<PresetPictureSettingsMode>.GetValue(value.ToString());
@@ -211,6 +222,10 @@ namespace HandBrakeWPF.Converters {
return EnumHelper<Detelecine>.GetValue(value.ToString());
}
+ if (targetType == typeof(VideoScaler) || value.GetType() == typeof(VideoScaler))
+ {
+ return EnumHelper<VideoScaler>.GetValue(value.ToString());
+ }
return null;
}
|