blob: 8fccd4ee0d232188bbc2778b185b144ee4dd1e89 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
Cristyf6ff9ea2016-12-05 09:53:35 -05002 Copyright 1999-2017 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
7
Cristyf19d4142017-04-24 11:34:30 -04008 https://www.imagemagick.org/script/license.php
cristy3ed852e2009-09-05 21:47:34 +00009
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 MagickCore image profile methods.
17*/
Cristy83bceaa2016-06-03 20:39:35 -040018#ifndef MAGICKCORE_PROFILE_H
19#define MAGICKCORE_PROFILE_H
cristy3ed852e2009-09-05 21:47:34 +000020
cristy6398ec72013-11-28 02:00:27 +000021#include "MagickCore/string_.h"
22
cristy3ed852e2009-09-05 21:47:34 +000023#if defined(__cplusplus) || defined(c_plusplus)
24extern "C" {
25#endif
26
cristy3ed852e2009-09-05 21:47:34 +000027typedef struct _ProfileInfo
cristy092d71c2011-10-14 18:01:29 +000028 ProfileInfo;
cristy3ed852e2009-09-05 21:47:34 +000029
30typedef enum
31{
32 UndefinedIntent,
33 SaturationIntent,
34 PerceptualIntent,
35 AbsoluteIntent,
36 RelativeIntent
37} RenderingIntent;
38
39extern MagickExport char
40 *GetNextImageProfile(const Image *);
41
42extern MagickExport const StringInfo
43 *GetImageProfile(const Image *,const char *);
44
45extern MagickExport MagickBooleanType
46 CloneImageProfiles(Image *,const Image *),
47 DeleteImageProfile(Image *,const char *),
cristy092d71c2011-10-14 18:01:29 +000048 ProfileImage(Image *,const char *,const void *,const size_t,ExceptionInfo *),
cristyd15e6592011-10-15 00:13:06 +000049 SetImageProfile(Image *,const char *,const StringInfo *,ExceptionInfo *);
cristy3ed852e2009-09-05 21:47:34 +000050
51extern MagickExport StringInfo
52 *RemoveImageProfile(Image *,const char *);
53
54extern MagickExport void
55 DestroyImageProfiles(Image *),
56 ResetImageProfileIterator(const Image *);
57
58#if defined(__cplusplus) || defined(c_plusplus)
59}
60#endif
61#endif