AddGrainC
From Avisynth wiki
(Difference between revisions)
m (→Requirements:) |
m |
||
Line 1: | Line 1: | ||
{{FilterCat|External_filters|Adjustment_filters|Effects}} | {{FilterCat|External_filters|Adjustment_filters|Effects}} | ||
− | {{ | + | {{Filter2 |
| | | | ||
*{{Author/Tom Barry}} | *{{Author/Tom Barry}} | ||
Line 9: | Line 9: | ||
|[http://ldesoras.free.fr/src/avs/AddGrainC-1.7.1.7z AddGrainC-1.7.1.7z] | |[http://ldesoras.free.fr/src/avs/AddGrainC-1.7.1.7z AddGrainC-1.7.1.7z] | ||
|Effects | |Effects | ||
− | |||
− | |||
|[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]}} | |[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]}} | ||
<br> | <br> | ||
Line 22: | Line 20: | ||
:- Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[YV12]], [[YV16]], [[YV24]], [[YV411]], [[Y8]] | :- Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[YV12]], [[YV16]], [[YV24]], [[YV411]], [[Y8]] | ||
<br> | <br> | ||
− | :- MMX or SSE2 capable cpu | + | :- [[MMX]] or [[SSE2]] capable cpu |
:- [http://www.microsoft.com/en-us/download/details.aspx?id=30679 Microsoft Visual C++ 2012 Redistributable Package] | :- [http://www.microsoft.com/en-us/download/details.aspx?id=30679 Microsoft Visual C++ 2012 Redistributable Package] | ||
<br> | <br> | ||
== Syntax and Parameters == | == Syntax and Parameters == | ||
− | :{{Template:FuncDef|AddGrainC (float "var", float "uvar", float "hcorr", float "vcorr", int "seed", bool "constant", bool "sse2")}} | + | :{{Template:FuncDef|AddGrainC (''clip'', ''float'' "var", ''float'' "uvar", ''float'' "hcorr", ''float'' "vcorr", ''int'' "seed", ''bool'' "constant", ''bool' "sse2")}} |
<br> | <br> | ||
− | ::{{ | + | ::{{Par2|var|float|1.0}} |
− | :::The standard deviation (strength) of the luma noise, 0 is disabled. | + | :::The standard deviation (strength) of the luma noise, 0.0 is disabled. |
<br> | <br> | ||
− | ::{{ | + | ::{{Par2|uvar|float|0.0}} |
− | :::The standard deviation (strength) of the chroma noise, 0 is disabled. | + | :::The standard deviation (strength) of the chroma noise, 0.0 is disabled. |
:::uvar does nothing in RGB mode. | :::uvar does nothing in RGB mode. | ||
<br> | <br> | ||
− | ::{{ | + | ::{{Par2|hcorr|float|0.0}} |
− | ::{{ | + | ::{{Par2|vcorr|float|0.0}} |
:::Horizontal and vertical correlation, which causes a nifty streaking effect. | :::Horizontal and vertical correlation, which causes a nifty streaking effect. | ||
::::Range: 0.0 - 1.0 | ::::Range: 0.0 - 1.0 | ||
<br> | <br> | ||
− | ::{{ | + | ::{{Par2|seed|int|-1}} |
:::Specifies a repeatable grain sequence. Set to at least 0 to use. | :::Specifies a repeatable grain sequence. Set to at least 0 to use. | ||
<br> | <br> | ||
− | ::{{ | + | ::{{Par2|constant|bool|false}} |
:::Specifies a constant grain pattern on every frame. | :::Specifies a constant grain pattern on every frame. | ||
<br> | <br> | ||
− | ::{{ | + | ::{{Par2|sse2|bool|true}} |
− | :::Enable | + | :::Enable [[SSE2]] optimization if available. 1.5x faster than [[MMX]]. |
<br> | <br> | ||
== Examples == | == Examples == | ||
+ | AddGrainC with default values: | ||
[[AviSource]]("Blah.avi") | [[AviSource]]("Blah.avi") | ||
− | + | AddGrainC(var=1.0, uvar=0.0, hcorr=0.0, vcorr=0.0, seed=-1, constant=false, sse2=true) | |
<br> | <br> | ||
== Changelog == | == Changelog == |
Revision as of 01:16, 13 January 2014
Abstract | |
---|---|
Author | |
Version | 1.7.1 |
Download | AddGrainC-1.7.1.7z |
Category | Effects |
License | GPLv2 |
Contents |
Description
- AddGrainC generates film like grain or other effects (like rain) by adding random noise to a video clip.
- This noise may optionally be horizontally or vertically correlated to cause streaking.
Requirements:
- - AviSynth 2.5.8 or later
- - Progressive input only
- - Supported color formats: RGB24, RGB32, YUY2, YV12, YV16, YV24, YV411, Y8
- - MMX or SSE2 capable cpu
- - Microsoft Visual C++ 2012 Redistributable Package
Syntax and Parameters
- AddGrainC (clip, float "var", float "uvar", float "hcorr", float "vcorr", int "seed", bool "constant", bool' "sse2")
- float var = 1.0
- The standard deviation (strength) of the luma noise, 0.0 is disabled.
- float var = 1.0
- float uvar = 0.0
- The standard deviation (strength) of the chroma noise, 0.0 is disabled.
- uvar does nothing in RGB mode.
- float uvar = 0.0
- float hcorr = 0.0
- float vcorr = 0.0
- Horizontal and vertical correlation, which causes a nifty streaking effect.
- Range: 0.0 - 1.0
- Horizontal and vertical correlation, which causes a nifty streaking effect.
- float hcorr = 0.0
- int seed = -1
- Specifies a repeatable grain sequence. Set to at least 0 to use.
- int seed = -1
- bool constant = false
- Specifies a constant grain pattern on every frame.
- bool constant = false
Examples
AddGrainC with default values:
AviSource("Blah.avi") AddGrainC(var=1.0, uvar=0.0, hcorr=0.0, vcorr=0.0, seed=-1, constant=false, sse2=true)
Changelog
Version Date Developer Changes
1.7.1 2013/11/25 Firesledge Added a 64-bit version. Compiled with MSVC 2012 (requires the 2012 runtime libraries) 1.7.0 2012/08/16 Firesledge Supports Y8, YV16, YV24 and YV411 colorspaces. 1.6.1 2011/10/29 LaTo INV. Automatic switch to MMX if SSE2 is not supported by the CPU. 1.6.0 2011/10/28 LaTo INV. Added SSE2 code (50% faster than MMX) 1.5.4 2011/10/27 Firesledge Fixed bad pixels on the last line in YV12 mode when constant=true, fixed potential problems with frame width > 4096 pixels and fixed several other minor things. 1.5.3 2011/10/26 Firesledge Fixed coloring and bluring in RGB24 mode. 1.5.2 2011/10/26 Firesledge Removed the SSE2 requirement. 1.5.1 2010/05/13 Firesledge The source code compiles on Visual C++ versions older than 2008. 1.5 2010/05/07 Foxyshadis Limit the initial seed generation to fix memory issues. 1.4 2006/08/11 Foxyshadis Constant replaces seed, seed repeatable. 1.3 2006/06/10 Foxyshadis Crashfix, noisegen optimization. 1.2 2006/06/06 Foxyshadis Supports YUY2, RGB. Fix cache mess. 1.1 2006/06/01 Foxyshadis Chroma grain + constant seed. 1.0 2003/06/18 Tom Barry Initial Release
Links
- Doom9 Forum - AddGrainC discussion.
Back to External Filters ←