FastBlur

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (add Deep_color_tools category)
(v3.0)
Line 2: Line 2:
 
{{Filter3
 
{{Filter3
 
| {{Author/David Horman}}
 
| {{Author/David Horman}}
| v0.2.1
+
| v0.3
 
| [http://horman.net/avisynth/download/FastBlur.zip FastBlur.zip]
 
| [http://horman.net/avisynth/download/FastBlur.zip FastBlur.zip]
 
| Blurring  
 
| Blurring  
Line 20: Line 20:
 
== [[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 38: 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 49: Line 57:
 
== Changelog ==
 
== Changelog ==
 
  Version      Date            Changes<br>
 
  Version      Date            Changes<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.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.2        2019/12/25      - Updated to fix a rounding/accumulation bug with floating point clips.

Revision as of 21:02, 5 June 2021

Abstract
Author wonkey_monkey
Version v0.3
Download FastBlur.zip
Category Blurring
License Closed source
Discussion Doom9 Thread


Contents

Description

Fast approximate Gaussian blurs.

Requirements


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


Examples

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


Changelog

Version      Date            Changes
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.


External Links




Back to External Filters

Personal tools