Avisynth EdgeLevel

From wiki.selur.net
Revision as of 19:49, 21 November 2026 by Selur (talk | contribs) (Avisynth filter documentation (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

EdgeLevel controls in Hybrid
EdgeLevel controls in Hybrid

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 bare EdgeLevel().
  • 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