<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_MAA</id>
	<title>Vapoursynth MAA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_MAA"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_MAA&amp;action=history"/>
	<updated>2026-11-19T06:07:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_MAA&amp;diff=572&amp;oldid=prev</id>
		<title>Selur: New filter page (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_MAA&amp;diff=572&amp;oldid=prev"/>
		<updated>2026-11-16T08:50:48Z</updated>

		<summary type="html">&lt;p&gt;New filter page (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;float:right; margin:0 0 1em 1em;&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;MAA&amp;#039;&amp;#039;&amp;#039; is martino&amp;#039;s anti-aliasing with edge masking: SangNom anti-aliases an upscaled luma, and the result is used only where an edge mask marks lines.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → Vapoursynth → Line&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_MAA.png|none|MAA controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
An edge mask is built from the luma with a small gradient kernel and binarized. The luma is upscaled 2× with Spline36, [[Vapoursynth SangNom|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.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings on a 10-bit YUV 4:2:0 source (640x356):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Anti Aliasing using MAA&lt;br /&gt;
clip = antiAliasing.maa(clip)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* MAA works on YUV and gray clips; other formats are converted first.&lt;br /&gt;
* 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.&lt;br /&gt;
* MAA also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== Origin ===&lt;br /&gt;
The mask idea is from Kintaro, the Spline36 variant from thetoof; the VapourSynth version comes from muvsfunc. SangNom runs with its default strength.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/WolframRhodium/muvsfunc muvsfunc]&lt;br /&gt;
* [https://github.com/dubhater/vapoursynth-sangnom VapourSynth-SangNom README]&lt;br /&gt;
* [https://github.com/Selur/VapoursynthScriptsInHybrid VapoursynthScriptsInHybrid] (the script collection Hybrid uses)&lt;br /&gt;
* Hybrid&amp;#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
</feed>