From 38cff97eca8103980d3e70da1f4d496532c73dec Mon Sep 17 00:00:00 2001 From: emotion3459 <176516814+emotion3459@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:20:39 -0400 Subject: [PATCH] Update value scaling --- vsdeband/noise.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/vsdeband/noise.py b/vsdeband/noise.py index a9cf1ba..37f1c2f 100644 --- a/vsdeband/noise.py +++ b/vsdeband/noise.py @@ -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))) @@ -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])))