cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
cristy | 7e41fe8 | 2010-12-04 23:12:08 +0000 | [diff] [blame] | 2 | Copyright 1999-2011 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 | |
| 5 | You may not use this file except in compliance with the License. |
| 6 | obtain a copy of the License at |
| 7 | |
| 8 | http://www.imagemagick.org/script/license.php |
| 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 | */ |
| 18 | #ifndef _MAGICKCORE_PROFILE_H |
| 19 | #define _MAGICKCORE_PROFILE_H |
| 20 | |
| 21 | #if defined(__cplusplus) || defined(c_plusplus) |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame^] | 25 | #include "MagickCore/string_.h" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26 | |
| 27 | typedef struct _ProfileInfo |
| 28 | { |
| 29 | char |
| 30 | *name; |
| 31 | |
| 32 | size_t |
| 33 | length; |
| 34 | |
| 35 | unsigned char |
| 36 | *info; |
| 37 | |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 38 | size_t |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 39 | signature; |
| 40 | } ProfileInfo; |
| 41 | |
| 42 | typedef enum |
| 43 | { |
| 44 | UndefinedIntent, |
| 45 | SaturationIntent, |
| 46 | PerceptualIntent, |
| 47 | AbsoluteIntent, |
| 48 | RelativeIntent |
| 49 | } RenderingIntent; |
| 50 | |
| 51 | extern MagickExport char |
| 52 | *GetNextImageProfile(const Image *); |
| 53 | |
| 54 | extern MagickExport const StringInfo |
| 55 | *GetImageProfile(const Image *,const char *); |
| 56 | |
| 57 | extern MagickExport MagickBooleanType |
| 58 | CloneImageProfiles(Image *,const Image *), |
| 59 | DeleteImageProfile(Image *,const char *), |
| 60 | ProfileImage(Image *,const char *,const void *,const size_t, |
| 61 | const MagickBooleanType), |
| 62 | SetImageProfile(Image *,const char *,const StringInfo *), |
| 63 | SyncImageProfiles(Image *); |
| 64 | |
| 65 | extern MagickExport StringInfo |
| 66 | *RemoveImageProfile(Image *,const char *); |
| 67 | |
| 68 | extern MagickExport void |
| 69 | DestroyImageProfiles(Image *), |
| 70 | ResetImageProfileIterator(const Image *); |
| 71 | |
| 72 | #if defined(__cplusplus) || defined(c_plusplus) |
| 73 | } |
| 74 | #endif |
| 75 | #endif |