FastBlur
From Avisynth wiki
(Difference between revisions)
m (add Deep_color_tools category) |
(v3.0) |
||
Line 2: | Line 2: | ||
{{Filter3 | {{Filter3 | ||
| {{Author/David Horman}} | | {{Author/David Horman}} | ||
− | | v0. | + | | 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 22:02, 5 June 2021
Abstract | |
---|---|
Author | wonkey_monkey |
Version | v0.3 |
Download | FastBlur.zip |
Category | Blurring |
License | Closed source |
Discussion | Doom9 Thread |
Contents[hide] |
Description
Fast approximate Gaussian blurs.
Requirements
- [x86]: AviSynth+ or AviSynth 2.6
- [x64]: AviSynth+
- Supported color formats: RGB24, RGB32, Y8, YV12, YV16, YV24, YV411
Syntax and Parameters
- FastBlur (clip, float blur, float "y_blur", int "iterations, bool "dither", bool "gamma", float "threads")
- clip =
- Input clip.
- clip =
- float =
- Blur radius (equivalent to Photoshop Gaussian Blur's radius).
- float =
- float yblur =
- Vertical blur (if different from horizontal blur)
- float yblur =
- int iterations = 3
- Number of iterations for approximation. Defaults to 3. A value of 1 performs a box blur.
- int iterations = 3
- bool dither = false
- Enable/disable dithering.
- bool dither = false
- bool gamma = true
- Approximate gamma awareness. This should be disabled for masks.
- bool gamma = true
- 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
- float threads = -1
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
- Doom9 Forum - FastBlur discussion.
Back to External Filters ←