| 174 |
|
|
| 175 |
|
/* Use the spectral sensitivity function to compute matrix coefficients */ |
| 176 |
|
void |
| 177 |
< |
sensrow(ROPMAT *rop, int r, double (*sf)(SCOLOR sc, int ncs, const float wlpt[4])) |
| 177 |
> |
sensrow(ROPMAT *rop, int r, double (*sf)(const SCOLOR sc, int ncs, const float wlpt[4])) |
| 178 |
|
{ |
| 179 |
|
const int nc = rop->imx.ncomp; |
| 180 |
|
int i; |
| 852 |
|
|
| 853 |
|
if (n2alloc == nall) |
| 854 |
|
return; |
| 855 |
< |
for (i = nall; i > n2alloc; i--) { |
| 855 |
> |
for (i = nall; i-- > n2alloc; ) { |
| 856 |
|
rmx_reset(&mop[i].imx); |
| 857 |
|
if (mop[i].rmp != &mop[i].imx) |
| 858 |
|
rmx_free(mop[i].rmp); |