Skip to content

Commit

Permalink
Update value scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
emotion3459 committed Oct 14, 2024
1 parent 5c126c3 commit 38cff97
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vsdeband/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ def _try_grain(src: vs.VideoNode, stre: tuple[float, float] = strength, **args:
low = [
scale_value(
threshold, 8, clip.format.bits_per_sample,
scale_offsets=(clip.format.sample_type is vs.FLOAT),
chroma=not not plane_index
)
for plane_index, threshold in enumerate(normalize_seq(fallback(low, 16)))
Expand All @@ -271,7 +270,6 @@ def _try_grain(src: vs.VideoNode, stre: tuple[float, float] = strength, **args:
high = [
scale_value(
threshold, 8, clip.format.bits_per_sample,
scale_offsets=(clip.format.sample_type is vs.FLOAT),
chroma=not not plane_index
)
for plane_index, threshold in enumerate(normalize_seq(fallback(high, [235, 240])))
Expand Down

0 comments on commit 38cff97

Please sign in to comment.