diff options
author | sr55 <[email protected]> | 2016-03-05 22:17:58 +0000 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-03-09 13:10:10 -0700 |
commit | 1079f3d744676847075845ff945900f195a87d08 (patch) | |
tree | cf7e399adde86cb30f4c88d063c1c9c868b7d324 /win/CS/HandBrakeWPF/ViewModels | |
parent | 0205f13f2d3226343b3d27eb06170679fd292593 (diff) |
WinGui: Update deinterlace method to Yadif and update presets. Will look into using the new preset/tune methods at a later point.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs index 79718e2f2..4dd88f6be 100644 --- a/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs @@ -15,6 +15,8 @@ namespace HandBrakeWPF.ViewModels using Caliburn.Micro;
+ using HandBrake.ApplicationServices.Interop;
+ using HandBrake.ApplicationServices.Interop.HbLib;
using HandBrake.ApplicationServices.Interop.Model.Encoding;
using HandBrakeWPF.Services.Interfaces;
@@ -334,12 +336,12 @@ namespace HandBrakeWPF.ViewModels /// <summary>
/// Gets or sets a value indicating whether ShowDeinterlaceDecombCustom.
/// </summary>
- public bool ShowDeinterlaceDecombCustom => (this.SelectedDeinterlaceFilter == DeinterlaceFilter.Decomb && this.SelectedDecomb == Decomb.Custom) || (this.SelectedDeinterlaceFilter == DeinterlaceFilter.Deinterlace && this.SelectedDeInterlace == Deinterlace.Custom);
+ public bool ShowDeinterlaceDecombCustom => (this.SelectedDeinterlaceFilter == DeinterlaceFilter.Decomb && this.SelectedDecomb == Decomb.Custom) || (this.SelectedDeinterlaceFilter == DeinterlaceFilter.Yadif && this.SelectedDeInterlace == Deinterlace.Custom);
/// <summary>
/// Gets or sets a value indicating whether ShowDelelecineCustom.
/// </summary>
- public bool ShowDeinterlaceCustom => this.SelectedDeinterlaceFilter == DeinterlaceFilter.Deinterlace && this.SelectedDeInterlace == Deinterlace.Custom;
+ public bool ShowDeinterlaceCustom => this.SelectedDeinterlaceFilter == DeinterlaceFilter.Yadif && this.SelectedDeInterlace == Deinterlace.Custom;
/// <summary>
/// Gets or sets a value indicating whether ShowDenoiseCustom.
@@ -370,7 +372,7 @@ namespace HandBrakeWPF.ViewModels this.deinterlaceFilter = value;
this.CurrentTask.DeinterlaceFilter = value;
- if (this.deinterlaceFilter == DeinterlaceFilter.Deinterlace)
+ if (this.deinterlaceFilter == DeinterlaceFilter.Yadif)
{
this.IsDeinterlaceMode = true;
this.IsDecombMode = false;
@@ -559,9 +561,9 @@ namespace HandBrakeWPF.ViewModels this.SelectedDecomb = preset.Task.Decomb;
this.SelectedDeInterlace = preset.Task.Deinterlace;
- if (preset.Task.DeinterlaceFilter == DeinterlaceFilter.Deinterlace)
+ if (preset.Task.DeinterlaceFilter == DeinterlaceFilter.Yadif)
{
- this.SelectedDeinterlaceFilter = DeinterlaceFilter.Deinterlace;
+ this.SelectedDeinterlaceFilter = DeinterlaceFilter.Yadif;
}
else if (preset.Task.DeinterlaceFilter == DeinterlaceFilter.Decomb)
{
@@ -572,7 +574,6 @@ namespace HandBrakeWPF.ViewModels this.SelectedDeinterlaceFilter = DeinterlaceFilter.Off;
}
-
this.Grayscale = preset.Task.Grayscale;
this.DeblockValue = preset.Task.Deblock == 0 ? 4 : preset.Task.Deblock;
this.SelectedDenoisePreset = preset.Task.DenoisePreset;
@@ -593,7 +594,7 @@ namespace HandBrakeWPF.ViewModels // Default everything to off
this.SelectedDenoise = Denoise.Off;
this.SelectedDecomb = Decomb.Default;
- this.SelectedDeInterlace = Deinterlace.Fast;
+ this.SelectedDeInterlace = Deinterlace.Default;
this.SelectedDetelecine = Detelecine.Off;
this.Grayscale = false;
this.DeblockValue = 0;
|