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

Comparing ray/src/px/pvalue.c (file contents):
Revision 2.21 by schorsch, Thu Jun 26 00:58:10 2003 UTC vs.
Revision 2.22 by schorsch, Mon Jul 21 22:30:19 2003 UTC

# Line 213 | Line 213 | unkopt:
213                  else
214                          break;
215                                          /* recognize special formats */
216 <        if (dataonly && format == 'b')
216 >        if (dataonly && format == 'b') {
217                  if (putprim == ALL)
218                          fmtid = "24-bit_rgb";
219                  else
220                          fmtid = "8-bit_grey";
221 <        if (dataonly && format == 'w')
221 >        }
222 >        if (dataonly && format == 'w') {
223                  if (putprim == ALL)
224                          fmtid = "48-bit_rgb";
225                  else
226                          fmtid = "16-bit_grey";
227 +        }
228                                          /* assign reverse ordering */
229          rord[ord[0]] = 0;
230          rord[ord[1]] = 1;
# Line 421 | Line 423 | pixtoval()                             /* convert picture to values */
423                                  quit(1);
424                          }
425                          for (x = 0; x < scanlen(&picres); x++) {
426 <                                if (uniq)
426 >                                if (uniq) {
427                                          if (    colval(scanln[x],RED) ==
428                                                          colval(lastc,RED) &&
429                                                  colval(scanln[x],GRN) ==
# Line 431 | Line 433 | pixtoval()                             /* convert picture to values */
433                                                  continue;
434                                          else
435                                                  copycolor(lastc, scanln[x]);
436 +                                }
437                                  if (doexposure)
438                                          multcolor(scanln[x], exposure);
439                                  if (dogamma)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines