Skip to content

Commit

Permalink
Correct value scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 authored Sep 18, 2024
1 parent 4927556 commit de9d014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vsscale/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def scale( # type: ignore
merged = norm_expr(
[ref, smooth, smooth.std.Maximum(), smooth.std.Minimum()],
expression, merge_weight=merge_weight, ref_weight=1.0 - merge_weight,
undershoot=scale_value(self.undershoot, 32, clip),
overshoot=scale_value(self.overshoot, 32, clip),
undershoot=scale_value(self.undershoot, 32, clip, ColorRange.FULL),
overshoot=scale_value(self.overshoot, 32, clip, ColorRange.FULL),
clamp_max=[scale_8bit(clip, 235), scale_8bit(clip, 240)]
)
else:
Expand Down

0 comments on commit de9d014

Please sign in to comment.