summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2018-01-10 23:56:54 -0500
committerBradley Sepos <[email protected]>2018-01-10 23:56:54 -0500
commitc9406eab24c04648f13104e4a653ee9966976941 (patch)
tree0d45c1f247a67acad53473cf1e3e9adec55a861d /libhb
parent0b9cc8e04c3d2d70b67e420a67919e7d92c2f78c (diff)
libhb: Make NLMeans prefilter order consistent.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/nlmeans.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/nlmeans.c b/libhb/nlmeans.c
index d5751c1bd..19bd99e5a 100644
--- a/libhb/nlmeans.c
+++ b/libhb/nlmeans.c
@@ -619,16 +619,16 @@ static void nlmeans_prefilter(BorderedPlane *src,
}
// Filter plane; should already have at least 2px extra border on each side
- if (filter_type & NLMEANS_PREFILTER_MODE_CSM3X3)
- {
- // CSM 3x3
- nlmeans_filter_csm(image, image_pre, w, h, border, 3);
- }
- else if (filter_type & NLMEANS_PREFILTER_MODE_CSM5X5)
+ if (filter_type & NLMEANS_PREFILTER_MODE_CSM5X5)
{
// CSM 5x5
nlmeans_filter_csm(image, image_pre, w, h, border, 5);
}
+ else if (filter_type & NLMEANS_PREFILTER_MODE_CSM3X3)
+ {
+ // CSM 3x3
+ nlmeans_filter_csm(image, image_pre, w, h, border, 3);
+ }
else if (filter_type & NLMEANS_PREFILTER_MODE_MEDIAN5X5)
{
// Median 5x5