Image resizing

Hey all,

I would like to downscale an image (keeping the aspect ratio) using CUDA. Does anyone have a kernel or an SDK which has this functionality they can point me to? Surprisingly NPP is missing this.

If I was forced to implement it myself, does anyone have some pseudocode or a paper that shows an efficient algorithm I could implement?