profile.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License. You may
  5. obtain a copy of the License at
  6. https://imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. MagickCore image profile methods.
  13. */
  14. #ifndef MAGICKCORE_PROFILE_H
  15. #define MAGICKCORE_PROFILE_H
  16. #include "magick/string_.h"
  17. #if defined(__cplusplus) || defined(c_plusplus)
  18. extern "C" {
  19. #endif
  20. typedef struct _ProfileInfo
  21. {
  22. char
  23. *name;
  24. size_t
  25. length;
  26. unsigned char
  27. *info;
  28. size_t
  29. signature;
  30. } ProfileInfo;
  31. typedef enum
  32. {
  33. UndefinedIntent,
  34. SaturationIntent,
  35. PerceptualIntent,
  36. AbsoluteIntent,
  37. RelativeIntent
  38. } RenderingIntent;
  39. extern MagickExport char
  40. *GetNextImageProfile(const Image *);
  41. extern MagickExport const StringInfo
  42. *GetImageProfile(const Image *,const char *);
  43. extern MagickExport MagickBooleanType
  44. CloneImageProfiles(Image *,const Image *),
  45. DeleteImageProfile(Image *,const char *),
  46. ProfileImage(Image *,const char *,const void *,const size_t,
  47. const MagickBooleanType),
  48. SetImageProfile(Image *,const char *,const StringInfo *),
  49. SyncImageProfiles(Image *);
  50. extern MagickExport StringInfo
  51. *RemoveImageProfile(Image *,const char *);
  52. extern MagickExport void
  53. DestroyImageProfiles(Image *),
  54. ResetImageProfileIterator(const Image *);
  55. #if defined(__cplusplus) || defined(c_plusplus)
  56. }
  57. #endif
  58. #endif