May be for 8-bit only, but did you see this,
Quote:
Maybe use (where masktools 2 used already)
Black=source.mt_lut("0")
White=black.mt_Invert() # OK for HBD, eg 16 bit Y becomes $FFFF, not $FF00 (FULL WHITE required for Mt_merge mask).
|
And its only really done the once, not at every frame so speed hardly matters at all.