#include "config.h" #include "common.h" #include #include #include #include int main(int argc, char *argv[]) { char *srcname = NULL, *dstname = NULL; pipi_image_t *img; if(argc < 3) { fprintf(stderr, "%s: too few arguments\n", argv[0]); return EXIT_FAILURE; } srcname = argv[1]; dstname = argv[2]; img = pipi_load(srcname); pipi_test(img); pipi_save(img, dstname); pipi_free(img); return 0; }