1 | /* ************************************************************************** */
|
---|
2 | /* * For conditions of distribution and use, * */
|
---|
3 | /* * see copyright notice in libmng.h * */
|
---|
4 | /* ************************************************************************** */
|
---|
5 | /* * * */
|
---|
6 | /* * project : libmng * */
|
---|
7 | /* * file : libmng_cms.h copyright (c) 2000 G.Juyn * */
|
---|
8 | /* * version : 1.0.1 * */
|
---|
9 | /* * * */
|
---|
10 | /* * purpose : color management routines (definition) * */
|
---|
11 | /* * * */
|
---|
12 | /* * author : G.Juyn * */
|
---|
13 | /* * web : http://www.3-t.com * */
|
---|
14 | /* * email : mailto:info@3-t.com * */
|
---|
15 | /* * * */
|
---|
16 | /* * comment : Definition of color management routines * */
|
---|
17 | /* * * */
|
---|
18 | /* * changes : 0.5.1 - 05/08/2000 - G.Juyn * */
|
---|
19 | /* * - changed strict-ANSI stuff * */
|
---|
20 | /* * 0.5.1 - 05/11/2000 - G.Juyn * */
|
---|
21 | /* * - added creatememprofile * */
|
---|
22 | /* * * */
|
---|
23 | /* * 0.9.2 - 08/05/2000 - G.Juyn * */
|
---|
24 | /* * - changed file-prefixes * */
|
---|
25 | /* * * */
|
---|
26 | /* * 1.0.1 - 04/25/2001 - G.Juyn * */
|
---|
27 | /* * - moved mng_clear_cms to libmng_cms * */
|
---|
28 | /* * 1.0.1 - 05/02/2001 - G.Juyn * */
|
---|
29 | /* * - added "default" sRGB generation (Thanks Marti!) * */
|
---|
30 | /* * * */
|
---|
31 | /* ************************************************************************** */
|
---|
32 |
|
---|
33 | #if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
|
---|
34 | #pragma option -A /* force ANSI-C */
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | #ifndef _libmng_cms_h_
|
---|
38 | #define _libmng_cms_h_
|
---|
39 |
|
---|
40 | /* ************************************************************************** */
|
---|
41 |
|
---|
42 | #ifdef MNG_INCLUDE_LCMS
|
---|
43 | void mnglcms_initlibrary (void);
|
---|
44 | mng_cmsprof mnglcms_createfileprofile (mng_pchar zFilename);
|
---|
45 | mng_cmsprof mnglcms_creatememprofile (mng_uint32 iProfilesize,
|
---|
46 | mng_ptr pProfile );
|
---|
47 | mng_cmsprof mnglcms_createsrgbprofile (void);
|
---|
48 | void mnglcms_freeprofile (mng_cmsprof hProf );
|
---|
49 | void mnglcms_freetransform (mng_cmstrans hTrans );
|
---|
50 |
|
---|
51 | mng_retcode mng_clear_cms (mng_datap pData );
|
---|
52 | #endif
|
---|
53 |
|
---|
54 | /* ************************************************************************** */
|
---|
55 |
|
---|
56 | #ifdef MNG_FULL_CMS
|
---|
57 | mng_retcode init_full_cms (mng_datap pData);
|
---|
58 | mng_retcode init_full_cms_object (mng_datap pData);
|
---|
59 | mng_retcode correct_full_cms (mng_datap pData);
|
---|
60 | #endif
|
---|
61 |
|
---|
62 | #if defined(MNG_FULL_CMS) || defined(MNG_GAMMA_ONLY)
|
---|
63 | mng_retcode init_gamma_only (mng_datap pData);
|
---|
64 | mng_retcode init_gamma_only_object (mng_datap pData);
|
---|
65 | mng_retcode correct_gamma_only (mng_datap pData);
|
---|
66 | #endif
|
---|
67 |
|
---|
68 | #ifdef MNG_APP_CMS
|
---|
69 | mng_retcode init_app_cms (mng_datap pData);
|
---|
70 | mng_retcode init_app_cms_object (mng_datap pData);
|
---|
71 | mng_retcode correct_app_cms (mng_datap pData);
|
---|
72 | #endif
|
---|
73 |
|
---|
74 | /* ************************************************************************** */
|
---|
75 |
|
---|
76 | #endif /* _libmng_cms_h_ */
|
---|
77 |
|
---|
78 | /* ************************************************************************** */
|
---|
79 | /* * end of file * */
|
---|
80 | /* ************************************************************************** */
|
---|