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.9 by greg, Thu Sep 23 18:00:54 2004 UTC vs.
Revision 2.11 by greg, Fri May 20 02:06:39 2011 UTC

# Line 160 | Line 160 | main(int argc, char *argv[])
160                  if (rgbp == NULL) {
161                          hdr = BMPmappedHeader(scanlen(&rs),
162                                                  numscans(&rs), 0, 256);
163 +                        /*
164                          if (outfile != NULL)
165                                  hdr->compr = BI_RLE8;
166 +                        */
167                  } else
168                          hdr = BMPtruecolorHeader(scanlen(&rs),
169                                                  numscans(&rs), 0);
# Line 350 | Line 352 | tmap2bmp(char *fnin, char *fnout, char *expec, RGBPRIM
352          BMPWriter       *wtr;
353          FILE            *fp;
354          int             xr, yr;
355 <        BYTE            *pa;
355 >        uby8            *pa;
356          int             i;
357                                          /* check tone-mapping spec */
358          i = strlen(expec);
# Line 395 | Line 397 | tmap2bmp(char *fnin, char *fnout, char *expec, RGBPRIM
397                  quiterr("cannot allocate writer structure");
398                                          /* write to BMP file */
399          while (wtr->yscan < yr) {
400 <                BYTE    *scn = pa + xr*((tmflags & TM_F_BW) ? 1 : 3)*
400 >                uby8    *scn = pa + xr*((tmflags & TM_F_BW) ? 1 : 3)*
401                                                  (yr-1 - wtr->yscan);
402                  if (tmflags & TM_F_BW)
403                          memcpy((void *)wtr->scanline, (void *)scn, xr);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines