http://avisynth.nl/index.php/Levels
Quote:
For adjusting brightness or contrast it is better to use Tweak or ColorYUV, because Levels also changes the chroma of the clip.
|
Also why just don't use faster Masktools that can make this code 3 times smaller, faster, more intuitive and that work without color conversion?