AWarpSharp
From Avisynth wiki
(Difference between revisions)
m (→Syntax and Parameters) |
m (→Syntax and Parameters) |
||
Line 20: | Line 20: | ||
<br> | <br> | ||
− | == Syntax and Parameters == | + | == [[Script variables|Syntax and Parameters]] == |
− | :{{Template:FuncDef|aWarpSharp (''clip'', ''float'' "depth", ''int'' "blurlevel", ''float'' "thresh", ''int'' "cm", ''int'' "bm", '' | + | :{{Template:FuncDef|aWarpSharp (''clip'', ''float'' "depth", ''int'' "blurlevel", ''float'' "thresh", ''int'' "cm", ''int'' "bm", ''bool'' "show")}} |
<br> | <br> | ||
::{{Par2|depth|float|16.0}} | ::{{Par2|depth|float|16.0}} | ||
:::Range: 0.0 - 64.0 | :::Range: 0.0 - 64.0 | ||
− | ::::{{Template:FuncDef|depth}} | + | ::::{{Template:FuncDef|depth}} determines the amount of warping. It directly affects how thin your lines will end up. |
<br> | <br> | ||
::{{Par2|blurlevel|int|2}} | ::{{Par2|blurlevel|int|2}} | ||
:::Range: 1 - 4<br> | :::Range: 1 - 4<br> | ||
− | :::: | + | ::::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. | |
<br> | <br> | ||
::{{Par2|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) | + | ::::The bump mapping saturation setting: |
− | :::: | + | :::::A float value of 1.0 means 100% (max). |
− | ::::If you tweak this setting, keep in mind it will enhance inequality of warping between edges. | + | :::::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}} | ::{{Par2|cm|int|2}} | ||
:::Chroma mode: | :::Chroma mode: | ||
::::* 0 : disables chroma filtering | ::::* 0 : disables chroma filtering | ||
− | ::::* 1 : enables chroma warping | + | ::::* 1 : enables chroma independent warping & bump map |
− | ::::* 2 : enables chroma | + | ::::* 2 : enables chroma warping with luma bump map (recommended) |
::::* 3 : chroma -> luma | ::::* 3 : chroma -> luma | ||
::::* 4 : chroma -> chroma | ::::* 4 : chroma -> chroma | ||
+ | |||
+ | :::<span style="color:red">'''Note:'''</span> Mapping for {{Template:FuncDef|cm}}=1/2 is wrong in the included documentation. This wiki documentation has been revised and it's correct. | ||
<br> | <br> | ||
::{{Par2|bm|int|1}} | ::{{Par2|bm|int|1}} | ||
Line 55: | Line 58: | ||
::{{Par2|tweak|int|0}} | ::{{Par2|tweak|int|0}} | ||
::::* 0 : disabled | ::::* 0 : disabled | ||
− | ::::* 1 : shows an edge mask | + | ::::* 1 : shows an edge mask; useful for adjusting {{Template:FuncDef|depth}}, {{Template:FuncDef|blurlevel}}. |
<br> | <br> | ||
Revision as of 13:19, 2 March 2014
Abstract | |
---|---|
Author | Marc FD |
Version | beta 2? |
Download | aWarpSharp(Pruned).zip |
Category | Sharpeners |
License | Closed source |
Contents |
Description
- A warp sharpening filter. aWarpSharp implements high-quality original warp sharpening.
- "original" meaning the algorithm used differs on several points to other warp sharpening filters. The code is fully ISSE optimized with high accuracy.
Requirements:
- - AviSynth 2.5.8 or later
- - Progressive input only
- - Supported color formats: YV12
- - ISSE compatible CPU.
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.
- Range: 0.0 - 64.0
- float depth = 16.0
- 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.
- Range: 1 - 4
- int blurlevel = 2
- 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.
- The bump mapping saturation setting:
- Range: 0.0 - 1.0
- float thresh = 0.5
- int cm = 2
- Chroma mode:
- 0 : disables chroma filtering
- 1 : enables chroma independent warping & bump map
- 2 : enables chroma warping with luma bump map (recommended)
- 3 : chroma -> luma
- 4 : chroma -> chroma
- Chroma mode:
- int cm = 2
- Note: Mapping for cm=1/2 is wrong in the included documentation. This wiki documentation has been revised and it's correct.
- int bm = 1
- Blur modes:
- 0 : hq 3-pass
- 1 : fast 3-pass
- 2 : fast 1-pass
- 3 : light blur
- Blur modes:
- int bm = 1
- int tweak = 0
- 0 : disabled
- 1 : shows an edge mask; useful for adjusting depth, blurlevel.
- int tweak = 0
Examples
aWarpSharp with all default values.
AviSource("Blah.avi") Awarpsharp(depth=16.0, blurlevel=2, thresh=0.5, cm=2, bm=1, tweak=0)
Changelog
Changes 2004-05-25: beta 2? - added "tweak" parameter - removed "show" parameter - changed defaults to "bm" and "cm" - document previously undocumented "bm" parameter
Changes 2003-02-03: beta 1 - Initial release
aWarpSharp beta 1
aWarpSharp beta 1 documentation.
External Links
- Doom9 Forum - Discussion about aWarpSharp.
Back to External Filters ←