diff options
author | Bradley Sepos <[email protected]> | 2016-04-23 18:52:21 -0400 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-05-02 23:26:20 -0400 |
commit | 43f40665096fbad312cc22d8a7a4d61f7baf6a2e (patch) | |
tree | 1be6cd52fc9c7ced2a1afdb3cb582a3e758c5938 /libhb | |
parent | e389d5efccce0ff5ea482f8125fd0403a7a48b93 (diff) |
libhb: Add NLMeans tune Sprite.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/param.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libhb/param.c b/libhb/param.c index 468900ee7..d60cbe3a9 100644 --- a/libhb/param.c +++ b/libhb/param.c @@ -35,6 +35,7 @@ static hb_filter_param_t nlmeans_tunes[] = { 3, "High Motion", "highmotion", NULL }, { 4, "Animation", "animation", NULL }, { 5, "Tape", "tape", NULL }, + { 6, "Sprite", "sprite", NULL }, { 0, NULL, NULL, NULL } }; @@ -347,6 +348,31 @@ static hb_dict_t * generate_nlmeans_settings(const char *preset, patch_size[0] = 5; patch_size[1] = 5; } } + else if (!strcasecmp(tune, "sprite")) + { + strength[0] = 3; strength[1] = 4; + origin_tune[0] = 0.15; origin_tune[1] = 0.5; + patch_size[0] = 5; patch_size[1] = 5; + range[0] = 5; range[1] = 9; + frames[0] = 2; frames[1] = 4; + prefilter[0] = 0; prefilter[1] = 0; + if (!strcasecmp(preset, "ultralight")) + { + strength[0] = 1.5; strength[1] = 3; + range[0] = 5; range[1] = 7; + frames[0] = 1; frames[1] = 2; + } + else if (!strcasecmp(preset, "light")) + { + strength[0] = 2; strength[1] = 4; + frames[0] = 2; frames[1] = 2; + } + else if (!strcasecmp(preset, "strong")) + { + strength[0] = 3; strength[1] = 4; + range[0] = 7; range[1] = 11; + } + } else { fprintf(stderr, "Unrecognized nlmeans tune (%s).\n", tune); |