Avisynth nediaa

From wiki.selur.net
Revision as of 23:08, 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

nediaa is a small anti-aliasing step based on NNEDI3: it re-interpolates the picture along one direction and scales it back.

Filtering → Avisynth → Line → AntiAliasing

nediaa controls in Hybrid
nediaa controls in Hybrid

What it does

nediaa turns the picture by 90°, doubles its height with NNEDI3, turns it back and scales it to the original size with a bicubic resize. NNEDI3 draws the new lines along the edges, so stair-steps lose their jaggedness. Only one direction is treated, which keeps the filter fast. For two passes with a limiter see nediaa x2.

Requirements

OpenCL is optional. With OpenCL on, NNEDI3CL runs on the GPU; this needs an OpenCL-capable GPU and AviSynth+ r3688 or newer. The check box is disabled when no such GPU is found.

Settings

Control Parameter Range Hybrid default Meaning
OpenCL – on/off off Use NNEDI3CL on the GPU instead of nnedi3 on the CPU. The result is close to the CPU result, but not bit-identical.
OpenCL device device 0–15 0 GPU to use. 0 is the default device; devices are counted over all OpenCL platforms. Only written when greater than 0.

Example

Default settings on a 10-bit YUV 4:2:0 source:

Turnleft().nnedi3(field=1,nsize=4,dh=true).TurnRight().BicubicResize(width,height,0,0,0.5,0)

How Hybrid calls it

  • The filter is written inline, no script file is needed. With OpenCL on, nnedi3 is replaced by NNEDI3CL (with device= when a device other than 0 is chosen).
  • The plugin used is nnedi3.dll or NNEDI3CL.dll; NNEDI3CL needs nnedi3_weights.bin next to the DLL.
  • nediaa is not meant for interlaced material.
  • nediaa also offers the common options and can be added to the filter queue several times.

Background

  • The VapourSynth version, Vapoursynth NNEDI3AA, doubles in both directions and scales back with Spline36 and offers NNEDI3 parameters; the AviSynth version works in one direction with fixed NNEDI3 settings.

Sources

  • nnedi3 by tritical (Doom9)
  • Hybrid's tooltips
  • The AviSynth+ documentation does not cover nediaa.