Skip to content

Commit

Permalink
Added FFmpegBicubic and AdobeBicubic kernels.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuv420p10le committed Nov 7, 2023
1 parent fce6cef commit fd8005e
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 @@ -13,6 +13,8 @@
'Hermite',
'Mitchell',
'Catrom',
'FFmpegCubic',
'AdobeCubic',
'BicubicSharp',
'RobidouxSoft',
'Robidoux',
Expand Down Expand Up @@ -92,6 +94,20 @@ def __init__(self, **kwargs: Any) -> None:
super().__init__(b=0, c=1 / 2, **kwargs)


class FFmpegBicubic(Bicubic):
"""Bicubic b=0, c=0.6; FFmpeg's swscale default"""

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


class AdobeBicubic(Bicubic):
"""Bicubic b=0, c=0.75; Adobe's "Bicubic" interpolation preset"""

def __init__(self, **kwargs: Any) -> None:
super().__init__(b=0, c=3 / 4, **kwargs)


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

Expand Down

0 comments on commit fd8005e

Please sign in to comment.