Skip to content

Commit

Permalink
Remove curve default and trc param from Placebo
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Jul 30, 2024
1 parent c53b468 commit 5316b3d
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions vskernels/kernels/placebo.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,7 @@ def __init__(
self.blur = blur
self.taper = taper
self.antiring = antiring
super().__init__(**(dict(curve=Transfer.BT709) | kwargs))

@inject_self.cached
@inject_kwargs_params
def scale( # type: ignore[override]
self, clip: vs.VideoNode, width: int | None = None, height: int | None = None,
shift: tuple[TopShift, LeftShift] = (0, 0), *,
linear: bool = True, sigmoid: bool | tuple[Slope, Center] = True, curve: TransferT | None = None, **kwargs: Any
) -> vs.VideoNode:
width, height = self._wh_norm(clip, width, height)
return super().scale(
clip, width, height, shift, linear=linear, sigmoid=sigmoid,
trc=Transfer.from_param_or_video(curve, clip).value_libplacebo
)
super().__init__(**kwargs)

@inject_kwargs_params
def get_scale_args(
Expand Down

0 comments on commit 5316b3d

Please sign in to comment.