2019-06-30 08:50:03 +11:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
2019-08-07 20:55:29 +11:00
|
|
|
#include <string.h>
|
2019-06-30 08:50:03 +11:00
|
|
|
|
|
|
|
#include "../floatimg.h"
|
|
|
|
|
|
|
|
int verbosity;
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
int foo;
|
|
|
|
FloatImg fimg;
|
2019-07-08 15:28:04 +11:00
|
|
|
int datas[3];
|
2019-06-30 08:50:03 +11:00
|
|
|
|
|
|
|
verbosity = 1;
|
|
|
|
|
2019-08-07 20:55:29 +11:00
|
|
|
fimg_print_version(0);
|
|
|
|
|
2019-07-08 15:28:04 +11:00
|
|
|
foo = fimg_create(&fimg, 640, 480, 3);
|
2019-08-07 20:55:29 +11:00
|
|
|
printf("retour fimg_create ---> %d\n", foo);
|
2019-06-30 08:50:03 +11:00
|
|
|
|
|
|
|
fimg_printhead(&fimg);
|
2019-08-07 21:15:28 +11:00
|
|
|
fimg_describe(&fimg, "vroum");
|
2019-06-30 08:50:03 +11:00
|
|
|
|
2019-07-08 15:28:04 +11:00
|
|
|
// fimg_save_as_pnm(&fimg, "foo.pnm", 0);
|
|
|
|
foo = fimg_dump_to_file(&fimg, "foo.fimg", 0);
|
|
|
|
|
|
|
|
foo = fimg_fileinfos("foo.fimg", datas);
|
2019-06-30 08:50:03 +11:00
|
|
|
|
|
|
|
return 0;
|
2019-07-08 15:28:04 +11:00
|
|
|
}
|