#include <stdio.h>
#include "tiff.c"

char buffer[15000000];
char line[7000];
int width, length ;

int main (int argc,char** argv) {

	tiff_read (&width, &length, argv[1], buffer); 

	tiff_hoswap (width, length, buffer, line);
	tiff_vertswap (width, length, buffer, line);
	//tiff_hoswap (width, length, buffer, line);

	tiff_write (width, length, "swapped", buffer);
}

