The official guide to swscale for confused developers.