AWarpsharp2/aWarpSharp

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(aWarpSharp)
m (minor formatting)
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]]'''
+
{{FilterCat4|External_filters|Plugin_functions|Adjustment_filters|Sharpeners}}
== aWarpSharp ==
+
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←'''
:Special fuction that keeps compatibility with ancient scripts that use the original [[aWarpSharp]].
+
--------------------------------------------------
 
<br>
 
<br>
== Syntax and Parameters ==
+
== Description ==
:{{Template:FuncDef|aWarpSharp(float "depth", int "blurlevel", float "thresh", int "cm", int "bm", bool "show")}}
+
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>
 
<br>
::{{Par|depth|float|16.0}}
+
'''Original aWarpSharp compatibility:'''
:::Range: 0.0 - 64.0
+
: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>
::{{Par|blurlevel|int|2}}
+
 
:::Range: 1 - 4<br>
+
== [[Script variables|Syntax and Parameters]] ==
::::These are the only settings you need to tweak to achieve any effect.
+
:{{Template:FuncDef|aWarpSharp (''clip'', ''float'' "depth", ''int'' "blurlevel", ''float'' "thresh", ''int'' "cm", ''int'' "bm", ''bool'' "show")}}
::::Blurlevel consumes CPU power, but gives a big boost to the warpsharpenning.
+
 
<br>
 
<br>
::{{Par|thresh|float|0.5}}
+
::{{Par2| |clip| |}}
:::Range: 0.0 - 1.0<br>
+
:::Input clip.
::::A float value of 1.0 means 100% (max). It's the bump mapping saturation setting.
+
::::Default value is recommended for maximum quality.
+
::::If you tweak this setting, keep in mind it will enhance inequality of warping between edges.<br>
+
 
<br>
 
<br>
::{{Par|cm|int|2}}
+
::{{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>
 +
::{{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>
 +
::{{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>
 +
::{{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 35: Line 48:
 
::::* 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>
 +
== 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;'''

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.


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


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


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.


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.


[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

Personal tools