Avisynth daa

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

daa is Didée's anti-aliasing with contra-sharpening: NNEDI3 interpolates the picture twice, the two results are averaged and a limited sharpening step restores the lost detail.

Filtering → Avisynth → Line → AntiAliasing

daa controls in Hybrid
daa controls in Hybrid

What it does

NNEDI3 bobs the clip, so each frame is rebuilt once from its top and once from its bottom lines. Averaging the two blurs the aliasing away. The difference between the averaged picture and a blurred copy is added back as sharpening, limited with Repair (mode 13) against the change to the source, so it cannot sharpen more than the averaging removed. daa helps against aliasing from poor deinterlacing or upscaling.

The filter works on the whole picture and is not meant for interlaced material.

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 ocl 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:

daa(ocl=false)

How Hybrid calls it

  • ocl is always written, so the NNEDI3-based daa is used and not another script function of the same name.
  • The daa script is loaded with masktools2, the RemoveGrain helpers and either nnedi3 or NNEDI3CL.
  • Hybrid adds conversions when the clip format is not accepted by the script.
  • daa also offers the common options and can be added to the filter queue several times.

Background

  • The script comes from Didée's posts on Doom9. The sharpening difference is taken against RemoveGrain mode 11 (mode 20 for pictures wider than 1100 pixels).
  • NNEDI3 runs with its default settings. The VapourSynth version offers the NNEDI3 parameters; here only OpenCL and the device can be chosen.
  • On a discrete GPU NNEDI3CL is about 1.4–1.6 times as fast as the CPU version with prefetching; on an integrated GPU it is usually slower.

See also: Vapoursynth DAA

Sources

  • Didée's daa posts on Doom9
  • Hybrid's tooltips
  • The AviSynth+ documentation does not cover daa.