OLD | NEW |
1 /* | 1 /* |
2 * iccprofile.c | 2 * iccprofile.c |
3 * | 3 * |
| 4 * Copyright (C) 1991-1998, Thomas G. Lane. |
| 5 * This file is part of the Independent JPEG Group's software. |
| 6 * For conditions of distribution and use, see the accompanying README file. |
| 7 * |
4 * This file provides code to read and write International Color Consortium | 8 * This file provides code to read and write International Color Consortium |
5 * (ICC) device profiles embedded in JFIF JPEG image files. The ICC has | 9 * (ICC) device profiles embedded in JFIF JPEG image files. The ICC has |
6 * defined a standard format for including such data in JPEG "APP2" markers. | 10 * defined a standard format for including such data in JPEG "APP2" markers. |
7 * The code given here does not know anything about the internal structure | 11 * The code given here does not know anything about the internal structure |
8 * of the ICC profile data; it just knows how to put the profile data into | 12 * of the ICC profile data; it just knows how to put the profile data into |
9 * a JPEG file being written, or get it back out when reading. | 13 * a JPEG file being written, or get it back out when reading. |
10 * | 14 * |
11 * This code depends on new features added to the IJG JPEG library as of | 15 * This code depends on new features added to the IJG JPEG library as of |
12 * IJG release 6b; it will not compile or work with older IJG versions. | 16 * IJG release 6b; it will not compile or work with older IJG versions. |
13 * | 17 * |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 *dst_ptr++ = *src_ptr++; | 243 *dst_ptr++ = *src_ptr++; |
240 } | 244 } |
241 } | 245 } |
242 } | 246 } |
243 | 247 |
244 *icc_data_ptr = icc_data; | 248 *icc_data_ptr = icc_data; |
245 *icc_data_len = total_length; | 249 *icc_data_len = total_length; |
246 | 250 |
247 return TRUE; | 251 return TRUE; |
248 } | 252 } |
OLD | NEW |