2000-06-12 23:06:35 +00:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* * For conditions of distribution and use, * */
|
|
|
|
/* * see copyright notice in libmng.h * */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
/* * * */
|
|
|
|
/* * project : libmng * */
|
2000-08-08 03:58:05 +00:00
|
|
|
/* * file : libmng_cms.h copyright (c) 2000 G.Juyn * */
|
2001-05-20 17:36:25 +00:00
|
|
|
/* * version : 1.0.1 * */
|
2000-06-12 23:06:35 +00:00
|
|
|
/* * * */
|
|
|
|
/* * purpose : color management routines (definition) * */
|
|
|
|
/* * * */
|
|
|
|
/* * author : G.Juyn * */
|
|
|
|
/* * web : http://www.3-t.com * */
|
|
|
|
/* * email : mailto:info@3-t.com * */
|
|
|
|
/* * * */
|
|
|
|
/* * comment : Definition of color management routines * */
|
|
|
|
/* * * */
|
|
|
|
/* * changes : 0.5.1 - 05/08/2000 - G.Juyn * */
|
|
|
|
/* * - changed strict-ANSI stuff * */
|
|
|
|
/* * 0.5.1 - 05/11/2000 - G.Juyn * */
|
|
|
|
/* * - added creatememprofile * */
|
|
|
|
/* * * */
|
2000-08-08 03:58:05 +00:00
|
|
|
/* * 0.9.2 - 08/05/2000 - G.Juyn * */
|
|
|
|
/* * - changed file-prefixes * */
|
|
|
|
/* * * */
|
2001-05-20 17:36:25 +00:00
|
|
|
/* * 1.0.1 - 04/25/2001 - G.Juyn * */
|
|
|
|
/* * - moved mng_clear_cms to libmng_cms * */
|
|
|
|
/* * 1.0.1 - 05/02/2001 - G.Juyn * */
|
|
|
|
/* * - added "default" sRGB generation (Thanks Marti!) * */
|
|
|
|
/* * * */
|
2000-06-12 23:06:35 +00:00
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
|
|
|
|
#pragma option -A /* force ANSI-C */
|
|
|
|
#endif
|
|
|
|
|
2000-08-08 03:58:05 +00:00
|
|
|
#ifndef _libmng_cms_h_
|
|
|
|
#define _libmng_cms_h_
|
2000-06-12 23:06:35 +00:00
|
|
|
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#ifdef MNG_INCLUDE_LCMS
|
|
|
|
void mnglcms_initlibrary (void);
|
|
|
|
mng_cmsprof mnglcms_createfileprofile (mng_pchar zFilename);
|
|
|
|
mng_cmsprof mnglcms_creatememprofile (mng_uint32 iProfilesize,
|
|
|
|
mng_ptr pProfile );
|
2001-05-20 17:36:25 +00:00
|
|
|
mng_cmsprof mnglcms_createsrgbprofile (void);
|
2000-06-12 23:06:35 +00:00
|
|
|
void mnglcms_freeprofile (mng_cmsprof hProf );
|
|
|
|
void mnglcms_freetransform (mng_cmstrans hTrans );
|
2001-05-20 17:36:25 +00:00
|
|
|
|
|
|
|
mng_retcode mng_clear_cms (mng_datap pData );
|
2000-06-12 23:06:35 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#ifdef MNG_FULL_CMS
|
|
|
|
mng_retcode init_full_cms (mng_datap pData);
|
|
|
|
mng_retcode init_full_cms_object (mng_datap pData);
|
|
|
|
mng_retcode correct_full_cms (mng_datap pData);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(MNG_FULL_CMS) || defined(MNG_GAMMA_ONLY)
|
|
|
|
mng_retcode init_gamma_only (mng_datap pData);
|
|
|
|
mng_retcode init_gamma_only_object (mng_datap pData);
|
|
|
|
mng_retcode correct_gamma_only (mng_datap pData);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef MNG_APP_CMS
|
|
|
|
mng_retcode init_app_cms (mng_datap pData);
|
|
|
|
mng_retcode init_app_cms_object (mng_datap pData);
|
|
|
|
mng_retcode correct_app_cms (mng_datap pData);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
2000-08-08 03:58:05 +00:00
|
|
|
#endif /* _libmng_cms_h_ */
|
2000-06-12 23:06:35 +00:00
|
|
|
|
|
|
|
/* ************************************************************************** */
|
|
|
|
/* * end of file * */
|
|
|
|
/* ************************************************************************** */
|