Skip to content

Commit

Permalink
transpose_aa, fine_aa: Deprecate functions
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Sep 8, 2024
1 parent dc79f32 commit 8dbbc10
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vsaa/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,17 @@ def transpose_aa(clip: vs.VideoNode, aafunc: SingleRater, planes: PlanesT = 0) -
:param aafun: Antialiasing function.
:return: Antialiased clip.
"""

func = FunctionUtil(clip, transpose_aa, planes)

import warnings

warnings.warn(
f"{func.func}: 'This function is deprecated and will be removed in future versions. "
"Please use `transpose_first` in your `aafunc` instead.'",
DeprecationWarning,
)

aafunc = aafunc.copy(transpose_first=True, drop_fields=False) # type: ignore

aa = aafunc.aa(func.work_clip) # type: ignore
Expand Down Expand Up @@ -277,12 +286,20 @@ def fine_aa(
:return: Antialiased clip.
"""

assert clip.format

singlerater = singlerater.copy(shifter=Bilinear()) # type: ignore

func = FunctionUtil(clip, fine_aa, planes)

import warnings

warnings.warn(
f"{func.func}: 'This function is deprecated and will be removed in future versions.'",
DeprecationWarning,
)

if taa:
aa = transpose_aa(func.work_clip, singlerater)
else:
Expand Down

0 comments on commit 8dbbc10

Please sign in to comment.