100 fread(&
head.rla_head.gamma, 16, 1,
fp);
101 fread(&
head.rla_head.red_pri, 24, 1,
fp);
102 fread(&
head.rla_head.green_pri, 24, 1,
fp);
103 fread(&
head.rla_head.blue_pri, 24, 1,
fp);
104 fread(&
head.rla_head.white_pt, 24, 1,
fp);
106 fread(&
head.rla_head.name, 128, 1,
fp);
107 fread(&
head.rla_head.desc, 128, 1,
fp);
108 fread(&
head.rla_head.program, 64, 1,
fp);
109 fread(&
head.rla_head.machine, 32, 1,
fp);
110 fread(&
head.rla_head.user, 32, 1,
fp);
111 fread(&
head.rla_head.date, 20, 1,
fp);
113 fread(&
head.rlb_head.aspect, 24, 1,
fp);
114 fread(&
head.rlb_head.aspect_ratio, 8, 1,
fp);
115 fread(&
head.rlb_head.chan, 32, 1,
fp);
126 fread(&
head.rlb_head.space, 100, 1,
fp);
129 fread(&
head.rla_head.aspect, 32, 1,
fp);
130 fread(&
head.rla_head.chan, 32, 1,
fp);
131 fread(&
head.rla_head.space, 128, 1,
fp);
134 if (fread(&
head, 740, 1,
fp) != 1) {
135 fprintf(stderr,
"Error reading Wavefront file header!\n");
140 head.rla_head.active_window.left+1;
142 head.rla_head.active_window.bottom+1;
143 *
width =
head.rla_head.window.right-
head.rla_head.window.left+1;
147 VPRINTF(stderr,
"Number of channels: %d\n",
head.rla_head.num_chan);
148 VPRINTF(stderr,
"Number of mattes: %d\n",
head.rla_head.num_matte);
149 VPRINTF(stderr,
"Image gamma: %s\n",
head.rla_head.gamma);
150 VPRINTF(stderr,
"Original filename: %s\n",
head.rla_head.name);
151 VPRINTF(stderr,
"Description: %s\n",
head.rla_head.desc);
152 VPRINTF(stderr,
"Machine: %s\n",
head.rla_head.machine);
156 VPRINTF(stderr,
"Aspect: %s\n",
head.rlb_head.aspect);
157 VPRINTF(stderr,
"Aspect ratio: %s\n",
head.rlb_head.aspect_ratio);
160 VPRINTF(stderr,
"Aspect: %s\n",
head.rla_head.aspect);
161 VPRINTF(stderr,
"Aspect ratio: %s\n",
"-unused-");
163 VPRINTF(stderr,
"Channel color space %s\n",
head.rla_head.chan);
165 VPRINTF(stderr,
"Interlaced? %s\n",
head.rlb_head.filter_type);
167 VPRINTF(stderr,
"Interlaced? %s\n",
"-unused-");
169 VPRINTF(stderr,
"Converting matte channel only...\n");
#define LONGREAD(var, fp)
#define SHORTREAD(var, fp)