<?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=DGTonemap</id>
		<title>DGTonemap - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=DGTonemap"/>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=DGTonemap&amp;action=history"/>
		<updated>2026-04-07T22:17:54Z</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=DGTonemap&amp;diff=11862&amp;oldid=prev</id>
		<title>Reel.Deal: add Deep_color_tools category</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=DGTonemap&amp;diff=11862&amp;oldid=prev"/>
				<updated>2020-06-25T17:57:12Z</updated>
		
		<summary type="html">&lt;p&gt;add Deep_color_tools category&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 17:57, 25 June 2020&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;{{&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;FilterCat5&lt;/del&gt;|External_filters|Plugins|Plugins_x64|Adjustment_filters|Levels_and_Chroma_filters}}&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;{{&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;FilterCat6&lt;/ins&gt;|External_filters|Plugins|Plugins_x64|Adjustment_filters|Levels_and_Chroma_filters&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|Deep_color_tools&lt;/ins&gt;}}&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;{{Filter3&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;{{Filter3&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;|{{Author/Donald Graft}}&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;|{{Author/Donald Graft}}&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=DGTonemap&amp;diff=11160&amp;oldid=prev</id>
		<title>Reel.Deal: /* Archived Downloads */ add link</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=DGTonemap&amp;diff=11160&amp;oldid=prev"/>
				<updated>2020-04-20T20:04:07Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Archived Downloads: &lt;/span&gt; add link&lt;/span&gt;&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 20:04, 20 April 2020&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 91:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 91:&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;!v1.2&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;!v1.2&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;|[http://rationalqm.us/DGTonemap.rar DGTonemap.rar]&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;|[http://rationalqm.us/DGTonemap.rar DGTonemap.rar]&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;|&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;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[https://web.archive.org/web/20190616102740/http://rationalqm.us/DGTonemap.rar DGTonemap.rar]&lt;/ins&gt;&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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|-&lt;/del&gt;&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;&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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;!&lt;/del&gt;&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;&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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/del&gt;&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;&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;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/del&gt;&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;&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;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;&amp;lt;br&amp;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;&amp;lt;br&amp;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=DGTonemap&amp;diff=10989&amp;oldid=prev</id>
		<title>Reel.Deal: DGTonemap: add documentation</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=DGTonemap&amp;diff=10989&amp;oldid=prev"/>
				<updated>2020-03-25T14:21:53Z</updated>
		
		<summary type="html">&lt;p&gt;DGTonemap: add documentation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FilterCat5|External_filters|Plugins|Plugins_x64|Adjustment_filters|Levels_and_Chroma_filters}}&lt;br /&gt;
{{Filter3&lt;br /&gt;
|{{Author/Donald Graft}}&lt;br /&gt;
|v1.2&lt;br /&gt;
|3=[http://rationalqm.us/DGTonemap.rar DGTonemap.rar]&lt;br /&gt;
|4=Adjustment Filters&lt;br /&gt;
|5=Closed source&lt;br /&gt;
|6=&lt;br /&gt;
}}&lt;br /&gt;
== Description ==&lt;br /&gt;
DGTonemap provides filters for Reinhard and Hable tonemapping operators. This&lt;br /&gt;
is a starting point to make available a full HDR-&amp;gt;SDR process for [[AviSynth+]].&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* [[AviSynth+]] (x86 and x64)&lt;br /&gt;
* Supported color formats: [[RGBPS]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== [[Script variables|Syntax and Parameters]] ==&lt;br /&gt;
&lt;br /&gt;
===Reinhard Usage===&lt;br /&gt;
:{{Template:FuncDef|DGReinhard (clip, float &amp;quot;contrast&amp;quot;, float &amp;quot;bright&amp;quot;)}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2| |clip| }}&lt;br /&gt;
:::Input clip; the filter receives and delivers the RGBPS color space. See [[Avsresize#z_ConvertFormat|z_ConvertFormat()]] in the sample script below. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|contrast|float|5.0}}&lt;br /&gt;
:::Contrast&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|contrast|float|0.3}}&lt;br /&gt;
:::Higher numbers for &amp;lt;code&amp;gt;bright&amp;lt;/code&amp;gt; reduce brightness, you can even go to &amp;lt;code&amp;gt;bright=1000&amp;lt;/code&amp;gt; and beyond, but it stops having an effect up there.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
===Hable Usage===&lt;br /&gt;
:{{Template:FuncDef|DGHable (clip, float &amp;quot;exposure&amp;quot;, float &amp;quot;a&amp;quot;, float &amp;quot;b&amp;quot;, float &amp;quot;c&amp;quot;, float &amp;quot;d&amp;quot;, float &amp;quot;e&amp;quot;, float &amp;quot;f&amp;quot;, float &amp;quot;w&amp;quot;)}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2| |clip| }}&lt;br /&gt;
:::Input clip; the filter receives and delivers the RGBPS color space. See [[Avsresize#z_ConvertFormat|z_ConvertFormat()]] in the sample script below. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|exposure|float|2.0}}&lt;br /&gt;
:::Gain to apply.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|a|float|0.15}}&lt;br /&gt;
:::a: Shoulder strength&lt;br /&gt;
::{{Par2|b|float|0.50}}&lt;br /&gt;
:::b: Linear strength&lt;br /&gt;
::{{Par2|c|float|0.10}}&lt;br /&gt;
:::c: Linear angle&lt;br /&gt;
::{{Par2|d|float|0.20}}&lt;br /&gt;
:::d: Toe strength&lt;br /&gt;
::{{Par2|e|float|0.02}}&lt;br /&gt;
:::e: Toe numerator&lt;br /&gt;
::{{Par2|f|float|0.30}}&lt;br /&gt;
:::f: Toe denominator&lt;br /&gt;
::{{Par2|w|float|11.2}}&lt;br /&gt;
:::w: Linear white point&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;hable(x) = ((x*(a*x+c*b)+d*e) / (x*(a*x+b)+d*f)) - e/f&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt;output_pixel = hable(exposure * input_pixel) / hable(w)&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Following is a sample script for the full HDR-&amp;gt;SDR process. The source UHD video is tonemapped, converted to rec709 colorspace, and downsampled to 8 bits. To leave it in 16 bits, set &amp;lt;code&amp;gt;pixel_type=YUV420P16&amp;lt;/code&amp;gt; in the second z_ConvertFormat() call.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SetFilterMTMode(&amp;quot;z_ConvertFormat&amp;quot;, MT_MULTI_INSTANCE) # May not be needed.&lt;br /&gt;
DGSource(&amp;quot;THE GREAT WALL.dgi&amp;quot;,fulldepth=true)&lt;br /&gt;
ConvertBits(10) # Use 12 for 12-bit&lt;br /&gt;
z_ConvertFormat(pixel_type=&amp;quot;RGBPS&amp;quot;,colorspace_op=&amp;quot;2020ncl:st2084:2020:l=&amp;gt;rgb:linear:2020:l&amp;quot;, dither_type=&amp;quot;none&amp;quot;)&lt;br /&gt;
# Choose one of these:&lt;br /&gt;
DGReinhard()&lt;br /&gt;
#DGHable()&lt;br /&gt;
z_ConvertFormat(pixel_type=&amp;quot;YV12&amp;quot;,colorspace_op=&amp;quot;rgb:linear:2020:l=&amp;gt;709:709:709:l&amp;quot;,dither_type=&amp;quot;ordered&amp;quot;)&lt;br /&gt;
prefetch(4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
 Version         Date            Changes&lt;br /&gt;
 v1.2            2018/04/18      - Latest release&lt;br /&gt;
 v1.0                            - Initial release&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Archived Downloads ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;; width=&amp;quot;600px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!!width=&amp;quot;100px&amp;quot;| Version&lt;br /&gt;
!!width=&amp;quot;150px&amp;quot;| Download&lt;br /&gt;
!!width=&amp;quot;150px&amp;quot;| Mirror&lt;br /&gt;
|-&lt;br /&gt;
!v1.2&lt;br /&gt;
|[http://rationalqm.us/DGTonemap.rar DGTonemap.rar]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==External Links ==&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#Levels_and_Chroma|External Filters]] &amp;amp;larr;'''&lt;/div&gt;</summary>
		<author><name>Reel.Deal</name></author>	</entry>

	</feed>