IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2009, 7:23:21 PM (17 years ago)
Author:
eugene
Message:

set distinct NAN value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/jpeg/psImageJpeg.c

    r23486 r24220  
    202202            if (isfinite(row[i])) {
    203203                pixel = PS_JPEG_SCALEVALUE(row[i],zero,scale);
     204                outPix[0] = Rpix[pixel];
     205                outPix[1] = Gpix[pixel];
     206                outPix[2] = Bpix[pixel];
    204207            } else {
    205                 pixel = 0;
    206             }
    207             outPix[0] = Rpix[pixel];
    208             outPix[1] = Gpix[pixel];
    209             outPix[2] = Bpix[pixel];
     208                // XXX NAN value should be set per-color map
     209                outPix[0] = 0xff;
     210                outPix[1] = 0x00;
     211                outPix[2] = 0xff;
     212            }
    210213        }
    211214        jpeg_write_scanlines(&cinfo, jpegLineList, 1);
Note: See TracChangeset for help on using the changeset viewer.