Skip to content

Commit

Permalink
Remove stuff
Browse files Browse the repository at this point in the history
Fix #12, fix #13
  • Loading branch information
Setsugennoao committed Oct 22, 2023
1 parent 8c6a95c commit cd0000b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 49 deletions.
32 changes: 0 additions & 32 deletions vskernels/kernels/spline.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
'Spline16',
'Spline36',
'Spline64',
'Spline100',
'Spline144',
'Spline196',
'Spline256',
]


Expand Down Expand Up @@ -65,31 +61,3 @@ class Spline64(ComplexKernel):

scale_function = resample_function = core.lazy.resize.Spline64
descale_function = core.lazy.descale.Despline64


class Spline100(Spline):
"""fmtconv's spline kernel with taps=5."""

def __init__(self, **kwargs: Any) -> None:
super().__init__(taps=5, **kwargs)


class Spline144(Spline):
"""fmtconv's spline kernel with taps=6."""

def __init__(self, **kwargs: Any) -> None:
super().__init__(taps=6, **kwargs)


class Spline196(Spline):
"""fmtconv's spline kernel with taps=7."""

def __init__(self, **kwargs: Any) -> None:
super().__init__(taps=7, **kwargs)


class Spline256(Spline):
"""fmtconv's spline kernel with taps=8."""

def __init__(self, **kwargs: Any) -> None:
super().__init__(taps=8, **kwargs)
18 changes: 1 addition & 17 deletions vskernels/kernels/various.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
'BlackManMinLobe',
'Sinc',
'Gaussian',
'NearestNeighbour',
'EwaBicubic',
'EwaJinc',
'EwaLanczos',
'EwaGinseng',
'EwaHann',
Expand Down Expand Up @@ -56,18 +54,11 @@ def __init__(self, curve: float = 30, taps: int = 2, **kwargs: Any) -> None:
super().__init__(taps, a1=curve, **kwargs)


class NearestNeighbour(Gaussian):
"""Nearest Neighbour kernel."""

def __init__(self, **kwargs: Any) -> None:
super().__init__(100, **kwargs)


class EwaBicubic(Placebo):
_kernel = 'ewa_robidoux'

def __init__(self, b: float = 0.0, c: float = 0.5, radius: int | None = None, **kwargs: Any) -> None:
radius = kwargs.pop('taps', None)
radius = kwargs.pop('taps', radius)

if radius is None:
radius = 1 if (b, c) == (0, 0) else 2
Expand All @@ -82,13 +73,6 @@ def __init__(self, taps: float = 3.2383154841662362076499, **kwargs: Any) -> Non
super().__init__(taps, None, None, **kwargs)


class EwaJinc(EwaLanczos):
def __init__(self, taps: float = 3.2383154841662362076499, **kwargs: Any) -> None:
print(DeprecationWarning('EwaJinc is deprecated! Switch over to EwaLanczos.'))

super().__init__(taps, None, None, **kwargs)


class EwaGinseng(Placebo):
_kernel = 'ewa_ginseng'

Expand Down

0 comments on commit cd0000b

Please sign in to comment.