Compare commits
2 Commits
8b185f02e2
...
c3f5419745
Author | SHA1 | Date | |
---|---|---|---|
c3f5419745 | |||
9b18958ee8 |
@ -2,7 +2,7 @@
|
||||
* floatimg.h
|
||||
*/
|
||||
|
||||
#define FIMG_VERSION 72
|
||||
#define FIMG_VERSION 73
|
||||
|
||||
/*
|
||||
* in memory descriptor
|
||||
|
@ -14,10 +14,13 @@ int fimg_pnm_infos(char *);
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int foo;
|
||||
char *infile = "foo.pnm";
|
||||
|
||||
pnm_init(&argc, argv);
|
||||
|
||||
foo = fimg_pnm_infos("foo.pnm");
|
||||
if (2 == argc) infile = argv[1];
|
||||
|
||||
foo = fimg_pnm_infos(infile);
|
||||
fprintf(stderr, "got %d\n", foo);
|
||||
|
||||
return 0;
|
||||
|
@ -165,7 +165,7 @@ fprintf(fp, "%s\n%d %d\n", code, head->width, head->height);
|
||||
|
||||
maximum = fimg_get_maxvalue(head);
|
||||
fprintf(fp, "# maxval %15f\n", maximum);
|
||||
fk = maximum / 65536.0;
|
||||
fk = maximum / 65535.0;
|
||||
fprintf(fp, "# divisor %15f\n", fk);
|
||||
fprintf(fp, "65535\n");
|
||||
fflush(fp);
|
||||
|
Loading…
Reference in New Issue
Block a user