29 |
* All rights reserved. |
* All rights reserved. |
30 |
*. |
*. |
31 |
* |
* |
32 |
* image type conversions |
* image type conversions |
33 |
* |
* |
34 |
*/ |
*/ |
35 |
|
|
42 |
|
|
43 |
|
|
44 |
/*********************************************************************** |
/*********************************************************************** |
45 |
* convert image types |
* convert image types |
46 |
***********************************************************************/ |
***********************************************************************/ |
47 |
|
|
48 |
/*********************************************************************** |
/*********************************************************************** |
319 |
for (ras = mat[0], curr = tmp[0], n = h * w; --n >= 0; ras++, curr++) |
for (ras = mat[0], curr = tmp[0], n = h * w; --n >= 0; ras++, curr++) |
320 |
*curr = lut[*ras]; |
*curr = lut[*ras]; |
321 |
|
|
322 |
/* |
/* |
323 |
* because we have the raster in a consecutive array, we got the edge |
* because we have the raster in a consecutive array, we got the edge |
324 |
* errors right for free |
* errors right for free |
325 |
*/ |
*/ |