ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ra_bmp.c
(Generate patch)

Comparing ray/src/px/ra_bmp.c (file contents):
Revision 2.14 by greg, Sun Apr 5 19:10:51 2020 UTC vs.
Revision 2.15 by greg, Tue Sep 10 20:24:42 2024 UTC

# Line 219 | Line 219 | headline(char *s, void *p)
219                          rgbinp = TM_XYZPRIM;
220                          return(0);
221                  }
222 +                if (!strcmp(fmt,SPECFMT))
223 +                        return(0);
224                  return(-1);
225          }
226          if (isprims(s)) {               /* get input primaries */
# Line 226 | Line 228 | headline(char *s, void *p)
228                  rgbinp = myinprims;
229                  return(0);
230          }
231 +        if (isncomp(s)) {
232 +                NCSAMP = ncompval(s);
233 +                return(0);
234 +        }
235 +        if (iswlsplit(s)) {
236 +                wlsplitval(WLPART, s);
237 +                return(0);
238 +        }
239                                          /* should I grok colcorr also? */
240          return(0);
241   }
# Line 269 | Line 279 | rad2bmp(FILE *rfp, BMPWriter *bwr, int inv, RGBPRIMP m
279          }
280                                                  /* convert each scanline */
281          for ( ; y != yend; y += ystp) {
282 <                if (freadcolrs(scanin, bwr->hdr->width, rfp) < 0)
282 >                if (fread2colrs(scanin, bwr->hdr->width, rfp, NCSAMP, WLPART) < 0)
283                          quiterr("error reading Radiance picture");
284                  if (usexfm)
285                          for (x = bwr->hdr->width; x--; ) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines