Skip to content

Commit

Permalink
Add AdobeBicubicSharper, AdobeBicubicSmoother
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Aug 4, 2024
1 parent 9df18f0 commit 74eb340
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions vskernels/kernels/bicubic.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
'Catrom',
'FFmpegBicubic',
'AdobeBicubic',
'AdobeBicubicSharper',
'AdobeBicubicSmoother',
'BicubicSharp',
'RobidouxSoft',
'Robidoux',
Expand Down Expand Up @@ -100,6 +102,20 @@ def __init__(self, **kwargs: Any) -> None:
super().__init__(b=0, c=3 / 4, **kwargs)


class AdobeBicubicSharper(Bicubic):
"""Bicubic b=0, c=1, blur=1.05; Adobe's "Bicubic Sharper" interpolation preset."""

def __init__(self, **kwargs: Any) -> None:
super().__init__(b=0, c=1, blur=1.05, **kwargs)


class AdobeBicubicSmoother(Bicubic):
"""Bicubic b=0, c=0.625, blur=1.15; Adobe's "Bicubic Smoother" interpolation preset."""

def __init__(self, **kwargs: Any) -> None:
super().__init__(b=0, c=5 / 8, blur=1.15, **kwargs)


class BicubicSharp(Bicubic):
"""Bicubic b=0, c=1"""

Expand Down

0 comments on commit 74eb340

Please sign in to comment.