xref: /trunk/main/icc/README (revision a9a1af32de653d672be5748314cb737e5bdb7d40)
1Date: 2008-01-11
2
3This project is used to generate the ICC color
4profile needed in module vcl in order to export
5to PDF/A-1a.
6It's composed of a small application, which lurks in:
7
8icc/source/create_sRGB_profile
9
10That application links to a support library
11(icc/download/SampleICC-1.6.11), build at OOo
12build time.
13Finally, the application is run at OOo build time to
14generate the only file delivered to solver:
15sRGB-IEC61966-2.1.hxx.
16
17If you need to change the data into the ICC profile,
18please change the create_sRGB_profile.
19
20The library was downloaded from:
21http://sampleicc.sourceforge.net
22on 2007-08-23.
23
24For information on ICC profiles, you may want to visit:
25http://www.color.org
26
27Notes for porters
28=================
29the endianness and other platform specific configuration
30are in:
31
32<build>/misc/build/SampleICC-1.6.11/IccProfLib/IccProfLibConf.h
33
34The patch:
35SampleICC-1.6.11.patch performs the following modifications:
36- Replaces platform-based endianness detection in IccProfLibConf.h
37  with SAL-based detection (osl/endian.h _LITTLE_ENDIAN/_BIG_ENDIAN)
38- Replaces stdint.h types (uint32_t, int32_t) with SAL types
39  (sal_uInt32, sal_Int32, etc.)
40- Replaces #include <memory.h> with #include <memory> (C++ compatibility)
41- Adds missing #include <stdlib.h> and <string.h> to IccCmm.cpp
42- Normalizes \\r\\n to \\n in string literals across library source
43- Preserves ICC_ENUM_CONVENIENCE define (native in 1.6.11, provides
44  in-enum max values for type-safe case labels with Clang 16+)
45- Fixes const-correctness in IccUtil.cpp: FromWString() assigns
46  buf.c_str() (const) to a const pointer; ToWString() uses mutable
47  &buf[0] instead of c_str() and guards with if(buf.size())
48 - Fixes typo in ToWString(): strStr -> srcStr
49 - Fixes include filename casing in Vetters.cpp: "Vetters.h" -> "vetters.h"
50   (filesystem case-sensitivity on FreeBSD/macOS/Linux)
51
52Note: The older 1.3.2 patches for format-security warnings and Win64
53support are no longer needed as these are already fixed in 1.6.11.
54
55beppec56@openoffice.org
56
57