Skip to content

Commit

Permalink
Bicubic: Add missing Adobe kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Nov 19, 2023
1 parent a49a76d commit bba83b6
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 @@ -15,6 +15,8 @@
'Catrom',
'FFmpegBicubic',
'AdobeBicubic',
'AdobeBicubicSharper',
'AdobeBicubicSmoother',
'BicubicSharp',
'RobidouxSoft',
'Robidoux',
Expand Down Expand Up @@ -117,6 +119,20 @@ def __init__(self, **kwargs: Any) -> None:
super().__init__(b=0, c=3 / 4, **kwargs)


class AdobeBicubicSharper(Bicubic):
"""Bicuboc 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):
"""Bicuboc 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 bba83b6

Please sign in to comment.