AWarpsharp2/aWarpSharp

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Description)
m
Line 13: Line 13:
 
<br>
 
<br>
  
== Syntax and Parameters ==
+
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|aWarpSharp(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>
 
<br>
::{{Par|depth|float|16.0}}
+
::{{Par2|depth|float|16.0}}
 
:::Range: 0.0 - 64.0
 
:::Range: 0.0 - 64.0
 +
::::{{Template:FuncDef|depth}} determines the amount of warping. It directly affects how thin your lines will end up.
 
<br>
 
<br>
::{{Par|blurlevel|int|2}}
+
::{{Par2|blurlevel|int|2}}
 
:::Range: 1 - 4<br>
 
:::Range: 1 - 4<br>
::::These are the only settings you need to tweak to achieve any effect.
+
::::Higher {{Template:FuncDef|blurlevel}} values are slower, but can give a big boost to the warp sharpening.
::::Blurlevel consumes CPU power, but gives a big boost to the warpsharpenning.
+
::::If you find that the warping is distorting certain shapes too much, try lowering this parameter first.  
 
<br>
 
<br>
::{{Par|thresh|float|0.5}}
+
::{{Par2|thresh|float|0.5}}
 
:::Range: 0.0 - 1.0<br>
 
:::Range: 0.0 - 1.0<br>
::::A float value of 1.0 means 100% (max). It's the bump mapping saturation setting.
+
::::The bump mapping saturation setting:
::::Default value is recommended for maximum quality.
+
:::::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>
 
::::If you tweak this setting, keep in mind it will enhance inequality of warping between edges.<br>
 
<br>
 
<br>
::{{Par|cm|int|2}}
+
::{{Par2|cm|int|2}}
 
:::Chroma mode:
 
:::Chroma mode:
 
::::* 0 : disables chroma filtering
 
::::* 0 : disables chroma filtering
 
::::* 1 : enables chroma warping with luma bump map (recommended)
 
::::* 1 : enables chroma warping with luma bump map (recommended)
::::* 2 : enables chroma independent warping & bump map
+
::::* 2 : enables chroma independent warping & bump map
::::* 3 : chroma -> luma
+
::::* 4 : chroma -> chroma
+
 
<br>
 
<br>
::{{Par|bm|int|2}}
+
::{{Par2|bm|int|2}}
 
:::Blur modes:
 
:::Blur modes:
 
::::* 0 : hq 3-pass
 
::::* 0 : hq 3-pass
Line 45: Line 45:
 
::::* 3 : light blur
 
::::* 3 : light blur
 
<br>
 
<br>
::{{Par|show|bool|false}}
+
::{{Par2|show|bool|false}}
:::If true, it will show an edge mask. Useful for adjusting depth, blurlevel, and thresh.  
+
:::This parameter is for compatibility purposes only; setting it to true will not do anything.  
 
<br>
 
<br>
 +
== Examples ==
 +
aWarpSharp with default settings:
 +
[[AviSource]]("Blah.avi")
 +
aWarpSharp(depth=16.0, blurlevel=2, thresh=0.5, cm=2, bm=2)
 +
<br>
 +
aWarpSharp with default settings identical to:
 +
[[AviSource]]("Blah.avi")
 +
aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=3)
 +
<br>
 +
<br>
 +
--------------------------------------------------------
 +
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] &larr;'''

Revision as of 15:34, 2 March 2014

Back to aWarpSharp2

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


Syntax and Parameters

aWarpSharp (clip, float "depth", int "blurlevel", float "thresh", int "cm", int "bm", bool "show")


float  depth = 16.0
Range: 0.0 - 64.0
depth determines the amount of warping. It directly affects how thin your lines will end up.


int  blurlevel = 2
Range: 1 - 4
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.


float  thresh = 0.5
Range: 0.0 - 1.0
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.


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


int  bm = 2
Blur modes:
  • 0 : hq 3-pass
  • 1 : fast 3-pass
  • 2 : fast 1-pass
  • 3 : light blur


bool  show = false
This parameter is for compatibility purposes only; setting it to true will not do anything.


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

Personal tools