(Softfilters) Prevent code duplication in scale2x.c