OLD | NEW |
1 /* $Id: tif_color.c,v 1.19 2010-12-14 02:22:42 faxguy Exp $ */ | 1 /* $Id: tif_color.c,v 1.19 2010-12-14 02:22:42 faxguy Exp $ */ |
2 | 2 |
3 /* | 3 /* |
4 * Copyright (c) 1988-1997 Sam Leffler | 4 * Copyright (c) 1988-1997 Sam Leffler |
5 * Copyright (c) 1991-1997 Silicon Graphics, Inc. | 5 * Copyright (c) 1991-1997 Silicon Graphics, Inc. |
6 * | 6 * |
7 * Permission to use, copy, modify, distribute, and sell this software and | 7 * Permission to use, copy, modify, distribute, and sell this software and |
8 * its documentation for any purpose is hereby granted without fee, provided | 8 * its documentation for any purpose is hereby granted without fee, provided |
9 * that (i) the above copyright notices and this permission notice appear in | 9 * that (i) the above copyright notices and this permission notice appear in |
10 * all copies of the software and related documentation, and (ii) the names of | 10 * all copies of the software and related documentation, and (ii) the names of |
(...skipping 17 matching lines...) Expand all Loading... |
28 * CIE L*a*b* to CIE XYZ and CIE XYZ to RGB conversion routines are taken | 28 * CIE L*a*b* to CIE XYZ and CIE XYZ to RGB conversion routines are taken |
29 * from the VIPS library (http://www.vips.ecs.soton.ac.uk) with | 29 * from the VIPS library (http://www.vips.ecs.soton.ac.uk) with |
30 * the permission of John Cupitt, the VIPS author. | 30 * the permission of John Cupitt, the VIPS author. |
31 */ | 31 */ |
32 | 32 |
33 /* | 33 /* |
34 * TIFF Library. | 34 * TIFF Library. |
35 * | 35 * |
36 * Color space conversion routines. | 36 * Color space conversion routines. |
37 */ | 37 */ |
| 38 |
38 #include "tiffiop.h" | 39 #include "tiffiop.h" |
39 #include <math.h> | 40 #include <math.h> |
40 | 41 |
41 /* | 42 /* |
42 * Convert color value from the CIE L*a*b* 1976 space to CIE XYZ. | 43 * Convert color value from the CIE L*a*b* 1976 space to CIE XYZ. |
43 */ | 44 */ |
44 void | 45 void |
45 TIFFCIELabToXYZ(TIFFCIELabToRGB *cielab, uint32 l, int32 a, int32 b, | 46 TIFFCIELabToXYZ(TIFFCIELabToRGB *cielab, uint32 l, int32 a, int32 b, |
46 float *X, float *Y, float *Z) | 47 float *X, float *Y, float *Z) |
47 { | 48 { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 #undef FIX | 278 #undef FIX |
278 | 279 |
279 /* vim: set ts=8 sts=8 sw=8 noet: */ | 280 /* vim: set ts=8 sts=8 sw=8 noet: */ |
280 /* | 281 /* |
281 * Local Variables: | 282 * Local Variables: |
282 * mode: c | 283 * mode: c |
283 * c-basic-offset: 8 | 284 * c-basic-offset: 8 |
284 * fill-column: 78 | 285 * fill-column: 78 |
285 * End: | 286 * End: |
286 */ | 287 */ |
287 | |
OLD | NEW |