Avisynth EdgeLevel
Jump to navigation
Jump to search
EdgeLevel raises or lowers the contrast around edges. Positive values look like sharpening, negative values like smoothing.
Filtering → Avisynth → Sharpen

What it does
The filter finds edges and changes the difference between the pixels on both sides. Differences below the Threshold are ignored, so noise is not amplified. Black correction and White correction darken or brighten the outlines of edges, which is mostly useful for anime.
Requirements
Windows only, CPU only. The shipped plugin works on 8-bit data only.
Settings
| Control | Parameter | Range | Hybrid default | Meaning |
|---|---|---|---|---|
| Strength | strength | −31–31 | 10 | Positive values sharpen, negative values smooth. |
| Threshold | threshold | 0–255 | 16 | Edge differences below this value are left alone. |
| Black correction | bc | 0–31 | 0 | Darkens black edges. |
| White correction | wc | 0–31 | 0 | Brightens white edges. |
| Threads | threads | 0–32 | 0 | Number of threads; 0 = automatic (number of logical cores). |
Example
Default settings on a 10-bit YUV 4:2:0 source. EdgeLevel needs 8-bit data, so Hybrid converts to 8 bit and back:
# Converting from 10 to 8bit for EdgeLevel ConvertBits(8) EdgeLevel() # Converting from 8 to 10bit for encoder ConvertBits(10)
How Hybrid calls it
- Hybrid loads edgelevel.dll and calls
EdgeLevel(strength, threshold, bc, wc, threads). Each argument is only written when it differs from the plugin default (10 / 16 / 0 / 0 / 0), so default settings give a bareEdgeLevel(). - The plugin needs 8-bit YV12 or YUY2; other formats are converted first. It is not offered for interlaced material.
- EdgeLevel also offers the common options and can be added to the filter queue several times.
Background
- The plugin is rigaya's AviSynth port of edgelevelMT by Garakuta House.
- Newer versions of the plugin add high bit depth support and a SIMD selection; the build shipped with Hybrid does not offer these.
Sources
- edgelevel_avisynth on GitHub
- Hybrid's tooltips
- The AviSynth+ documentation does not cover EdgeLevel.