adding some magic to the file format

This commit is contained in:
phyto
2019-07-08 06:28:04 +02:00
parent b8d86da9a0
commit ecf952d881
3 changed files with 55 additions and 33 deletions

12
lib/t.c
View File

@@ -12,16 +12,20 @@ int main(int argc, char *argv[])
{
int foo;
FloatImg fimg;
int datas[3];
verbosity = 1;
foo = fimg_load_from_pnm("/tmp/00000.ppm", &fimg, 0);
foo = fimg_create(&fimg, 640, 480, 3);
printf("retour du truc %d\n", foo);
printf("retour du truc ---> %d\n", foo);
fimg_printhead(&fimg);
fimg_save_as_pnm(&fimg, "foo.pnm", 0);
// fimg_save_as_pnm(&fimg, "foo.pnm", 0);
foo = fimg_dump_to_file(&fimg, "foo.fimg", 0);
foo = fimg_fileinfos("foo.fimg", datas);
return 0;
}
}