Changeset 24220
- Timestamp:
- May 18, 2009, 7:23:21 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/jpeg/psImageJpeg.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/jpeg/psImageJpeg.c
r23486 r24220 202 202 if (isfinite(row[i])) { 203 203 pixel = PS_JPEG_SCALEVALUE(row[i],zero,scale); 204 outPix[0] = Rpix[pixel]; 205 outPix[1] = Gpix[pixel]; 206 outPix[2] = Bpix[pixel]; 204 207 } 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 } 210 213 } 211 214 jpeg_write_scanlines(&cinfo, jpegLineList, 1);
Note:
See TracChangeset
for help on using the changeset viewer.
