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 8705da5 commit bd89307
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 50 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)
20 changes: 2 additions & 18 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 @@ -52,22 +50,15 @@ class Gaussian(FmtConv):

_kernel = 'gaussian'

def __init__(self, curve: int = 30, **kwargs: Any) -> None:
def __init__(self, curve: float = 30, **kwargs: Any) -> None:
super().__init__(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 bd89307

Please sign in to comment.