cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
Cristy | d842011 | 2021-01-01 14:52:00 -0500 | [diff] [blame] | 2 | Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3 | dedicated to making software imaging solutions freely available. |
| 4 | |
Cristy | 57b308b | 2019-01-19 17:53:40 -0500 | [diff] [blame] | 5 | You may not use this file except in compliance with the License. You may |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6 | obtain a copy of the License at |
| 7 | |
Cristy | 9ddfcca | 2018-09-09 19:46:34 -0400 | [diff] [blame] | 8 | https://imagemagick.org/script/license.php |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9 | |
| 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 | */ |
Cristy | 83bceaa | 2016-06-03 20:39:35 -0400 | [diff] [blame] | 18 | #ifndef MAGICKCORE_PROFILE_H |
| 19 | #define MAGICKCORE_PROFILE_H |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20 | |
cristy | 6398ec7 | 2013-11-28 02:00:27 +0000 | [diff] [blame] | 21 | #include "MagickCore/string_.h" |
| 22 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23 | #if defined(__cplusplus) || defined(c_plusplus) |
| 24 | extern "C" { |
| 25 | #endif |
| 26 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27 | typedef struct _ProfileInfo |
cristy | 092d71c | 2011-10-14 18:01:29 +0000 | [diff] [blame] | 28 | ProfileInfo; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29 | |
| 30 | typedef enum |
| 31 | { |
| 32 | UndefinedIntent, |
| 33 | SaturationIntent, |
| 34 | PerceptualIntent, |
| 35 | AbsoluteIntent, |
| 36 | RelativeIntent |
| 37 | } RenderingIntent; |
| 38 | |
| 39 | extern MagickExport char |
| 40 | *GetNextImageProfile(const Image *); |
| 41 | |
| 42 | extern MagickExport const StringInfo |
| 43 | *GetImageProfile(const Image *,const char *); |
| 44 | |
| 45 | extern MagickExport MagickBooleanType |
| 46 | CloneImageProfiles(Image *,const Image *), |
| 47 | DeleteImageProfile(Image *,const char *), |
cristy | 092d71c | 2011-10-14 18:01:29 +0000 | [diff] [blame] | 48 | ProfileImage(Image *,const char *,const void *,const size_t,ExceptionInfo *), |
cristy | d15e659 | 2011-10-15 00:13:06 +0000 | [diff] [blame] | 49 | SetImageProfile(Image *,const char *,const StringInfo *,ExceptionInfo *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 50 | |
| 51 | extern MagickExport StringInfo |
| 52 | *RemoveImageProfile(Image *,const char *); |
| 53 | |
| 54 | extern MagickExport void |
| 55 | DestroyImageProfiles(Image *), |
| 56 | ResetImageProfileIterator(const Image *); |
| 57 | |
| 58 | #if defined(__cplusplus) || defined(c_plusplus) |
| 59 | } |
| 60 | #endif |
| 61 | #endif |