
#define ROW_TAG 1001
#define XFORM_MSTR 0

struct coord {
	int x;
	int y;
};

typedef ?? bitmap; //fixme

typedef void (*px_transform)(struct coord in, struct coord *out, void* param);

inline void pixel_move(bitmap src,struct coord srcp, bitmap dest, struct coord destp, struct coord size);

px_transform im_shift(struct coord in, struct coord *out, void* param);
px_transform im_scale(struct coord in, struct coord *out, void* param);
px_transform im_rot(struct coord in, struct coord *out, void* param);

int transform_slave(int rank, int nproc, struct coord size, px_transform xform, void* param);
int transform_master(int nproc, struct coord size, bitmap in, bitmap out);
int transform_seq(struct coord size, bitmap in, bitmap out,px_transform xform, void* param);
