libcaesium/demo/main.c

14 lines
266 B
C
Raw Normal View History

2016-11-14 18:56:24 +01:00
#include <stdio.h>
2016-11-04 11:00:04 +01:00
#include "caesium.h"
2016-11-14 18:56:24 +01:00
int main(int argc, char *argv[])
2016-11-04 11:00:04 +01:00
{
2016-11-14 18:56:24 +01:00
if (argc != 3) {
fprintf(stderr, "Wrong arguments.\nExiting.\n");
return -1;
}
2016-11-13 14:43:54 +01:00
cs_image_pars options = initialize_parameters();
2016-11-14 18:56:24 +01:00
cs_compress(argv[1], argv[2], &options);
2016-11-04 11:00:04 +01:00
return 0;
}