From 29f2376452e2442bec2d9bc5edd2fe4747bfc7c5 Mon Sep 17 00:00:00 2001 From: emotion3459 <176516814+emotion3459@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:23:52 -0500 Subject: [PATCH] Switch to scale_delta --- vsdeinterlace/funcs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vsdeinterlace/funcs.py b/vsdeinterlace/funcs.py index 6fa87a2..87c3fc2 100644 --- a/vsdeinterlace/funcs.py +++ b/vsdeinterlace/funcs.py @@ -8,7 +8,7 @@ from vsrgtools import BlurMatrix from vstools import ( ConvMode, CustomEnum, FormatsMismatchError, FuncExceptT, FunctionUtil, GenericVSFunction, - InvalidFramerateError, KwargsT, PlanesT, check_variable, core, scale_value, vs + InvalidFramerateError, KwargsT, PlanesT, check_variable, core, scale_delta, vs ) __all__ = [ @@ -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), - scl=scl, thr=scale_value(thr, 8, func.work_clip), + planes, sstr=contra_str, amnt=scale_delta(amnt, 8, func.work_clip), + scl=scl, thr=scale_delta(thr, 8, func.work_clip), ) return func.return_clip(combed)