#ifndef __IMG_WARP__
#define __IMG_WARP__

/* a general function intended to handle any type of
 * image transformation definable by a dst_to_src 2d resampling
 * function. very special care is taken to properly handle
 * various degrees of subpixel interpolation and various levels of 
 * macro pixel antialiasing where required.
 */
void img_resample(double *src,
	          int src_stride, int src_vdim, int src_hdim,
	      
	          int interp_order, /* 0, 1, 3 */
	          int sample_level, /* -1, 0, 1, 8 */
	      
	          double *dst,
	          int dst_stride, int dst_vdim, int dst_hdim,
		  double nan_for_background_grey_level,
                  int output_scaling
		 );

#endif


