Skip to content

Commit

Permalink
Automatically get ysize from xsize in AddNoise
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Oct 27, 2023
1 parent 37ada21 commit 9b7b108
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vsdeband/noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ def _perform_graining(
scale = ((1 << (clip.format.bits_per_sample - 8)) - 1) if clip.format.bits_per_sample > 8 else 255
strength = (((1.0 - stre) * scale) if stre else 0.0 for stre in strength)

kwargs.setdefault('ysize', kwargs.get('xsize', 2.0))

return core.noise.Add(clip, *strength, constant=not dynamic, **kwargs)


Expand Down

0 comments on commit 9b7b108

Please sign in to comment.