I finally overcame my laziness.

Nearest neighbor as the fast algorithm, bilinear interpolation as the
high quality algorithm.