ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/color.h
(Generate patch)

Comparing ray/src/common/color.h (file contents):
Revision 2.44 by greg, Sat Dec 16 01:00:02 2023 UTC vs.
Revision 2.45 by greg, Wed Jan 17 17:36:20 2024 UTC

# Line 21 | Line 21
21   *  to tristimulus should use scolor_rgb() or scolor_cie().
22   *
23   *  A new Radiance format is provided for spectral pictures,
24 < *  and spectral colors must be converted by caller using
25 < *  convertscolor() if the sampling doesn't match.
24 > *  and spectral colors must be converted by caller if the
25 > *  sampling doesn't match.
26   */
27   #ifndef _RAD_COLOR_H_
28   #define _RAD_COLOR_H_
# Line 370 | Line 370 | extern int     compxyzWBmat(COLORMAT mat, float wht1[2],
370   extern int      compxyz2rgbWBmat(COLORMAT mat, RGBPRIMS pr);
371   extern int      comprgb2xyzWBmat(COLORMAT mat, RGBPRIMS pr);
372   extern int      comprgb2rgbWBmat(COLORMAT mat, RGBPRIMS pr1, RGBPRIMS pr2);
373 +                                        /* any uniform spectrum to working */
374 + extern void     convertscolorcol(SCOLOR rcol, const COLORV src[], int snc,
375 +                                        double swl0, double swl1);
376                                          /* most accurate spectral->tristim */
377   extern void     scolor2cie(COLOR col, SCOLOR scol, int ncs, const float wlpt[4]);
378   extern void     scolor2rgb(COLOR col, SCOLOR scol, int ncs, const float wlpt[4]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines