avfilter/vf_derain.c: put all the calculation in model file.