diff options
author | sr55 <[email protected]> | 2019-01-12 19:41:52 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-01-12 19:41:52 +0000 |
commit | 5a4ccc3a37e631ddb9ebe51ebd69c245949e1796 (patch) | |
tree | 545dcd8bc15dda97f9ffc67d69c260ebd0b9561e /win/CS/HandBrakeWPF/Converters | |
parent | 217e9bb5b3158086eb7481ef510cad27a7ddb7c3 (diff) |
WinGui: Strip out some legacy code for x264 options handling.
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/Video/EncoderOptionsTooltipConverter.cs | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Video/EncoderOptionsTooltipConverter.cs b/win/CS/HandBrakeWPF/Converters/Video/EncoderOptionsTooltipConverter.cs index d0486eff9..c66b339cc 100644 --- a/win/CS/HandBrakeWPF/Converters/Video/EncoderOptionsTooltipConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/Video/EncoderOptionsTooltipConverter.cs @@ -16,15 +16,12 @@ namespace HandBrakeWPF.Converters.Video using HandBrake.Interop.Interop.Model.Encoding;
- using EncodeTask = HandBrakeWPF.Services.Encode.Model.EncodeTask;
- using VideoLevel = HandBrakeWPF.Services.Encode.Model.Models.Video.VideoLevel;
- using VideoPreset = HandBrakeWPF.Services.Encode.Model.Models.Video.VideoPreset;
- using VideoProfile = HandBrakeWPF.Services.Encode.Model.Models.Video.VideoProfile;
- using VideoTune = HandBrakeWPF.Services.Encode.Model.Models.Video.VideoTune;
+ using EncodeTask = Services.Encode.Model.EncodeTask;
+ using VideoLevel = Services.Encode.Model.Models.Video.VideoLevel;
+ using VideoPreset = Services.Encode.Model.Models.Video.VideoPreset;
+ using VideoProfile = Services.Encode.Model.Models.Video.VideoProfile;
+ using VideoTune = Services.Encode.Model.Models.Video.VideoTune;
- /// <summary>
- /// The x 264 queue tooltip converter.
- /// </summary>
public class EncoderOptionsTooltipConverter : IValueConverter
{
/// <summary>
@@ -50,11 +47,6 @@ namespace HandBrakeWPF.Converters.Video EncodeTask task = value as EncodeTask;
if (task != null && (task.VideoEncoder == VideoEncoder.X264 || task.VideoEncoder == VideoEncoder.X264_10 || task.VideoEncoder == VideoEncoder.X265 || task.VideoEncoder == VideoEncoder.X265_10 || task.VideoEncoder == VideoEncoder.X265_12))
{
- if (task.ShowAdvancedTab)
- {
- return task.AdvancedEncoderOptions;
- }
-
VideoTune tune = task.VideoTunes.FirstOrDefault();
return string.Format("Preset: {0}{5}Tune: {1}{5}Profile: {2}{5}Level: {3}{5}Extra Arguments: {4}{5}",
@@ -66,7 +58,7 @@ namespace HandBrakeWPF.Converters.Video Environment.NewLine);
}
- return task != null ? task.AdvancedEncoderOptions : string.Empty;
+ return string.Empty;
}
/// <summary>
|