Skip to content

Beatrice-Raws/VapourSynth-TColorMask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TColorMask

VapourSynth port of tp7's Avisynth plugin. Great solution if you need to build some masks on color values. Only 8 bit clips are allowed at this time.

Usage

All parameters (except colors) are set to their default values.

core.tcm.TColorMask(clip, ['$FFFFFF', '$000000', '$808080'], tolerance=10, bt601=False, gray=False, lutthr=9)
  • colors - array of colors. Required.
  • tolerance - pixel value will pass if its absolute difference with color is less than tolerance (luma) or half the tolerance (chroma).
  • bt601 - use bt601 matrix for conversion of colors.
  • gray - set chroma of output clip to 128. Chroma will contain garbage if False.
  • lutthr - if specified more than lutthr colors, lut will be used instead of direct SIMD computations.

Compilation

meson build
ninja -C build

License

This project is licensed under the MIT license.

About

A simple color masking plugin for VapourSynth

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 96.1%
  • Meson 3.9%