Skip to content

Commit

Permalink
Merge branch 'master' into kernel-size
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Nov 11, 2023
2 parents f149ec5 + 0bac0fb commit 863706e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vskernels/kernels/fmtconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _check_fmt(fmt: int | VideoFormatT) -> tuple[vs.VideoFormat, bool]:
'sh': 'src_height', 'sy': 'src_top'
}

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

Expand Down
2 changes: 1 addition & 1 deletion vskernels/kernels/impulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_params_args(
) -> dict[str, Any]:
return super().get_params_args(is_descale, clip, width, height, **kwargs)

def __init__(self, impulse: Sequence[float], oversample: int = 8, taps: int = 1, **kwargs: Any) -> None:
def __init__(self, impulse: Sequence[float], oversample: int = 8, taps: float = 1, **kwargs: Any) -> None:
super().__init__(taps, impulse=[*impulse[::-1], *impulse[:-1]], kovrspl=oversample, **kwargs)

@inject_self.cached
Expand Down
2 changes: 1 addition & 1 deletion vskernels/kernels/spline.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Spline(FmtConv):

_kernel = 'spline'

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

@inject_self.property
Expand Down

0 comments on commit 863706e

Please sign in to comment.