CAS

June 29, 2026 ยท View on GitHub

Contrast Adaptive Sharpening.

Parameters

cas.CAS(vnode clip[, float sharpness=0.5, int[] planes=[0, 1, 2], int opt=0])
  • clip: Clip to process. Any format with either 8-16 bit depth integer sample type or 32 bit depth float sample type is supported.

  • sharpness: Sharpening strength.

  • planes: Specifies which planes will be processed. Any unprocessed planes will be simply copied. By default only luma plane is processed for non-RGB formats.

  • opt: Specifies which cpu optimizations to use.

    • 0 = auto detect
    • 1 = use c
    • 2 = use sse4.1
    • 3 = use avx2
    • 4 = use avx512

Installation

pip install -U vapoursynth-cas