AWarpsharp2/aWarpSharp
From Avisynth wiki
(Difference between revisions)
m |
m (minor formatting) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | '''Back to [[aWarpSharp2#Filters|aWarpSharp2]]''' | + | {{FilterCat4|External_filters|Plugin_functions|Adjustment_filters|Sharpeners}} |
+ | '''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←''' | ||
+ | -------------------------------------------------- | ||
+ | <br> | ||
== Description == | == Description == | ||
− | + | Special fuction that keeps compatibility with ancient scripts that use the original [[aWarpSharp]]. This version is able to do the conversion automatically when called as aWarpSharp, but errors in case of out of bounds values will be displayed in new terms.<br> | |
− | + | <br> | |
− | + | '''Original aWarpSharp compatibility:''' | |
− | + | :Mapping from original aWarpSharp parameters: | |
− | + | ::thresh = thresh*256 | |
− | + | ::blur = blurlevel | |
− | + | ::type = (bm=0)->1, (bm=2)->0 | |
− | + | ::depth = depth*blurlevel/2 | |
− | + | ::chroma = 0->2, 1->4, 2->3 | |
− | + | ||
<br> | <br> | ||
== [[Script variables|Syntax and Parameters]] == | == [[Script variables|Syntax and Parameters]] == | ||
:{{Template:FuncDef|aWarpSharp (''clip'', ''float'' "depth", ''int'' "blurlevel", ''float'' "thresh", ''int'' "cm", ''int'' "bm", ''bool'' "show")}} | :{{Template:FuncDef|aWarpSharp (''clip'', ''float'' "depth", ''int'' "blurlevel", ''float'' "thresh", ''int'' "cm", ''int'' "bm", ''bool'' "show")}} | ||
+ | <br> | ||
+ | ::{{Par2| |clip| |}} | ||
+ | :::Input clip. | ||
<br> | <br> | ||
::{{Par2|depth|float|16.0}} | ::{{Par2|depth|float|16.0}} | ||
− | + | :::{{Template:FuncDef|depth}} determines the amount of warping. It directly affects how thin your lines will end up. | |
− | + | :::Range: 0.0 to 64.0 | |
<br> | <br> | ||
::{{Par2|blurlevel|int|2}} | ::{{Par2|blurlevel|int|2}} | ||
− | + | :::Higher {{Template:FuncDef|blurlevel}} values are slower, but can give a big boost to the warp sharpening. | |
− | + | :::If you find that the warping is distorting certain shapes too much, try lowering this parameter first. | |
− | + | :::Range: 1 to 4 | |
<br> | <br> | ||
::{{Par2|thresh|float|0.5}} | ::{{Par2|thresh|float|0.5}} | ||
− | + | :::The bump mapping saturation setting: | |
− | + | :::A float value of 1.0 means 100% (max). The default value (0.5) is recommended for maximum quality. | |
− | + | :::If you tweak this setting, keep in mind it will enhance inequality of warping between edges.<br> | |
− | + | ||
− | + | ||
<br> | <br> | ||
::{{Par2|cm|int|2}} | ::{{Par2|cm|int|2}} | ||
Line 56: | Line 59: | ||
[[AviSource]]("Blah.avi") | [[AviSource]]("Blah.avi") | ||
aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=3) | aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=3) | ||
− | |||
<br> | <br> | ||
-------------------------------------------------------- | -------------------------------------------------------- | ||
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←''' | '''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←''' |
Latest revision as of 08:31, 21 September 2014
Back to aWarpSharp2 ←
[edit] Description
Special fuction that keeps compatibility with ancient scripts that use the original aWarpSharp. This version is able to do the conversion automatically when called as aWarpSharp, but errors in case of out of bounds values will be displayed in new terms.
Original aWarpSharp compatibility:
- Mapping from original aWarpSharp parameters:
- thresh = thresh*256
- blur = blurlevel
- type = (bm=0)->1, (bm=2)->0
- depth = depth*blurlevel/2
- chroma = 0->2, 1->4, 2->3
[edit] Syntax and Parameters
- aWarpSharp (clip, float "depth", int "blurlevel", float "thresh", int "cm", int "bm", bool "show")
- clip =
- Input clip.
- clip =
- float depth = 16.0
- depth determines the amount of warping. It directly affects how thin your lines will end up.
- Range: 0.0 to 64.0
- float depth = 16.0
- int blurlevel = 2
- Higher blurlevel values are slower, but can give a big boost to the warp sharpening.
- If you find that the warping is distorting certain shapes too much, try lowering this parameter first.
- Range: 1 to 4
- int blurlevel = 2
- float thresh = 0.5
- The bump mapping saturation setting:
- A float value of 1.0 means 100% (max). The default value (0.5) is recommended for maximum quality.
- If you tweak this setting, keep in mind it will enhance inequality of warping between edges.
- float thresh = 0.5
- int cm = 2
- Chroma mode:
- 0 : disables chroma filtering
- 1 : enables chroma warping with luma bump map (recommended)
- 2 : enables chroma independent warping & bump map
- Chroma mode:
- int cm = 2
- int bm = 2
- Blur modes:
- 0 : hq 3-pass
- 1 : fast 3-pass
- 2 : fast 1-pass
- 3 : light blur
- Blur modes:
- int bm = 2
- bool show = false
- This parameter is for compatibility purposes only; setting it to true will not do anything.
- bool show = false
[edit] Examples
aWarpSharp with default settings:
AviSource("Blah.avi") aWarpSharp(depth=16.0, blurlevel=2, thresh=0.5, cm=2, bm=2)
aWarpSharp with default settings identical to:
AviSource("Blah.avi") aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=3)
Back to aWarpSharp2 ←