diff options
author | sr55 <[email protected]> | 2016-12-27 12:09:13 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2016-12-27 12:09:21 +0000 |
commit | 259af16bc4749ad024f4b2e79c6f65f3e2832792 (patch) | |
tree | 9f9067eecd88fdafdf5a8813ca4a89d1b6ee9703 /win/CS/HandBrakeWPF/Services/Presets | |
parent | 2cc18941fa64a74d0f86f00215f112d940266585 (diff) |
WinGui: A number of small fixes and Improvements.
- Fix Update Preset Option. Add CC and Foreign Audio Scan were not setting correctly when updating a preset. Fixes #442
- Fix an issue where "Normal" Preset was showing as default as well as "Fast".
- Fix issues in the preset loading of the Deinterlace/Decomb Presets. Fixes #443
- Make the Video Extra Options Box Fix to area to make it easier to read long option strings.
- Change the logic for enabling the Use Advanced Options box to not look at the option string. Fixes #441
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs | 16 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | 5 |
2 files changed, 11 insertions, 10 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs index 909ada66f..f3b1bd56f 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs @@ -107,7 +107,7 @@ namespace HandBrakeWPF.Services.Presets.Factories preset.Task.Deinterlace = Deinterlace.Default;
preset.Task.DeinterlaceFilter = DeinterlaceFilter.Decomb;
break;
- case "deinterlace":
+ case "yadif":
preset.Task.Decomb = Decomb.Default;
preset.Task.Deinterlace = Deinterlace.Default;
preset.Task.DeinterlaceFilter = DeinterlaceFilter.Yadif;
@@ -121,7 +121,7 @@ namespace HandBrakeWPF.Services.Presets.Factories if (preset.Task.DeinterlaceFilter == DeinterlaceFilter.Decomb)
{
- switch (importedPreset.PictureDeinterlaceFilter)
+ switch (importedPreset.PictureDeinterlacePreset)
{
case "custom":
preset.Task.Decomb = Decomb.Custom;
@@ -151,7 +151,7 @@ namespace HandBrakeWPF.Services.Presets.Factories if (preset.Task.DeinterlaceFilter == DeinterlaceFilter.Yadif)
{
- switch (importedPreset.PictureDeinterlaceFilter)
+ switch (importedPreset.PictureDeinterlacePreset)
{
case "custom":
preset.Task.Deinterlace = Deinterlace.Custom;
@@ -595,12 +595,19 @@ namespace HandBrakeWPF.Services.Presets.Factories preset.PictureDeinterlaceFilter = export.Task.DeinterlaceFilter == DeinterlaceFilter.Decomb
? "decomb"
: export.Task.DeinterlaceFilter == DeinterlaceFilter.Yadif ? "yadif" : "off";
+
+
preset.PictureDeinterlacePreset = export.Task.DeinterlaceFilter == DeinterlaceFilter.Decomb
? EnumHelper<Decomb>.GetShortName(export.Task.Decomb)
: export.Task.DeinterlaceFilter == DeinterlaceFilter.Yadif ? EnumHelper<Deinterlace>.GetShortName(export.Task.Deinterlace) : string.Empty;
+
preset.PictureDeinterlaceCustom = export.Task.DeinterlaceFilter == DeinterlaceFilter.Decomb
? export.Task.CustomDecomb
: export.Task.DeinterlaceFilter == DeinterlaceFilter.Yadif ? export.Task.CustomDeinterlace : string.Empty;
+
+ preset.PictureCombDetectPreset = EnumHelper<CombDetect>.GetShortName(export.Task.CombDetect);
+ preset.PictureCombDetectCustom = export.Task.CustomCombDetect;
+
preset.PictureDeinterlaceCustom = export.Task.CustomDeinterlace;
preset.PictureDenoiseCustom = export.Task.CustomDenoise;
preset.PictureDenoiseFilter = EnumHelper<Denoise>.GetShortName(export.Task.Denoise);
@@ -608,8 +615,7 @@ namespace HandBrakeWPF.Services.Presets.Factories preset.PictureDenoiseTune = EnumHelper<DenoiseTune>.GetShortName(export.Task.DenoiseTune);
preset.PictureDetelecine = EnumHelper<Detelecine>.GetShortName(export.Task.Detelecine);
preset.PictureDetelecineCustom = export.Task.CustomDetelecine;
- preset.PictureCombDetectPreset = EnumHelper<CombDetect>.GetShortName(export.Task.CombDetect);
- preset.PictureCombDetectCustom = export.Task.CustomCombDetect;
+
// Video
preset.VideoEncoder = EnumHelper<VideoEncoder>.GetShortName(export.Task.VideoEncoder);
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs index 8af0b3d03..6869b89a2 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs @@ -384,11 +384,6 @@ namespace HandBrakeWPF.Services.Presets preset.Task.AllowedPassthruOptions = new AllowedPassthru(true); // We don't want to override the built-in preset
- if (preset.Name == "Normal")
- {
- preset.IsDefault = true;
- }
-
this.presets.Add(preset);
}
}
|