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

Comparing ray/src/px/ra_pr24.c (file contents):
Revision 1.3 by greg, Sat Oct 20 11:41:29 1990 UTC vs.
Revision 1.4 by greg, Wed Jan 9 15:33:20 1991 UTC

# Line 129 | Line 129 | pr2ra()                        /* convert 24-bit scanlines to Radiance pict
129                                                  /* convert image */
130          for (y = ymax-1; y >= 0; y--) {
131                  for (x = 0; x < xmax; x++) {
132                        scanout[x][RED] = getc(stdin);
133                        scanout[x][GRN] = getc(stdin);
132                          scanout[x][BLU] = getc(stdin);
133 +                        scanout[x][GRN] = getc(stdin);
134 +                        scanout[x][RED] = getc(stdin);
135                  }
136                  if (feof(stdin) || ferror(stdin))
137                          quiterr("error reading rasterfile");
# Line 159 | Line 159 | ra2pr()                        /* convert Radiance scanlines to 24-bit rast
159                          quiterr("error reading Radiance picture");
160                  colrs_gambs(scanin, xmax);
161                  for (x = 0; x < xmax; x++) {
162                        putc(scanin[x][RED], stdout);
163                        putc(scanin[x][GRN], stdout);
162                          putc(scanin[x][BLU], stdout);
163 +                        putc(scanin[x][GRN], stdout);
164 +                        putc(scanin[x][RED], stdout);
165                  }
166                  if (ferror(stdout))
167                          quiterr("error writing rasterfile");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines