avfilter/vf_lut2: implement support for different input depths