Vapoursynth MAA
Jump to navigation
Jump to search
MAA is martino's anti-aliasing with edge masking: SangNom anti-aliases an upscaled luma, and the result is used only where an edge mask marks lines.
Filtering → Vapoursynth → Line

What it does
An edge mask is built from the luma with a small gradient kernel and binarized. The luma is upscaled 2× with Spline36, SangNom interpolates it vertically and, after a transpose, horizontally, and it is scaled back. The anti-aliased luma replaces the source only inside the edge mask, so flat areas stay untouched. Chroma is kept unchanged. MAA has no settings.
Example
Default settings on a 10-bit YUV 4:2:0 source (640x356):
# Anti Aliasing using MAA clip = antiAliasing.maa(clip)
How Hybrid calls it
- MAA works on YUV and gray clips; other formats are converted first.
- The mask threshold is 7 on the 8-bit scale (pixels with a larger gradient count as edges) and is scaled to the bit depth, float included.
- MAA also offers the common options (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).
Background
Origin
The mask idea is from Kintaro, the Spline36 variant from thetoof; the VapourSynth version comes from muvsfunc. SangNom runs with its default strength.
Sources
- muvsfunc
- VapourSynth-SangNom README
- VapoursynthScriptsInHybrid (the script collection Hybrid uses)
- Hybrid's tooltips