From 961c7a1ae1afc7ac5caaa3c6fbd17477ee5d42ef Mon Sep 17 00:00:00 2001 From: emotion3459 <176516814+emotion3459@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:41:47 -0400 Subject: [PATCH] Update value scaling --- vsdeinterlace/funcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vsdeinterlace/funcs.py b/vsdeinterlace/funcs.py index 1d7d27c..4e90d7f 100644 --- a/vsdeinterlace/funcs.py +++ b/vsdeinterlace/funcs.py @@ -260,8 +260,8 @@ def vinverse( [func.work_clip, blurred, blurred2], # type:ignore 'x y - D1! D1@ abs D1A! D1A@ {thr} < x y z - {sstr} * D2! D1A@ D2@ abs < D1@ D2@ ? D3! ' 'D1@ D2@ xor D3@ {scl} * D3@ ? y + x {amnt} - x {amnt} + clip ?', - planes, sstr=contra_str, amnt=scale_value(amnt, 8, func.work_clip, ColorRange.FULL), - scl=scl, thr=scale_value(thr, 8, func.work_clip, ColorRange.FULL), + planes, sstr=contra_str, amnt=scale_value(amnt, 8, func.work_clip, ColorRange.FULL, ColorRange.FULL), + scl=scl, thr=scale_value(thr, 8, func.work_clip, ColorRange.FULL, ColorRange.FULL), ) return func.return_clip(combed)