Skip to content

Commit

Permalink
shift_tint: Replace deprecated scale_8bit
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Oct 5, 2024
1 parent 83cd4c5 commit 008e776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vsadjust/shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Sequence

from vsexprtools import ExprOp
from vstools import CustomIndexError, check_variable, normalize_seq, scale_8bit, vs
from vstools import ColorRange, CustomIndexError, check_variable, normalize_seq, scale_value, vs

__all__ = [
'shift_tint'
Expand Down Expand Up @@ -34,4 +34,4 @@ def shift_tint(clip: vs.VideoNode, values: int | Sequence[int] = 16) -> vs.Video
if any(v > 255 or v < -255 for v in val):
raise CustomIndexError('Every value in "values" must be an 8 bit number!', shift_tint)

return ExprOp.ADD.combine(clip, suffix=[scale_8bit(clip, v) for v in val])
return ExprOp.ADD.combine(clip, suffix=[scale_value(v, 8, clip, ColorRange.FULL) for v in val])

0 comments on commit 008e776

Please sign in to comment.