Compare commits
No commits in common. "c3f5419745d099de0cc4e770fc7850fde4b6aa2d" and "8b185f02e23a2078a4c3c3aa67a61f09337c23db" have entirely different histories.
c3f5419745
...
8b185f02e2
@ -2,7 +2,7 @@
|
|||||||
* floatimg.h
|
* floatimg.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define FIMG_VERSION 73
|
#define FIMG_VERSION 72
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* in memory descriptor
|
* in memory descriptor
|
||||||
|
@ -16,13 +16,13 @@ extern int verbosity;
|
|||||||
static void print_struct_pam(struct pam *ppam, char *txt)
|
static void print_struct_pam(struct pam *ppam, char *txt)
|
||||||
{
|
{
|
||||||
|
|
||||||
printf(" size %d\n", ppam->size);
|
printf("size %d\n", ppam->size);
|
||||||
|
|
||||||
printf(" format %d\n", ppam->format);
|
printf("format %d\n", ppam->format);
|
||||||
printf(" plainformat %d\n", ppam->plainformat);
|
printf("plainformat %d\n", ppam->plainformat);
|
||||||
printf(" width & height %d %d\n", ppam->width, ppam->height);
|
printf("width & height %d %d\n", ppam->width, ppam->height);
|
||||||
printf(" depth %d\n", ppam->depth);
|
printf("depth %d\n", ppam->depth);
|
||||||
printf(" maxval %lu\n", ppam->maxval);
|
printf("maxval %lu\n", ppam->maxval);
|
||||||
|
|
||||||
}
|
}
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
@ -14,13 +14,10 @@ int fimg_pnm_infos(char *);
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int foo;
|
int foo;
|
||||||
char *infile = "foo.pnm";
|
|
||||||
|
|
||||||
pnm_init(&argc, argv);
|
pnm_init(&argc, argv);
|
||||||
|
|
||||||
if (2 == argc) infile = argv[1];
|
foo = fimg_pnm_infos("foo.pnm");
|
||||||
|
|
||||||
foo = fimg_pnm_infos(infile);
|
|
||||||
fprintf(stderr, "got %d\n", foo);
|
fprintf(stderr, "got %d\n", foo);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -165,7 +165,7 @@ fprintf(fp, "%s\n%d %d\n", code, head->width, head->height);
|
|||||||
|
|
||||||
maximum = fimg_get_maxvalue(head);
|
maximum = fimg_get_maxvalue(head);
|
||||||
fprintf(fp, "# maxval %15f\n", maximum);
|
fprintf(fp, "# maxval %15f\n", maximum);
|
||||||
fk = maximum / 65535.0;
|
fk = maximum / 65536.0;
|
||||||
fprintf(fp, "# divisor %15f\n", fk);
|
fprintf(fp, "# divisor %15f\n", fk);
|
||||||
fprintf(fp, "65535\n");
|
fprintf(fp, "65535\n");
|
||||||
fflush(fp);
|
fflush(fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user