LoadPlugin("asharp.dll") # because Avisynth 2.5 doesn't support Autoloading yet
To do simple unsharp masking with a strength of 2x :
Asharp(2,0)
To try some adaptive sharpenning :
Asharp(2, 4)
Suggestion for divx anime decoding :
Asharp(2. 5, 4.5, 0.25, hqbf=true)
asharp
(float "T", float "D", float "B", bool "hqbf")T : unsharp masking threshold. 0 will do nothing. (value clamped to [nothing=0..32])
T = 1 is like 32 with ffdsow/Vdub unsharp mask filter, it'll enhance contrast 1x. Default is T = 2.
D : adaptive sharpenning strength. (value clamped to [disabled=0..16])
set to 0 to disable.
If D > 0, adaptive thresholding is enabled.
The threshold is adapted for each pixel (bigger for edges).
If adaptive sharpenning is enabled, T acts like a maximum.
Default is D = 4.
B : block adaptive sharpenning. (value clamped to [disabled=0..4])
Set to a negative value to disable.
If B >= 0, block adaptive sharpenning is enabled.
It acts very simply, by lowering the threshold around DCT-blocks edges.
If you use it, avoid any non mod8 cropping between the decoder and asharp.
(it works only wit adaptive sharpenning, when D > 0)
Default is B = -1 (disabled)
hqbf : high quality block filtering. (aka block based adaptive thresholding.)
It was painfull to implement in SIMD, but i love it.
Try with and without on a blocky video, and you'll understand why ^^
It works only with adaptive thresholding.
Default is false (disabled)
$Date: 2004/08/13 21:57:25 $