FastBlur

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Syntax and Parameters: corrections)
(v0.3.1)
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
{{FilterCat|External_filters|Adjustment_filters|Blurring}}
+
{{FilterCat6|External_filters|Plugins|Plugins_x64|Adjustment_filters|Blurring|Deep_color_tools}}
[[Category:Plugins]]
+
 
{{Filter3
 
{{Filter3
| {{Author/David Horman}}
+
|1={{Author/David Horman}}
| v0.1
+
|2=v0.3.1
| [http://horman.net/avisynth/ FastBlur.zip]
+
|3=[http://horman.net/avisynth/download/FastBlur0.3.1.zip FastBlur0.3.1.zip]
| Blurring  
+
|4=Blurring  
| Closed source
+
|5=Open source
 
|6=[https://forum.doom9.org/showthread.php?t=176564 Doom9 Thread]}}
 
|6=[https://forum.doom9.org/showthread.php?t=176564 Doom9 Thread]}}
 
<br>
 
<br>
Line 14: Line 13:
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6.0] or greater
+
* [x86]: [[AviSynth+]] or [http://sourceforge.net/projects/avisynth2/ AviSynth 2.6]
* x64 version requires [[AviSynth+]]
+
* [x64]: [[AviSynth+]]
* Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]], [[YV411]],
+
* Supported color formats: [[RGB24]], [[RGB32]], [[Y8]], [[YV12]], [[YV16]], [[YV24]], [[YV411]]
 
<br>
 
<br>
  
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
 
<br>
 
<br>
:{{Template:FuncDef|FastBlur (clip, float blur, float "y_blur", int "iterations, bool "dither", bool "gamma")}}
+
:{{Template:FuncDef|FastBlur (clip, float blur, float "y_blur", int "iterations, bool "dither", bool "gamma", float "threads")}}
 
<br>
 
<br>
 
::{{Par2| |clip| }}
 
::{{Par2| |clip| }}
Line 39: Line 38:
 
<br>
 
<br>
 
::{{Par2|gamma|bool|true}}
 
::{{Par2|gamma|bool|true}}
:::Approximate gamma awareness. This should be disabled for masks..  
+
:::Approximate gamma awareness. This should be disabled for masks.
 +
<br>
 +
::{{Par2|threads|float|-1}}
 +
:::Now has a threads parameter to set the number of threads. Defaults to half the number of logical processors minus 1, or 2, whichever is greater (unless you only have one logical processor, in which case: 1).
 +
:::Set threads to 0 to use all available logical processors, or use a floating pointer between 0 and 1 as a multiplier on the number of local processors, e.g. to use 3/4 of them, set threads to 0.75. [https://forum.doom9.org/showthread.php?p=1938223#post1938223]
 +
:::*< 0 : automatic
 +
:::*0 : use as many threads as logical processors
 +
:::*< 1 : use floor(logical processors*threads) threads
 +
:::*>= 1 : use floor(threads) threads
 
<br>
 
<br>
  
Line 50: Line 57:
 
== Changelog ==
 
== Changelog ==
 
  Version      Date            Changes<br>
 
  Version      Date            Changes<br>
  v0.1         06/30/2019      - Initial release.
+
  v0.3.1       2021/09/30     - Enabled clamping (previously only done for 32-bit clips) to prevent overflow from dithering.
<br>
+
v0.3        2021/03/16      - Added threads parameter
 +
v0.2.1      2019/12/31      - YUY2 support (now converts internally to YV16 and back)
 +
v0.2        2019/12/25      - Updated to fix a rounding/accumulation bug with floating point clips.
 +
v0.1        2019/06/30     - Initial release.
 
<br>
 
<br>
 +
<!--
 +
== Archived Downloads ==
 +
{| class="wikitable" border="1"; width="500px"
 +
|-
 +
!!width="100px"| Version
 +
!!width="150px"| Download
 +
!!width="150px"| Mirror
 +
|-
 +
!v0.1
 +
|[http://horman.net/avisynth/download/FastBlur.zip FastBlur.zip]
 +
|[https://web.archive.org/web/20190630165302if_/http://horman.net/avisynth/download/FastBlur.zip FastBlur.zip]
 +
|}
 +
<br>-->
 
== External Links ==
 
== External Links ==
 
*[https://forum.doom9.org/showthread.php?t=176564 Doom9 Forum] - FastBlur discussion.
 
*[https://forum.doom9.org/showthread.php?t=176564 Doom9 Forum] - FastBlur discussion.

Latest revision as of 21:36, 30 September 2021

Abstract
Author wonkey_monkey
Version v0.3.1
Download FastBlur0.3.1.zip
Category Blurring
License Open source
Discussion Doom9 Thread


Contents

[edit] Description

Fast approximate Gaussian blurs.

[edit] Requirements


[edit] Syntax and Parameters


FastBlur (clip, float blur, float "y_blur", int "iterations, bool "dither", bool "gamma", float "threads")


clip   =
Input clip.


float   =
Blur radius (equivalent to Photoshop Gaussian Blur's radius).


float  yblur =
Vertical blur (if different from horizontal blur)


int  iterations = 3
Number of iterations for approximation. Defaults to 3. A value of 1 performs a box blur.


bool  dither = false
Enable/disable dithering.


bool  gamma = true
Approximate gamma awareness. This should be disabled for masks.


float  threads = -1
Now has a threads parameter to set the number of threads. Defaults to half the number of logical processors minus 1, or 2, whichever is greater (unless you only have one logical processor, in which case: 1).
Set threads to 0 to use all available logical processors, or use a floating pointer between 0 and 1 as a multiplier on the number of local processors, e.g. to use 3/4 of them, set threads to 0.75. [1]
  • < 0 : automatic
  • 0 : use as many threads as logical processors
  • < 1 : use floor(logical processors*threads) threads
  • >= 1 : use floor(threads) threads


[edit] Examples

  • FastBlur with strong settings:
AviSource("blah.avi")
#FastBlur(..TODO..) 


[edit] Changelog

Version      Date            Changes
v0.3.1 2021/09/30 - Enabled clamping (previously only done for 32-bit clips) to prevent overflow from dithering. v0.3 2021/03/16 - Added threads parameter v0.2.1 2019/12/31 - YUY2 support (now converts internally to YV16 and back) v0.2 2019/12/25 - Updated to fix a rounding/accumulation bug with floating point clips. v0.1 2019/06/30 - Initial release.


[edit] External Links




Back to External Filters

Personal tools