Avisynth CAS

From wiki.selur.net
Revision as of 19:55, 21 November 2026 by Selur (talk | contribs) (Remove required versions (via update-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

CAS (Contrast Adaptive Sharpening) is a sharpener ported from AMD's FidelityFX. It sharpens according to local contrast, so few halos appear.

Filtering → Avisynth → Sharpen

CAS controls in Hybrid
CAS controls in Hybrid

What it does

Low-contrast detail is sharpened more than detail that already has strong contrast. Edges that are already crisp are barely touched, which keeps halos and ringing low. The filter does not create new detail, and at high strength it makes grain more visible.

Requirements

Windows only, CPU only. The plugin needs the Visual C++ 2022 runtime.

Settings

Control Parameter Range / values Hybrid default Meaning
Sharpness sharpness 0–1 0.50 Amount of sharpening.
Planes (Y/U/V) y / u / v return garbage, copy plane, process plane process plane / copy plane / copy plane What happens to each plane. return garbage leaves the plane undefined, copy plane passes it through, process plane sharpens it. RGB planes are always processed.

Example

Default settings on a 10-bit YUV 4:2:0 source. CAS accepts the format directly, so Hybrid adds no conversion:

CAS()

How Hybrid calls it

  • Hybrid loads CAS.dll and calls CAS(sharpness, y, u, v). Each argument is only written when it differs from the plugin default, so default settings give a bare CAS().
  • For RGB input the plane arguments are never written.
  • CAS accepts planar YUV, grey and integer planar RGB at 8–32 bit (float RGB excluded) without conversion. Other formats, such as YUY2, packed RGB and float RGB, are converted first.
  • CAS also offers the common options and can be added to the filter queue several times.

Background

  • The AviSynth plugin is a port by Asd-g of HolyWu's VapourSynth version. It runs on AviSynth+ and AviSynth.
  • The plugin has an additional opt parameter to choose the CPU instruction set (C++, SSE2, AVX2, AVX512). Hybrid does not offer it; the plugin picks automatically.

See also: Vapoursynth CAS

Sources