2019-06-29 23:50:03 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "string.h"
|
|
|
|
|
|
|
|
#include "../floatimg.h"
|
|
|
|
|
|
|
|
int verbosity;
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
int foo;
|
|
|
|
FloatImg fimg;
|
2019-07-08 06:28:04 +02:00
|
|
|
int datas[3];
|
2019-06-29 23:50:03 +02:00
|
|
|
|
|
|
|
verbosity = 1;
|
|
|
|
|
2019-07-08 06:28:04 +02:00
|
|
|
foo = fimg_create(&fimg, 640, 480, 3);
|
2019-06-29 23:50:03 +02:00
|
|
|
|
2019-07-08 06:28:04 +02:00
|
|
|
printf("retour du truc ---> %d\n", foo);
|
2019-06-29 23:50:03 +02:00
|
|
|
|
|
|
|
fimg_printhead(&fimg);
|
|
|
|
|
2019-07-08 06:28:04 +02: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-29 23:50:03 +02:00
|
|
|
|
|
|
|
return 0;
|
2019-07-08 06:28:04 +02:00
|
|
|
}
|