summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Encode
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-03-10 20:44:49 +0000
committerJohn Stebbins <[email protected]>2016-03-11 14:14:30 -0700
commitbe495c77c554e0ec10dfd81e53fe8b4c170ba6b7 (patch)
tree173a136282127e57afd52290c73f340a0e94900e /win/CS/HandBrakeWPF/Services/Encode
parent5d9e1585a9be17528546f82cde903829082e7a2b (diff)
WinGui: Initial commit supporting separated interlace detection. Not tested yet.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Encode')
-rw-r--r--win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs13
-rw-r--r--win/CS/HandBrakeWPF/Services/Encode/Model/EncodeTask.cs10
2 files changed, 23 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs
index 6304c4af3..5167e7218 100644
--- a/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs
+++ b/win/CS/HandBrakeWPF/Services/Encode/Factories/EncodeFactory.cs
@@ -435,6 +435,19 @@ namespace HandBrakeWPF.Services.Encode.Factories
filter.FilterList.Add(filterItem);
}
+ if (job.DeinterlaceFilter == DeinterlaceFilter.Decomb || job.DeinterlaceFilter == DeinterlaceFilter.Yadif)
+ {
+ if (job.CombDetect != CombDetect.Off)
+ {
+ IntPtr settingsPtr = HBFunctions.hb_generate_filter_settings_json((int)hb_filter_ids.HB_FILTER_COMB_DETECT, EnumHelper<CombDetect>.GetShortName(job.CombDetect), null, job.CustomCombDetect);
+ string unparsedJson = Marshal.PtrToStringAnsi(settingsPtr);
+ JToken settings = JObject.Parse(unparsedJson);
+
+ Filter filterItem = new Filter { ID = (int)hb_filter_ids.HB_FILTER_COMB_DETECT, Settings = settings };
+ filter.FilterList.Add(filterItem);
+ }
+ }
+
// Denoise
if (job.Denoise != Denoise.Off)
{
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/EncodeTask.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/EncodeTask.cs
index 0ae588bc7..71af5cc0d 100644
--- a/win/CS/HandBrakeWPF/Services/Encode/Model/EncodeTask.cs
+++ b/win/CS/HandBrakeWPF/Services/Encode/Model/EncodeTask.cs
@@ -298,11 +298,21 @@ namespace HandBrakeWPF.Services.Encode.Model
public Decomb Decomb { get; set; }
/// <summary>
+ /// Gets or sets the comb detect.
+ /// </summary>
+ public CombDetect CombDetect { get; set; }
+
+ /// <summary>
/// Gets or sets CustomDecomb.
/// </summary>
public string CustomDecomb { get; set; }
/// <summary>
+ /// Gets or sets the custom comb detect.
+ /// </summary>
+ public string CustomCombDetect { get; set; }
+
+ /// <summary>
/// Gets or sets Detelecine.
/// </summary>
public Detelecine Detelecine { get; set; }