/src/FreeImage/Source/LibMNG/libmng_cms.h

https://bitbucket.org/cabalistic/ogredeps/ · C++ Header · 92 lines · 37 code · 12 blank · 43 comment · 3 complexity · e03d53ff739f6d2eb9531ad2fa62a4d6 MD5 · raw file

  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. #if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
  39. #pragma option -A /* force ANSI-C */
  40. #endif
  41. #ifndef _libmng_cms_h_
  42. #define _libmng_cms_h_
  43. /* ************************************************************************** */
  44. #ifdef MNG_INCLUDE_LCMS
  45. void mnglcms_initlibrary (void);
  46. mng_cmsprof mnglcms_createfileprofile (mng_pchar zFilename);
  47. mng_cmsprof mnglcms_creatememprofile (mng_uint32 iProfilesize,
  48. mng_ptr pProfile );
  49. mng_cmsprof mnglcms_createsrgbprofile (void);
  50. void mnglcms_freeprofile (mng_cmsprof hProf );
  51. void mnglcms_freetransform (mng_cmstrans hTrans );
  52. mng_retcode mng_clear_cms (mng_datap pData );
  53. #endif
  54. /* ************************************************************************** */
  55. #ifdef MNG_FULL_CMS
  56. mng_retcode mng_init_full_cms (mng_datap pData,
  57. mng_bool bGlobal,
  58. mng_bool bObject,
  59. mng_bool bRetrobj);
  60. mng_retcode mng_correct_full_cms (mng_datap pData);
  61. #endif
  62. #if defined(MNG_FULL_CMS) || defined(MNG_GAMMA_ONLY) || defined(MNG_APP_CMS)
  63. mng_retcode mng_init_gamma_only (mng_datap pData,
  64. mng_bool bGlobal,
  65. mng_bool bObject,
  66. mng_bool bRetrobj);
  67. mng_retcode mng_correct_gamma_only (mng_datap pData);
  68. #endif
  69. #ifdef MNG_APP_CMS
  70. mng_retcode mng_init_app_cms (mng_datap pData,
  71. mng_bool bGlobal,
  72. mng_bool bObject,
  73. mng_bool bRetrobj);
  74. mng_retcode mng_correct_app_cms (mng_datap pData);
  75. #endif
  76. /* ************************************************************************** */
  77. #endif /* _libmng_cms_h_ */
  78. /* ************************************************************************** */
  79. /* * end of file * */
  80. /* ************************************************************************** */