src/3rdparty/libmng/libmng_cms.h
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     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
       
    49 void        mnglcms_initlibrary       (void);
       
    50 mng_cmsprof mnglcms_createfileprofile (mng_pchar    zFilename);
       
    51 mng_cmsprof mnglcms_creatememprofile  (mng_uint32   iProfilesize,
       
    52                                        mng_ptr      pProfile );
       
    53 mng_cmsprof mnglcms_createsrgbprofile (void);
       
    54 void        mnglcms_freeprofile       (mng_cmsprof  hProf    );
       
    55 void        mnglcms_freetransform     (mng_cmstrans hTrans   );
       
    56 
       
    57 mng_retcode mng_clear_cms             (mng_datap    pData    );
       
    58 #endif
       
    59 
       
    60 /* ************************************************************************** */
       
    61 
       
    62 #ifdef MNG_FULL_CMS
       
    63 mng_retcode mng_init_full_cms          (mng_datap pData,
       
    64                                         mng_bool  bGlobal,
       
    65                                         mng_bool  bObject,
       
    66                                         mng_bool  bRetrobj);
       
    67 mng_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)
       
    71 mng_retcode mng_init_gamma_only        (mng_datap pData,
       
    72                                         mng_bool  bGlobal,
       
    73                                         mng_bool  bObject,
       
    74                                         mng_bool  bRetrobj);
       
    75 mng_retcode mng_correct_gamma_only     (mng_datap pData);
       
    76 #endif
       
    77 
       
    78 #ifdef MNG_APP_CMS
       
    79 mng_retcode mng_init_app_cms           (mng_datap pData,
       
    80                                         mng_bool  bGlobal,
       
    81                                         mng_bool  bObject,
       
    82                                         mng_bool  bRetrobj);
       
    83 mng_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 /* ************************************************************************** */