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.10 by greg, Mon Oct 4 17:44:22 2004 UTC vs.
Revision 2.11 by greg, Fri May 20 02:06:39 2011 UTC

# Line 352 | 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 397 | 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