diff options
author | sr55 <[email protected]> | 2016-12-13 19:35:02 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-12-13 19:35:10 +0000 |
commit | 35130882b828ff6af96fafa2a24a8b9afc898f0d (patch) | |
tree | 2a96438e8fe0c3ba915b447847829bef1f862ac7 /win/CS/HandBrakeWPF/Services/Encode | |
parent | 1f418c2cf9e74f907311b0f5e77d84342e570e35 (diff) |
WinGui: Advanced Tab Changes
1. Strip out a lot of the old advanced tab infrastructure as it is no longer needed. Only the deprecated X264 Advacned Panel is left. All other encoders use the Video tab now.
2. Changed Option to "Allow use of 'Advanced Tab'" and only show the tab if the checkbox on the video tab is checked. It will no longer show based on the perference alone.
3. Fix the one-way communication from Video Tab to X264 Tab so preset options are reflected ont he X264 Tab. The reverse is not supported but it will retain the previous options.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Encode')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs index 9eba5c684..9e1a82966 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs @@ -282,6 +282,14 @@ namespace HandBrakeWPF.Services.Encode.Factories video.Options = job.ExtraAdvancedArguments; video.Preset = job.VideoPreset != null ? job.VideoPreset.ShortName : null; video.Profile = job.VideoProfile != null ? job.VideoProfile.ShortName : null; + + if (job.VideoTunes != null && job.VideoTunes.Count > 0) + { + foreach (var item in job.VideoTunes) + { + video.Tune += string.IsNullOrEmpty(video.Tune) ? item.ShortName : "," + item.ShortName; + } + } } if (job.VideoEncodeRateType == VideoEncodeRateType.ConstantQuality) video.Quality = job.Quality; @@ -292,14 +300,6 @@ namespace HandBrakeWPF.Services.Encode.Factories video.Turbo = job.TurboFirstPass; } - if (job.VideoTunes != null && job.VideoTunes.Count > 0) - { - foreach (var item in job.VideoTunes) - { - video.Tune += string.IsNullOrEmpty(video.Tune) ? item.ShortName : "," + item.ShortName; - } - } - video.OpenCL = configuration.ScalingMode == VideoScaler.BicubicCl; video.QSV.Decode = !configuration.DisableQuickSyncDecoding; |