Avisynth aWarpSharp2
aWarpSharp2 is the reworked warp sharpener: it builds an edge mask, blurs it and moves pixels towards the edges, so lines get thinner and crisper without halos. Compared with aWarpSharp it has a real edge threshold, a choice of blur kernel and finer chroma handling.
Filtering → Avisynth → Sharpen

What it does
An edge mask is created from the picture and cut at Thresh. It is blurred Blur times, and every pixel is then shifted along the slope of the blurred mask, towards the edge, by up to Depth units. Edges become narrower and look sharper; no bright or dark rim is added.
Strong settings thin lines (popular for anime) and can distort fine detail. A negative Depth warps the other way and softens the picture.
Typical uses:
- Make soft or upscaled line art crisper.
- Warp only the chroma planes (Chroma set to a "no luma" mode) to tighten color edges without touching the luma.
Settings
| Control | Parameter | Range | Hybrid default | Meaning |
|---|---|---|---|---|
| Thresh | thresh | 0–255 | 128 | Upper limit of the edge mask values. Lower values make the warp less aggressive. |
| Blur | blur | 0–100 | 2 | Number of blur passes over the edge mask. Fewer passes give a stronger effect, but strong artifacts with high Depth or Thresh. The chroma planes use (blur+1)/2 passes. |
| Type | type | radius 6, radius 2 | radius 6 | Blur kernel. Radius 2 needs about eight times more passes for the same effect and is about 2.5 times slower, but gives better quality. |
| Depth | depth | −128–127 | 16 | Strength of the warp. Negative values reverse it. The chroma planes use half the value. |
| Chroma | chroma | list | edge mask from the luma | How the chroma planes are processed: fill with 0x80(128) (grey output); don't care; copy chroma; edge mask from each channel; edge mask from the luma; edge mask from each channel, no luma; edge mask from the luma, no luma. The two "no luma" modes leave the luma untouched and warp only the chroma. |
Example
Default settings on a 10-bit YUV 4:2:0 source; the filter handles the format directly, so Hybrid adds no conversion:
aWarpSharp2(blur=2)
How Hybrid calls it
- Loads aWarpSharpMT.dll and calls
aWarpSharp2(thresh, blur, type, depth, chroma). Blur is always written; the other parameters only when they differ from the defaults in the table. - The filter works on grey and planar YUV 4:2:0, 4:2:2 and 4:4:4 at 8 to 16 bit integer. Other formats (RGB, float) are converted first by Hybrid.
- The filter is not treated as interlace-aware.
- aWarpSharp2 also offers the common options and can be added to the filter queue several times.
Background
- aWarpSharpMT.dll is jpsdr's multi-threaded 64-bit port of aWarpSharp 2.x (GPL-2.0). It also contains aWarp, aBlur, aSobel and the old aWarpSharp call.
- Plugin parameters Hybrid does not offer: separate chroma values (
depthC,threshC,blurC), vertical values (depthV,blurV), the chroma placementcplaceand the thread options. - The same algorithm is available for VapourSynth, see Vapoursynth aWarpSharp2.
Sources
- aWarpSharpMT on GitHub (including its aWarpSharp.txt)
- Doom9: AWarpSharp2 for VapourSynth (explains thresh, blur, type and depth)
- Hybrid's tooltips
- The AviSynth+ documentation does not cover aWarpSharp2.