<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://avisynth.nl/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=AGM</id>
		<title>AGM - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=AGM"/>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=AGM&amp;action=history"/>
		<updated>2026-06-05T08:00:40Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.24</generator>

	<entry>
		<id>http://avisynth.nl/index.php?title=AGM&amp;diff=12639&amp;oldid=prev</id>
		<title>Reel.Deal: license link</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=AGM&amp;diff=12639&amp;oldid=prev"/>
				<updated>2022-05-15T15:48:37Z</updated>
		
		<summary type="html">&lt;p&gt;license link&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:48, 15 May 2022&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|3=[https://github.com/Asd-g/AviSynth-AGM/releases/ AGM-1.0.0.7z]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|3=[https://github.com/Asd-g/AviSynth-AGM/releases/ AGM-1.0.0.7z]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|4=Effects&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|4=Effects&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|5=[https://github.com/Asd-g/AviSynth-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;sbr&lt;/del&gt;/blob/main/LICENSE GPLv3]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|5=[https://github.com/Asd-g/AviSynth-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;AGM&lt;/ins&gt;/blob/main/LICENSE GPLv3]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|6=&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|6=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Reel.Deal</name></author>	</entry>

	<entry>
		<id>http://avisynth.nl/index.php?title=AGM&amp;diff=12636&amp;oldid=prev</id>
		<title>Reel.Deal: AGM: Adaptive Grain Mask filter</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=AGM&amp;diff=12636&amp;oldid=prev"/>
				<updated>2022-05-15T14:06:52Z</updated>
		
		<summary type="html">&lt;p&gt;AGM: Adaptive Grain Mask filter&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FilterCat6|External_filters|Plugins|Plugins_x64|Adjustment_filters|Effects|Deep_color_tools}}&lt;br /&gt;
{{Filter3&lt;br /&gt;
|1={{Author/Asd-g}}&lt;br /&gt;
|2=1.0.0&lt;br /&gt;
|3=[https://github.com/Asd-g/AviSynth-AGM/releases/ AGM-1.0.0.7z]&lt;br /&gt;
|4=Effects&lt;br /&gt;
|5=[https://github.com/Asd-g/AviSynth-sbr/blob/main/LICENSE GPLv3]&lt;br /&gt;
|6=&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
[[AGM]]: Adaptive Grain Mask.&lt;br /&gt;
&lt;br /&gt;
Generally, the lower a frame's average luma, the more grain is applied even to the brighter areas. This abuses the fact that our eyes are instinctively drawn to the brighter part of any image, making the grain less necessary in images with an overall very high luma.&lt;br /&gt;
&lt;br /&gt;
This is [https://git.kageru.moe/kageru/adaptivegrain a port of the VapourSynth adaptive_grain mask.] See the &amp;quot;[https://blog.kageru.moe/legacy/adaptivegrain.html Adaptive Graining Methods]&amp;quot; article for in-depth information.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6]&lt;br /&gt;
* [x64]: [[AviSynth+]]&lt;br /&gt;
* Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]]&lt;br /&gt;
** AviSynth+: All [[planar]] YUV formats (8/10/12/14/16/32-bits) are supported. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
* [https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0 Microsoft Visual C++ 2022 Redistributable Package (x86 / x64)]&lt;br /&gt;
:&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;***&amp;lt;/span&amp;gt; &amp;lt;tt&amp;gt;vcredist_x86.exe&amp;lt;/tt&amp;gt; is required for &amp;lt;tt&amp;gt;AGM-x86&amp;lt;/tt&amp;gt;&lt;br /&gt;
:&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;***&amp;lt;/span&amp;gt; &amp;lt;tt&amp;gt;vcredist_x64.exe&amp;lt;/tt&amp;gt; is required for &amp;lt;tt&amp;gt;AGM-x64&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== [[Script variables|Syntax and Parameters]] ==&lt;br /&gt;
:{{Template:FuncDef| AGM (clip input, float &amp;quot;luma_scaling&amp;quot;, bool &amp;quot;fade&amp;quot;, int &amp;quot;opt&amp;quot;)}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2| |clip| }}&lt;br /&gt;
:::A clip to process.&lt;br /&gt;
:::Must be in YUV [[planar]] format.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|luma_scaling|float|10.0}}&lt;br /&gt;
:::Grain opacity curve.&lt;br /&gt;
:::Lower values will generate more grain even in brighter scenes while higher values will generate less even in dark scenes.&lt;br /&gt;
:::Default: 10.0.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|fade|bool|true}}&lt;br /&gt;
:::If the clip has bit depth less than 32-bit, the range must be TV (limited range).&lt;br /&gt;
:::True: If the clip has bit depth less than 32-bit - pure white and pure black pixels are copied (16/235 8-bit); pixels with value of 18/17 (8-bit) fades out.&lt;br /&gt;
:::If the clip has bit depth 32-bit - pixels with value 0.0 and 1.0 are copied.&lt;br /&gt;
:::Default: True.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|opt|int|-1}}&lt;br /&gt;
:::Sets which cpu optimizations to use.&lt;br /&gt;
:::*-1: Auto-detect.&lt;br /&gt;
:::*0: Use C++ code.&lt;br /&gt;
:::*1: Use SSE2 code.&lt;br /&gt;
:::*2: Use AVX2 code.&lt;br /&gt;
:::*3: Use AVX512 code.&lt;br /&gt;
:::Default: -1.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
AGM with default settings:&lt;br /&gt;
 [[AviSource]](&amp;quot;Blah.avi&amp;quot;)&lt;br /&gt;
 AGM(luma_scaling=10.0, fade=true, opt=-1)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Changelog ==&lt;br /&gt;
 Version         Date            Changes&amp;lt;br&amp;gt;&lt;br /&gt;
 1.0.0           2022/05/15      - Initial release&lt;br /&gt;
                                 - Registered as [[MT_MULTI_INSTANCE]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==External Links ==&lt;br /&gt;
*[https://github.com/Asd-g/AviSynth-AGM GitHub] - Source code repository.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
-----------------------------------------------&lt;br /&gt;
'''Back to [[External_filters#Effects|External Filters]] &amp;amp;larr;'''&lt;/div&gt;</summary>
		<author><name>Reel.Deal</name></author>	</entry>

	</feed>