#include "magick/studio.h"#include "magick/cache.h"#include "magick/color.h"#include "magick/configure.h"#include "magick/exception.h"#include "magick/exception-private.h"#include "magick/hashmap.h"#include "magick/image.h"#include "magick/memory_.h"#include "magick/monitor.h"#include "magick/option.h"#include "magick/profile.h"#include "magick/property.h"#include "magick/quantum.h"#include "magick/quantum-private.h"#include "magick/splay-tree.h"#include "magick/string_.h"#include "magick/utility.h"

Go to the source code of this file.
Defines | |
| #define | ThrowProfileException(severity, tag, context) |
| #define | MaxDirectoryStack 16 |
| #define | EXIF_DELIMITER "\n" |
| #define | EXIF_NUM_FORMATS 12 |
| #define | TAG_EXIF_OFFSET 0x8769 |
| #define | TAG_INTEROP_OFFSET 0xa005 |
Functions | |
| MagickExport MagickBooleanType | CloneImageProfiles (Image *image, const Image *clone_image) |
| MagickExport MagickBooleanType | DeleteImageProfile (Image *image, const char *name) |
| MagickExport void | DestroyImageProfiles (Image *image) |
| MagickExport const StringInfo * | GetImageProfile (const Image *image, const char *name) |
| MagickExport char * | GetNextImageProfile (const Image *image) |
| static MagickBooleanType | SetAdobeRGB1998ImageProfile (Image *image) |
| static MagickBooleanType | SetsRGBImageProfile (Image *image) |
| MagickExport MagickBooleanType | ProfileImage (Image *image, const char *name, const void *datum, const size_t length, const MagickBooleanType magick_unused(clone)) |
| MagickExport StringInfo * | RemoveImageProfile (Image *image, const char *name) |
| MagickExport void | ResetImageProfileIterator (const Image *image) |
| static void * | DestroyProfile (void *profile) |
| static const unsigned char * | ReadResourceByte (const unsigned char *p, unsigned char *quantum) |
| static const unsigned char * | ReadResourceBytes (const unsigned char *p, const ssize_t count, unsigned char *quantum) |
| static const unsigned char * | ReadResourceLong (const unsigned char *p, unsigned long *quantum) |
| static const unsigned char * | ReadResourceShort (const unsigned char *p, unsigned short *quantum) |
| static MagickBooleanType | GetProfilesFromResourceBlock (Image *image, const StringInfo *resource_block) |
| MagickExport MagickBooleanType | SetImageProfile (Image *image, const char *name, const StringInfo *profile) |
| static int | ReadProfileByte (unsigned char **p, size_t *length) |
| static unsigned short | ReadProfileShort (const EndianType endian, unsigned char *buffer) |
| static unsigned long | ReadProfileLong (const EndianType endian, unsigned char *buffer) |
| static void | WriteProfileLong (const EndianType endian, const unsigned long value, unsigned char *p) |
| static void | WriteProfileShort (const EndianType endian, const unsigned short value, unsigned char *p) |
| MagickExport MagickBooleanType | SyncImageProfiles (Image *image) |
| #define EXIF_DELIMITER "\n" |
| #define EXIF_NUM_FORMATS 12 |
Referenced by SyncImageProfiles().
| #define MaxDirectoryStack 16 |
Referenced by GetEXIFProperty(), and SyncImageProfiles().
| #define TAG_EXIF_OFFSET 0x8769 |
Referenced by GetEXIFProperty(), and SyncImageProfiles().
| #define TAG_INTEROP_OFFSET 0xa005 |
Referenced by GetEXIFProperty(), and SyncImageProfiles().
| #define ThrowProfileException | ( | severity, | |||
| tag, | |||||
| context | ) |
Value:
{ \
(void) cmsCloseProfile(source_profile); \
(void) cmsCloseProfile(target_profile); \
ThrowBinaryException(severity,tag,context); \
}
Referenced by ProfileImage().
| MagickExport MagickBooleanType CloneImageProfiles | ( | Image * | image, | |
| const Image * | clone_image | |||
| ) |
Definition at line 93 of file profile.c.
References CloneSplayTree(), CloneStringInfo(), _Image::color_profile, ConstantString(), _Image::debug, _Image::filename, GetMagickModule, _ProfileInfo::info, _Image::iptc_profile, _ProfileInfo::length, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::profiles, _Image::signature, and TraceEvent.
Referenced by CloneImage(), CoalesceImages(), and DisposeImages().
| MagickExport MagickBooleanType DeleteImageProfile | ( | Image * | image, | |
| const char * | name | |||
| ) |
Definition at line 136 of file profile.c.
References _Image::color_profile, _Image::debug, DeleteNodeFromSplayTree(), _Image::filename, GetMagickModule, _ProfileInfo::info, _Image::iptc_profile, _ProfileInfo::length, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickSignature, _Image::profiles, _Image::signature, and TraceEvent.
Referenced by ProfileImage().
| MagickExport void DestroyImageProfiles | ( | Image * | image | ) |
Definition at line 186 of file profile.c.
References DestroySplayTree(), and _Image::profiles.
Referenced by DestroyImage(), ProfileImage(), and StripImage().
| static void* DestroyProfile | ( | void * | profile | ) | [static] |
Definition at line 1202 of file profile.c.
References DestroyStringInfo().
Referenced by SetImageProfile().
| MagickExport const StringInfo* GetImageProfile | ( | const Image * | image, | |
| const char * | name | |||
| ) |
Definition at line 216 of file profile.c.
References CopyMagickString(), _Image::debug, _Image::filename, GetMagickModule, GetValueFromSplayTree(), LogMagickEvent(), MagickFalse, MagickSignature, MaxTextExtent, _Image::profiles, _Image::signature, and TraceEvent.
Referenced by Get8BIMProperty(), GetEXIFProperty(), GetIPTCProperty(), GetXMPProperty(), IdentifyImage(), ProfileImage(), ReadImage(), SetAdobeRGB1998ImageProfile(), SetImageProfile(), SetsRGBImageProfile(), and SyncImageProfiles().
| MagickExport char* GetNextImageProfile | ( | const Image * | image | ) |
Definition at line 259 of file profile.c.
References _Image::debug, _Image::filename, GetMagickModule, GetNextKeyInSplayTree(), LogMagickEvent(), MagickFalse, MagickSignature, _Image::profiles, _Image::signature, and TraceEvent.
Referenced by IdentifyImage().
| static MagickBooleanType GetProfilesFromResourceBlock | ( | Image * | image, | |
| const StringInfo * | resource_block | |||
| ) | [static] |
Definition at line 1243 of file profile.c.
References AcquireStringInfo(), GetStringInfoDatum(), GetStringInfoLength(), LocaleNCompare(), MagickTrue, ReadResourceByte(), ReadResourceLong(), ReadResourceShort(), SetImageProfile(), SetStringInfoDatum(), _Image::x_resolution, and _Image::y_resolution.
Referenced by SetImageProfile().
| MagickExport MagickBooleanType ProfileImage | ( | Image * | image, | |
| const char * | name, | |||
| const void * | datum, | |||
| const size_t | length, | |||
| const MagickBooleanType | magick_unusedclone | |||
| ) |
Definition at line 706 of file profile.c.
References AbsoluteIntent, AcquireQuantumMemory(), AcquireStringInfo(), _Image::black_point_compensation, _PixelPacket::blue, CMYKColorspace, ColorSeparationMatteType, ColorSeparationType, _Image::colorspace, _Image::columns, CompareStringInfo(), _Image::debug, DeleteImageProfile(), DestroyImageProfiles(), DestroyStringInfo(), DirectClass, _Image::exception, _Image::filename, GetAuthenticIndexQueue(), GetAuthenticPixels(), GetImageProfile(), GetImageProperty(), GetMagickModule, GetStringInfoDatum(), GetStringInfoLength(), GRAYColorspace, GrayscaleMatteType, GrayscaleType, _PixelPacket::green, ImageError, IsGrayImage(), LabColorspace, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, MissingDelegateWarning, PerceptualIntent, _PixelPacket::red, RelativeIntent, RelinquishMagickMemory(), _Image::rendering_intent, ResourceLimitError, RGBColorspace, _Image::rows, SaturationIntent, SetAdobeRGB1998ImageProfile(), SetImageProfile(), SetImageStorageClass(), SetsRGBImageProfile(), SetStringInfoDatum(), _Image::signature, SyncAuthenticPixels(), ThrowBinaryException, ThrowMagickException(), ThrowProfileException, TraceEvent, TrueColorMatteType, TrueColorType, _Image::type, UndefinedColorspace, YCbCrColorspace, and YUVColorspace.
| static int ReadProfileByte | ( | unsigned char ** | p, | |
| size_t * | length | |||
| ) | [inline, static] |
| static unsigned long ReadProfileLong | ( | const EndianType | endian, | |
| unsigned char * | buffer | |||
| ) | [inline, static] |
| static unsigned short ReadProfileShort | ( | const EndianType | endian, | |
| unsigned char * | buffer | |||
| ) | [inline, static] |
| static const unsigned char* ReadResourceByte | ( | const unsigned char * | p, | |
| unsigned char * | quantum | |||
| ) | [inline, static] |
| static const unsigned char* ReadResourceBytes | ( | const unsigned char * | p, | |
| const ssize_t | count, | |||
| unsigned char * | quantum | |||
| ) | [inline, static] |
| static const unsigned char* ReadResourceLong | ( | const unsigned char * | p, | |
| unsigned long * | quantum | |||
| ) | [inline, static] |
| static const unsigned char* ReadResourceShort | ( | const unsigned char * | p, | |
| unsigned short * | quantum | |||
| ) | [inline, static] |
| MagickExport StringInfo* RemoveImageProfile | ( | Image * | image, | |
| const char * | name | |||
| ) |
Definition at line 1104 of file profile.c.
References _Image::color_profile, _Image::debug, _Image::filename, GetMagickModule, _ProfileInfo::info, _Image::iptc_profile, _ProfileInfo::length, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickSignature, _Image::profiles, RemoveNodeFromSplayTree(), _Image::signature, and TraceEvent.
| MagickExport void ResetImageProfileIterator | ( | const Image * | image | ) |
Definition at line 1160 of file profile.c.
References _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::profiles, ResetSplayTreeIterator(), _Image::signature, and TraceEvent.
Referenced by IdentifyImage().
| static MagickBooleanType SetAdobeRGB1998ImageProfile | ( | Image * | image | ) | [static] |
Definition at line 311 of file profile.c.
References AcquireStringInfo(), DestroyStringInfo(), GetImageProfile(), MagickFalse, MagickSignature, SetImageProfile(), SetStringInfoDatum(), and _Image::signature.
Referenced by ProfileImage().
| MagickExport MagickBooleanType SetImageProfile | ( | Image * | image, | |
| const char * | name, | |||
| const StringInfo * | profile | |||
| ) |
Definition at line 1353 of file profile.c.
References AddValueToSplayTree(), CloneStringInfo(), _Image::color_profile, CompareSplayTreeString(), ConstantString(), CopyMagickString(), _Image::debug, DestroyProfile(), _Image::filename, FormatMagickString(), GetImageProfile(), GetImageProperty(), GetMagickModule, GetProfilesFromResourceBlock(), GetStringInfoDatum(), GetStringInfoLength(), _ProfileInfo::info, _Image::iptc_profile, _ProfileInfo::length, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickSignature, MaxTextExtent, NewSplayTree(), _Image::profiles, RelinquishMagickMemory(), _Image::signature, and TraceEvent.
Referenced by GetProfilesFromResourceBlock(), ProfileImage(), SetAdobeRGB1998ImageProfile(), and SetsRGBImageProfile().
| static MagickBooleanType SetsRGBImageProfile | ( | Image * | image | ) | [static] |
Definition at line 386 of file profile.c.
References AcquireStringInfo(), DestroyStringInfo(), GetImageProfile(), MagickFalse, MagickSignature, SetImageProfile(), SetStringInfoDatum(), and _Image::signature.
Referenced by ProfileImage().
| MagickExport MagickBooleanType SyncImageProfiles | ( | Image * | image | ) |
Definition at line 1523 of file profile.c.
References EXIF_NUM_FORMATS, GetImageProfile(), GetStringInfoDatum(), GetStringInfoLength(), LSBEndian, MagickFalse, MagickTrue, MaxDirectoryStack, MSBEndian, _Image::orientation, ReadProfileByte(), ReadProfileLong(), ReadProfileShort(), TAG_EXIF_OFFSET, TAG_INTEROP_OFFSET, _Image::units, WriteProfileLong(), WriteProfileShort(), _Image::x_resolution, and _Image::y_resolution.
Referenced by WriteImage().
| static void WriteProfileLong | ( | const EndianType | endian, | |
| const unsigned long | value, | |||
| unsigned char * | p | |||
| ) | [inline, static] |
Definition at line 1483 of file profile.c.
References CopyMagickMemory(), and MSBEndian.
Referenced by SyncImageProfiles().
| static void WriteProfileShort | ( | const EndianType | endian, | |
| const unsigned short | value, | |||
| unsigned char * | p | |||
| ) | [static] |
Definition at line 1505 of file profile.c.
References CopyMagickMemory(), and MSBEndian.
Referenced by SyncImageProfiles().
1.5.7.1