From 3fa267dcd27906d763359c4d93b1347721bb69c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vard=C3=AB?= Date: Tue, 12 Mar 2024 08:08:45 +0100 Subject: [PATCH] specify color range when scaling degrain limit (#113) --- vsdenoise/mvtools/mvtools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsdenoise/mvtools/mvtools.py b/vsdenoise/mvtools/mvtools.py index 094f496..838d900 100644 --- a/vsdenoise/mvtools/mvtools.py +++ b/vsdenoise/mvtools/mvtools.py @@ -714,7 +714,7 @@ def degrain( '"limit" values should be between 0 and 255 (inclusive)!', self.degrain ) - limitf, limitCf = scale_value(limit, 8, ref), scale_value(limitC, 8, ref) + limitf, limitCf = scale_value(limit, 8, ref, ColorRange.FULL), scale_value(limitC, 8, ref, ColorRange.FULL) thSCD1, thSCD2 = self.normalize_thscd(thSCD, thSAD, self.degrain)