VapourSynth port of AddGrainC