<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=IvtcBlend</id>
	<title>IvtcBlend - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=IvtcBlend"/>
	<link rel="alternate" type="text/html" href="http://www.avisynth.nl/index.php?title=IvtcBlend&amp;action=history"/>
	<updated>2026-09-12T10:39:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>http://www.avisynth.nl/index.php?title=IvtcBlend&amp;diff=1350&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.avisynth.nl/index.php?title=IvtcBlend&amp;diff=1350&amp;oldid=prev"/>
		<updated>2013-05-19T22:03:48Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:03, 20 May 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>http://www.avisynth.nl/index.php?title=IvtcBlend&amp;diff=1349&amp;oldid=prev</id>
		<title>Wilbert at 21:21, 18 May 2013</title>
		<link rel="alternate" type="text/html" href="http://www.avisynth.nl/index.php?title=IvtcBlend&amp;diff=1349&amp;oldid=prev"/>
		<updated>2013-05-18T21:21:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When a film clip is converted to 29.97fps video for NTSC broadcast, some of the fields are repeated. The &amp;quot;fast&amp;quot; mode of [[Layer]] allows for a very simple blend of two supposedly-identical sources, raising the effective S/N ratio. Put these two facts together and you have an IvtcBlend function; the effect is subtle at best on clean sources, and its method deserves a properly generalized plugin for dirty ones, but in the meantime it provides an interesting look at the power of AviSynth.&lt;br /&gt;
&lt;br /&gt;
(of course, one could also argue it demonstrates the necessity for a proper if/then construct :))&lt;br /&gt;
&lt;br /&gt;
    function ivtcblend(clip clip, int offset, int &amp;quot;parity&amp;quot;)&lt;br /&gt;
    {&lt;br /&gt;
 &lt;br /&gt;
        assert(offset&amp;gt;=0 &amp;amp;&amp;amp; offset&amp;lt;=4, &amp;quot;Offset must be 0 - 4&amp;quot;)&lt;br /&gt;
        clip=(default(parity,0)==1 ? clip.[[ComplementParity|complementparity]]():clip)&lt;br /&gt;
        return(offset==0 ?&lt;br /&gt;
        \ [[Interleave|interleave]](clip,clip.layer(clip.[[Trim|trim]](1,0),&amp;quot;fast&amp;quot;)).[[SeparateFields|separatefields()]]&lt;br /&gt;
        \.[[SelectEvery|selectevery]](20,4,1,8,7,12,13,18,17).[[Weave|weave]]():&lt;br /&gt;
        \ offset==1 ?&lt;br /&gt;
        \ interleave(clip,clip.layer(clip.trim(1,0),&amp;quot;fast&amp;quot;)).separatefields()&lt;br /&gt;
        \.selectevery(20,2,1,8,5,12,11,16,17).weave():&lt;br /&gt;
        \ offset==2 ?&lt;br /&gt;
        \ interleave(clip,clip.layer(clip.trim(1,0),&amp;quot;fast&amp;quot;)).separatefields()&lt;br /&gt;
        \.selectevery(20,0,1,6,5,12,9,16,15).weave():&lt;br /&gt;
        \ offset==3 ?&lt;br /&gt;
        \ interleave(clip.[[DuplicateFrame|duplicateframe]](0),clip.duplicateframe(0).layer(clip,&amp;quot;fast&amp;quot;))&lt;br /&gt;
        \.separatefields().selectevery(20,4,3,8,9,14,13,17,20).weave():&lt;br /&gt;
        \ interleave(clip,clip.layer(clip.trim(1,0),&amp;quot;fast&amp;quot;)).separatefields()&lt;br /&gt;
        \.selectevery(20,4,3,8,9,14,13,17,20).weave())&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
[[Category:External filters]]&lt;/div&gt;</summary>
		<author><name>Wilbert</name></author>
	</entry>
</feed>