/*
 * image_resampling.h
 *
 */

#ifndef IMAGE_RESAMPLING_H_
#define IMAGE_RESAMPLING_H_

#include <stdint.h>

typedef uint16_t  image_resampling_src_type_t;

void image_resampling(
		unsigned char* dst, int dx, int dy, int stride,  //dest[stride*dy], dx<0stride -> valid pixels

		int cx, int cy,	float rotation, float zoom,		//[cx,cy]: src center

		unsigned int bpp, const image_resampling_src_type_t* src, int sx, int sy, int ss);

void image_simple_resampling_16to8(
		unsigned char* dst, int dx, int dy, int stride,  //dest[stride*dy], dx<0stride -> valid pixels
		uint16_t* src, int sx, int sy, int ss);


#endif /* IMAGE_RESAMPLING_H_ */
