FloatImg/lib/t.c

32 lines
473 B
C
Raw Normal View History

2019-06-30 08:50:03 +11: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 15:28:04 +11:00
int datas[3];
2019-06-30 08:50:03 +11:00
verbosity = 1;
2019-07-08 15:28:04 +11:00
foo = fimg_create(&fimg, 640, 480, 3);
2019-06-30 08:50:03 +11:00
2019-07-08 15:28:04 +11:00
printf("retour du truc ---> %d\n", foo);
2019-06-30 08:50:03 +11:00
fimg_printhead(&fimg);
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
}