Skip to content

Commit

Permalink
Switch to scale_delta
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 committed Nov 14, 2024
1 parent 50931a2 commit 29f2376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vsdeinterlace/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = [
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 29f2376

Please sign in to comment.