Skip to content

Commit

Permalink
noise: fix float input
Browse files Browse the repository at this point in the history
  • Loading branch information
Ichunjo committed Dec 24, 2021
1 parent 019a906 commit 79853df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vardefunc/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def decsiz(clip: vs.VideoNode, sigmaS: float = 10.0, sigmaR: float = 0.009,

bits = clip.format.bits_per_sample
is_float = get_sample_type(clip) == vs.FLOAT
peak = (1 << bits) - 1
peak = (1 << bits) - 1 if not is_float else 1.0
gamma = 1 / gamma
if clip.format.color_family == vs.GRAY:
planes = [0]
Expand Down

0 comments on commit 79853df

Please sign in to comment.