Skip to content

Commit

Permalink
Move away from ExprOp range_half
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 committed Nov 13, 2024
1 parent b24c5c0 commit 3b60482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vsdeband/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ def _try_grain(src: vs.VideoNode, stre: tuple[float, float] = strength, **args:
]

if complexpr_available:
limit_expr = 'y range_half - abs A! x A@ - {low} < x A@ + {high} > or range_half y ?'
limit_expr = 'y neutral - abs A! x A@ - {low} < x A@ + {high} > or neutral y ?'
else:
limit_expr = 'x y range_half - abs - {low} < x y range_half - abs + {high} > or range_half y ?'
limit_expr = 'x y neutral - abs - {low} < x y neutral - abs + {high} > or neutral y ?'

grained = norm_expr([clip, grained], limit_expr, planes, low=low, high=high)

Expand Down

0 comments on commit 3b60482

Please sign in to comment.