source: trunk/src/3rdparty/libmng/libmng_cms.h@ 503

Last change on this file since 503 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 5.1 KB
Line 
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-2003 G.Juyn * */
8/* * version : 1.0.6 * */
9/* * * */
10/* * purpose : color management routines (definition) * */
11/* * * */
12/* * author : G.Juyn * */
13/* * * */
14/* * comment : Definition of color management routines * */
15/* * * */
16/* * changes : 0.5.1 - 05/08/2000 - G.Juyn * */
17/* * - changed strict-ANSI stuff * */
18/* * 0.5.1 - 05/11/2000 - G.Juyn * */
19/* * - added creatememprofile * */
20/* * * */
21/* * 0.9.2 - 08/05/2000 - G.Juyn * */
22/* * - changed file-prefixes * */
23/* * * */
24/* * 1.0.1 - 04/25/2001 - G.Juyn * */
25/* * - moved mng_clear_cms to libmng_cms * */
26/* * 1.0.1 - 05/02/2001 - G.Juyn * */
27/* * - added "default" sRGB generation (Thanks Marti!) * */
28/* * * */
29/* * 1.0.5 - 08/19/2002 - G.Juyn * */
30/* * - B597134 - libmng pollutes the linker namespace * */
31/* * 1.0.5 - 09/19/2002 - G.Juyn * */
32/* * - optimized color-correction routines * */
33/* * * */
34/* * 1.0.6 - 04/11/2003 - G.Juyn * */
35/* * - B719420 - fixed several MNG_APP_CMS problems * */
36/* * * */
37/* ************************************************************************** */
38
39#if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
40#pragma option -A /* force ANSI-C */
41#endif
42
43#ifndef _libmng_cms_h_
44#define _libmng_cms_h_
45
46/* ************************************************************************** */
47
48#ifdef MNG_INCLUDE_LCMS
49void mnglcms_initlibrary (void);
50mng_cmsprof mnglcms_createfileprofile (mng_pchar zFilename);
51mng_cmsprof mnglcms_creatememprofile (mng_uint32 iProfilesize,
52 mng_ptr pProfile );
53mng_cmsprof mnglcms_createsrgbprofile (void);
54void mnglcms_freeprofile (mng_cmsprof hProf );
55void mnglcms_freetransform (mng_cmstrans hTrans );
56
57mng_retcode mng_clear_cms (mng_datap pData );
58#endif
59
60/* ************************************************************************** */
61
62#ifdef MNG_FULL_CMS
63mng_retcode mng_init_full_cms (mng_datap pData,
64 mng_bool bGlobal,
65 mng_bool bObject,
66 mng_bool bRetrobj);
67mng_retcode mng_correct_full_cms (mng_datap pData);
68#endif
69
70#if defined(MNG_FULL_CMS) || defined(MNG_GAMMA_ONLY) || defined(MNG_APP_CMS)
71mng_retcode mng_init_gamma_only (mng_datap pData,
72 mng_bool bGlobal,
73 mng_bool bObject,
74 mng_bool bRetrobj);
75mng_retcode mng_correct_gamma_only (mng_datap pData);
76#endif
77
78#ifdef MNG_APP_CMS
79mng_retcode mng_init_app_cms (mng_datap pData,
80 mng_bool bGlobal,
81 mng_bool bObject,
82 mng_bool bRetrobj);
83mng_retcode mng_correct_app_cms (mng_datap pData);
84#endif
85
86/* ************************************************************************** */
87
88#endif /* _libmng_cms_h_ */
89
90/* ************************************************************************** */
91/* * end of file * */
92/* ************************************************************************** */
Note: See TracBrowser for help on using the repository browser.