You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
506 B

  1. #include "config.h"
  2. #include "common.h"
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6. #include <pipi.h>
  7. int main(int argc, char *argv[])
  8. {
  9. char *srcname = NULL, *dstname = NULL;
  10. pipi_image_t *img;
  11. if(argc < 3)
  12. {
  13. fprintf(stderr, "%s: too few arguments\n", argv[0]);
  14. return EXIT_FAILURE;
  15. }
  16. srcname = argv[1];
  17. dstname = argv[2];
  18. img = pipi_load(srcname);
  19. pipi_test(img);
  20. pipi_save(img, dstname);
  21. pipi_free(img);
  22. return 0;
  23. }