Skip to content

Commit

Permalink
Update ZimgComplexKernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Nov 18, 2023
1 parent 2ddd1c5 commit c55a161
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vskernels/kernels/zimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ZimgComplexKernel(ComplexKernel, ZimgDescaler):
@inject_self.cached
def descale( # type: ignore[override]
self, clip: vs.VideoNode, width: int, height: int, shift: tuple[float, float] = (0, 0),
*, blur: float = 1.0, border_handling: BorderHandlingT,
*, blur: float = 1.0, border_handling: BorderHandlingT, ignore_mask: vs.VideoNode | None = None,
linear: bool = False, sigmoid: bool | tuple[float, float] = False, **kwargs: Any
) -> vs.VideoNode:
...
Expand All @@ -46,8 +46,8 @@ def get_params_args(
args = super().get_params_args(is_descale, clip, width, height, **kwargs)

if not is_descale:
args.pop('border_handling', None)
args.pop('blur', None)
for key in ('blur', 'border_handling', 'ignore_mask', 'force', 'force_h', 'force_v'):
args.pop(key, None)

return args

Expand Down

0 comments on commit c55a161

Please sign in to comment.