bvsfunc.mods package¶
Submodules¶
bvsfunc.mods.descaleaamod module¶
-
bvsfunc.mods.descaleaamod.DescaleAAMod(src: vapoursynth.VideoNode, w: Optional[int] = None, h: int = 720, thr: int = 10, kernel: str = 'bicubic', b: Union[float, fractions.Fraction] = Fraction(0, 1), c: Union[float, fractions.Fraction] = Fraction(1, 2), taps: int = 4, expand: int = 3, inflate: int = 3, showmask: bool = False) → vapoursynth.VideoNode[source]¶ Mod of DescaleAA to use nnedi3_resample, which produces sharper results than nnedi3 rpow2.
Original script by Frechdachs
- Original Summary:
Downscale only lineart with an inverted kernel and interpolate it back to its original resolution with NNEDI3.
Parts of higher resolution like credits are protected by a mask.
Basic idea stolen from a script made by Daiz.
- Parameters
src (VideoNode) – Source clip
w (int, optional) – Downscale resolution width, defaults to 1280
h (int) – Downscale resolution height, defaults to 720
thr (int) – Threshhold used in masking, defaults to 10
kernel (str) – Downscaling kernel, defaults to ‘bilinear’
b (var) – Downscaling parameter used in fvf.Resize, defaults to 0
c (var) – Downscaling parameter used in fvf.Resize, defaults to 1/2
taps (int) – Downscaling parameter used in fvf.Resize, defaults to 4
expand (int) – Number of times to expand the difference mask, defaults to 3
inflate (int) – Number of times to inflate the difference mask, defaults to 3
showmask (bool) – Return mask created, defaults to False
- Returns
The filtered video
- Return type
VideoNode