AWarpsharp2/aWarpSharp
From Avisynth wiki
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
- Mapping from original aWarpSharp parameters:
- Original aWarpSharp compatibility:
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 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
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 ←