Skip to content

Commit

Permalink
scale/descale: border_handling.from_param
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Nov 1, 2024
1 parent 1e551a3 commit a60792f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vskernels/kernels/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def descale(
clip, bits = expect_bits(clip, 32)

de_base_args = (width, height // (1 + field_based.is_inter))
kwargs |= dict(border_handling=border_handling)
kwargs |= dict(border_handling=BorderHandling.from_param(border_handling, self.descale))

if field_based.is_inter:
shift_y, shift_x = tuple[tuple[float, float], ...](
Expand Down
1 change: 1 addition & 0 deletions vskernels/kernels/complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def scale( # type: ignore[override]

kwargs, shift = sample_grid_model.for_dst(clip, width, height, shift, **kwargs)

border_handling = BorderHandling.from_param(border_handling, self.scale)
padded = border_handling.prepare_clip(clip, self.kernel_radius)

shift, clip = tuple(
Expand Down

0 comments on commit a60792f

Please sign in to comment.