From d1a3eac0389157792c21511cab4e480552f3a671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vard=C3=AB?= Date: Tue, 12 Mar 2024 08:09:39 +0100 Subject: [PATCH] guided_deband: specify the correct range (#97) --- vsdeband/funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsdeband/funcs.py b/vsdeband/funcs.py index b903b9b..af913da 100644 --- a/vsdeband/funcs.py +++ b/vsdeband/funcs.py @@ -174,7 +174,7 @@ def guided_deband( if clip.format.sample_type is vs.FLOAT: bin_thr = 1.5 / 255 if range_in.is_full else [1.5 / 219, 1.5 / 224] else: - bin_thr = scale_value(0.005859375, 32, clip, range_in) + bin_thr = scale_value(0.005859375, 32, clip, range_out=range_in) bin_thr = normalize_seq(bin_thr, clip.format.num_planes)