summaryrefslogtreecommitdiffstats
path: root/libhb/param.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-01-22 15:46:13 -0700
committerJohn Stebbins <[email protected]>2016-03-11 14:13:33 -0700
commitc3c076a86e8c3a9b97b1ed352c88365728e3879a (patch)
tree192ca09b9b67c5670d7d64fa42bdcb4107240919 /libhb/param.c
parent2615c363516a5b29d7d02b73e6b5cf2842584e13 (diff)
decomb: split comb detection out into it's own filter
Diffstat (limited to 'libhb/param.c')
-rw-r--r--libhb/param.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/libhb/param.c b/libhb/param.c
index 350f81773..46bc80f06 100644
--- a/libhb/param.c
+++ b/libhb/param.c
@@ -75,18 +75,28 @@ static hb_filter_param_t detelecine_presets[] =
{ 0, NULL, NULL, NULL }
};
-static hb_filter_param_t decomb_presets[] =
+static hb_filter_param_t comb_detect_presets[] =
{
+ { 0, "Off", "off", "disable=1" },
{ 1, "Custom", "custom", NULL },
{ 2, "Default", "default",
- "mode=391:spatial-metric=2:motion-thresh=3:spatial-thresh=3:"
- "filter-mode=2:block-thresh=40"
+ "mode=3:spatial-metric=2:motion-thresh=3:spatial-thresh=3:"
+ "filter-mode=2:block-thresh=40:block-width=16:block-height=16"
},
{ 3, "Fast", "fast",
- "mode=7:motion-thresh=6:spatial-thresh=9:"
- "filter-mode=1:block-thresh=80"
+ "mode=0:spatial-metric=2:motion-thresh=6:spatial-thresh=9:"
+ "filter-mode=1:block-thresh=80:block-width=16:block-height=16"
},
- { 4, "Bob", "bob", "mode=455" },
+ { 0, NULL, NULL, NULL }
+};
+
+static hb_filter_param_t decomb_presets[] =
+{
+ { 1, "Custom", "custom", NULL },
+ { 2, "Default", "default", "mode=7" },
+ { 4, "Bob", "bob", "mode=23" },
+ { 3, "EEDI2", "eedi2", "mode=15" },
+ { 4, "EEDI2 Bob", "eedi2bob", "mode=31" },
{ 0, NULL, NULL, NULL }
};
@@ -121,6 +131,9 @@ static filter_param_map_t param_map[] =
{ HB_FILTER_DETELECINE, detelecine_presets, NULL,
sizeof(detelecine_presets) / sizeof(hb_filter_param_t) },
+ { HB_FILTER_COMB_DETECT, comb_detect_presets, NULL,
+ sizeof(decomb_presets) / sizeof(hb_filter_param_t) },
+
{ HB_FILTER_DECOMB, decomb_presets, NULL,
sizeof(decomb_presets) / sizeof(hb_filter_param_t) },
@@ -552,6 +565,7 @@ hb_generate_filter_settings(int filter_id, const char *preset, const char *tune,
case HB_FILTER_NLMEANS:
settings = generate_nlmeans_settings(preset, tune, custom);
break;
+ case HB_FILTER_COMB_DETECT:
case HB_FILTER_DECOMB:
case HB_FILTER_DETELECINE:
case HB_FILTER_HQDN3D: