| 40 |
|
}; |
| 41 |
|
|
| 42 |
|
#ifdef NTSC |
| 43 |
< |
static float xyz2rgbmat[3][3] = { /* XYZ to RGB (NTSC */ |
| 44 |
< |
1.73, -.48, -.26, |
| 45 |
< |
-.81, 1.65, -.02, |
| 46 |
< |
.08, -.17, 1.28, |
| 43 |
> |
static float xyz2rgbmat[3][3] = { /* XYZ to RGB (NTSC) */ |
| 44 |
> |
{1.73, -.48, -.26}, |
| 45 |
> |
{-.81, 1.65, -.02}, |
| 46 |
> |
{.08, -.17, 1.28} |
| 47 |
|
}; |
| 48 |
|
#else |
| 49 |
|
static float xyz2rgbmat[3][3] = { /* XYZ to RGB (color monitor) */ |
| 50 |
< |
2.739, -1.145, -.424, |
| 51 |
< |
-1.119, 2.029, .033, |
| 52 |
< |
.138, -.333, 1.105, |
| 50 |
> |
{2.739, -1.145, -.424}, |
| 51 |
> |
{-1.119, 2.029, .033}, |
| 52 |
> |
{.138, -.333, 1.105} |
| 53 |
|
}; |
| 54 |
|
#endif |
| 55 |
|
|
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
|
| 103 |
< |
cie_rgb(rgbcolor, ciecolor) /* convert CIE to RGB (NTSC) */ |
| 103 |
> |
cie_rgb(rgbcolor, ciecolor) /* convert CIE to RGB */ |
| 104 |
|
register COLOR rgbcolor, ciecolor; |
| 105 |
|
{ |
| 106 |
|
register int i; |