AWarpsharp2/aWarpSharp: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
mNo edit summary |
|||
| 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> | ||
::{{ | ::{{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> | ||
::{{ | ::{{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}} | ||
:::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). | ||
:::::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> | ||
::{{ | ::{{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 | ||
<br> | <br> | ||
::{{ | ::{{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> | ||
::{{ | ::{{Par2|show|bool|false}} | ||
::: | :::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]] ←''' | |||
Revision as of 16: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
- Mapping from original aWarpSharp parameters:
- Original aWarpSharp compatibility:
- 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 ←