|
MagickCore
6.7.5
|
#include "MagickCore/studio.h"#include "MagickCore/attribute.h"#include "MagickCore/cache.h"#include "MagickCore/color.h"#include "MagickCore/colorspace-private.h"#include "MagickCore/configure.h"#include "MagickCore/exception.h"#include "MagickCore/exception-private.h"#include "MagickCore/hashmap.h"#include "MagickCore/image.h"#include "MagickCore/memory_.h"#include "MagickCore/monitor.h"#include "MagickCore/monitor-private.h"#include "MagickCore/option.h"#include "MagickCore/pixel-accessor.h"#include "MagickCore/profile.h"#include "MagickCore/profile-private.h"#include "MagickCore/property.h"#include "MagickCore/quantum.h"#include "MagickCore/quantum-private.h"#include "MagickCore/splay-tree.h"#include "MagickCore/string_.h"#include "MagickCore/thread-private.h"#include "MagickCore/token.h"#include "MagickCore/utility.h"
Go to the source code of this file.
Data Structures | |
| struct | _ProfileInfo |
| struct | _CMSExceptionInfo |
Defines | |
| #define | cmsSigCmykData icSigCmykData |
| #define | cmsSigGrayData icSigGrayData |
| #define | cmsSigLabData icSigLabData |
| #define | cmsSigLuvData icSigLuvData |
| #define | cmsSigRgbData icSigRgbData |
| #define | cmsSigXYZData icSigXYZData |
| #define | cmsSigYCbCrData icSigYCbCrData |
| #define | cmsSigLinkClass icSigLinkClass |
| #define | cmsColorSpaceSignature icColorSpaceSignature |
| #define | cmsUInt32Number DWORD |
| #define | cmsSetLogErrorHandler(handler) cmsSetErrorHandler(handler) |
| #define | cmsCreateTransformTHR(context, source_profile, source_type, target_profile, target_type, intent, flags) |
| #define | cmsOpenProfileFromMemTHR(context, profile, length) cmsOpenProfileFromMem(profile,length) |
| #define | ProfileImageTag "Profile/Image" |
| #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 |
Typedefs | |
| typedef struct _CMSExceptionInfo | CMSExceptionInfo |
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, ExceptionInfo *exception) |
| static MagickBooleanType | SetsRGBImageProfile (Image *image, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | ProfileImage (Image *image, const char *name, const void *datum, const size_t length, ExceptionInfo *exception) |
| 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, size_t *quantum) |
| static const unsigned char * | ReadResourceShort (const unsigned char *p, unsigned short *quantum) |
| static MagickBooleanType | GetProfilesFromResourceBlock (Image *image, const StringInfo *resource_block, ExceptionInfo *exception) |
| MagickExport MagickBooleanType | SetImageProfile (Image *image, const char *name, const StringInfo *profile, ExceptionInfo *exception) |
| static int | ReadProfileByte (unsigned char **p, size_t *length) |
| static unsigned short | ReadProfileShort (const EndianType endian, unsigned char *buffer) |
| static size_t | ReadProfileLong (const EndianType endian, unsigned char *buffer) |
| static void | WriteProfileLong (const EndianType endian, const size_t value, unsigned char *p) |
| static void | WriteProfileShort (const EndianType endian, const unsigned short value, unsigned char *p) |
| MagickPrivate MagickBooleanType | SyncImageProfiles (Image *image) |
| #define cmsColorSpaceSignature icColorSpaceSignature |
Definition at line 93 of file profile.c.
Referenced by ProfileImage().
| #define cmsCreateTransformTHR | ( | context, | |
| source_profile, | |||
| source_type, | |||
| target_profile, | |||
| target_type, | |||
| intent, | |||
| flags | |||
| ) |
| #define cmsOpenProfileFromMemTHR | ( | context, | |
| profile, | |||
| length | |||
| ) | cmsOpenProfileFromMem(profile,length) |
Definition at line 99 of file profile.c.
Referenced by ProfileImage().
| #define cmsSetLogErrorHandler | ( | handler | ) | cmsSetErrorHandler(handler) |
Definition at line 95 of file profile.c.
Referenced by ProfileImage().
| #define cmsSigCmykData icSigCmykData |
Definition at line 85 of file profile.c.
Referenced by ProfileImage().
| #define cmsSigGrayData icSigGrayData |
Definition at line 86 of file profile.c.
Referenced by ProfileImage().
| #define cmsSigLabData icSigLabData |
Definition at line 87 of file profile.c.
Referenced by ProfileImage().
| #define cmsSigLinkClass icSigLinkClass |
Definition at line 92 of file profile.c.
Referenced by ProfileImage().
| #define cmsSigLuvData icSigLuvData |
Definition at line 88 of file profile.c.
Referenced by ProfileImage().
| #define cmsSigRgbData icSigRgbData |
Definition at line 89 of file profile.c.
Referenced by ProfileImage().
| #define cmsSigXYZData icSigXYZData |
Definition at line 90 of file profile.c.
Referenced by ProfileImage().
| #define cmsSigYCbCrData icSigYCbCrData |
Definition at line 91 of file profile.c.
Referenced by ProfileImage().
| #define cmsUInt32Number DWORD |
Definition at line 94 of file profile.c.
Referenced by IdentifyImage(), and ProfileImage().
| #define EXIF_DELIMITER "\n" |
| #define EXIF_NUM_FORMATS 12 |
Referenced by SyncImageProfiles().
| #define MaxDirectoryStack 16 |
Referenced by SyncImageProfiles(), and GetEXIFProperty().
| #define ProfileImageTag "Profile/Image" |
Referenced by ProfileImage().
| #define TAG_EXIF_OFFSET 0x8769 |
Referenced by SyncImageProfiles(), and GetEXIFProperty().
| #define TAG_INTEROP_OFFSET 0xa005 |
Referenced by SyncImageProfiles(), and GetEXIFProperty().
| #define ThrowProfileException | ( | severity, | |
| tag, | |||
| context | |||
| ) |
{ \
if (source_profile != (cmsHPROFILE) NULL) \
(void) cmsCloseProfile(source_profile); \
if (target_profile != (cmsHPROFILE) NULL) \
(void) cmsCloseProfile(target_profile); \
ThrowBinaryException(severity,tag,context); \
}
Referenced by ProfileImage().
| typedef struct _CMSExceptionInfo CMSExceptionInfo |
| MagickExport MagickBooleanType CloneImageProfiles | ( | Image * | image, |
| const Image * | clone_image | ||
| ) |
Definition at line 155 of file profile.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::profiles, CloneSplayTree(), ConstantString(), CloneStringInfo(), and MagickTrue.
Referenced by CloneImage(), CoalesceImages(), and DisposeImages().
| MagickExport MagickBooleanType DeleteImageProfile | ( | Image * | image, |
| const char * | name | ||
| ) |
Definition at line 194 of file profile.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::profiles, and DeleteNodeFromSplayTree().
Referenced by ProfileImage(), and ThumbnailImage().
| MagickExport void DestroyImageProfiles | ( | Image * | image | ) |
Definition at line 227 of file profile.c.
References _Image::profiles, and DestroySplayTree().
Referenced by DestroyImage(), and StripImage().
| static void* DestroyProfile | ( | void * | profile | ) | [static] |
Definition at line 6271 of file profile.c.
References DestroyStringInfo().
Referenced by SetImageProfile().
| MagickExport const StringInfo* GetImageProfile | ( | const Image * | image, |
| const char * | name | ||
| ) |
Definition at line 257 of file profile.c.
References MaxTextExtent, _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::profiles, CopyMagickString(), and GetValueFromSplayTree().
Referenced by ReadImage(), IdentifyImage(), SetAdobeRGB1998ImageProfile(), SetsRGBImageProfile(), ProfileImage(), SyncImageProfiles(), GetIPTCProperty(), Get8BIMProperty(), GetEXIFProperty(), and GetXMPProperty().
| MagickExport char* GetNextImageProfile | ( | const Image * | image | ) |
Definition at line 300 of file profile.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::profiles, and GetNextKeyInSplayTree().
Referenced by IdentifyImage(), ProfileImage(), and ThumbnailImage().
| static MagickBooleanType GetProfilesFromResourceBlock | ( | Image * | image, |
| const StringInfo * | resource_block, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 6312 of file profile.c.
References GetStringInfoDatum(), GetStringInfoLength(), LocaleNCompare(), ReadResourceShort(), ReadResourceByte(), ReadResourceLong(), _Image::resolution, _PointInfo::x, _PointInfo::y, AcquireStringInfo(), SetStringInfoDatum(), SetImageProfile(), DestroyStringInfo(), and MagickTrue.
Referenced by SetImageProfile().
| MagickExport MagickBooleanType ProfileImage | ( | Image * | image, |
| const char * | name, | ||
| const void * | datum, | ||
| const size_t | length, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 5659 of file profile.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, ConstantString(), SubstituteString(), StringToArgv(), DestroyString(), MagickTrue, ResetImageProfileIterator(), GetNextImageProfile(), LocaleCompare(), GlobExpression(), DeleteImageProfile(), RelinquishMagickMemory(), AcquireStringInfo(), SetStringInfoDatum(), SetImageProfile(), GetImageProfile(), CompareStringInfo(), GetImageProperty(), SetsRGBImageProfile(), SetAdobeRGB1998ImageProfile(), DestroyStringInfo(), ThrowMagickException(), MissingDelegateWarning, cmsSetLogErrorHandler, _CMSExceptionInfo::image, _CMSExceptionInfo::exception, cmsOpenProfileFromMemTHR, GetStringInfoDatum(), cmsUInt32Number, GetStringInfoLength(), ThrowBinaryException, ResourceLimitError, cmsSigLinkClass, cmsColorSpaceSignature, ThrowProfileException, cmsSigCmykData, CMYKColorspace, cmsSigGrayData, GRAYColorspace, cmsSigLabData, LabColorspace, cmsSigLuvData, YUVColorspace, cmsSigRgbData, RGBColorspace, cmsSigXYZData, XYZColorspace, cmsSigYCbCrData, YCbCrColorspace, UndefinedColorspace, ImageError, IsImageGray(), _Image::colorspace, IsRGBColorspace(), _Image::rendering_intent, AbsoluteIntent, PerceptualIntent, RelativeIntent, SaturationIntent, _Image::black_point_compensation, AcquirePixelThreadSet(), _Image::columns, SetImageStorageClass(), DirectClass, DestroyPixelThreadSet(), SetImageColorspace(), AcquireCacheView(), _Image::rows, GetOpenMPThreadId(), GetCacheViewAuthenticPixels(), GetPixelRed(), GetPixelGreen(), GetPixelBlue(), GetPixelBlack(), GetPixelChannels(), SetPixelGray(), SetPixelRed(), SetPixelGreen(), SetPixelBlue(), SetPixelBlack(), SyncCacheViewAuthenticPixels(), _Image::progress_monitor, SetImageProgress(), ProfileImageTag, DestroyCacheView(), _Image::type, _Image::matte, TrueColorType, TrueColorMatteType, ColorSeparationType, ColorSeparationMatteType, GrayscaleType, and GrayscaleMatteType.
| static int ReadProfileByte | ( | unsigned char ** | p, |
| size_t * | length | ||
| ) | [inline, static] |
Definition at line 6492 of file profile.c.
Referenced by SyncImageProfiles().
| static size_t 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] |
Definition at line 6276 of file profile.c.
Referenced by GetProfilesFromResourceBlock().
| 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, |
| size_t * | quantum | ||
| ) | [inline, static] |
Definition at line 6294 of file profile.c.
Referenced by GetProfilesFromResourceBlock().
| static const unsigned char* ReadResourceShort | ( | const unsigned char * | p, |
| unsigned short * | quantum | ||
| ) | [inline, static] |
Definition at line 6304 of file profile.c.
Referenced by GetProfilesFromResourceBlock().
| MagickExport StringInfo* RemoveImageProfile | ( | Image * | image, |
| const char * | name | ||
| ) |
Definition at line 6189 of file profile.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::profiles, and RemoveNodeFromSplayTree().
| MagickExport void ResetImageProfileIterator | ( | const Image * | image | ) |
Definition at line 6229 of file profile.c.
References _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::profiles, and ResetSplayTreeIterator().
Referenced by IdentifyImage(), ProfileImage(), and ThumbnailImage().
| static MagickBooleanType SetAdobeRGB1998ImageProfile | ( | Image * | image, |
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 478 of file profile.c.
References _Image::signature, MagickSignature, GetImageProfile(), MagickFalse, AcquireStringInfo(), SetStringInfoDatum(), SetImageProfile(), and DestroyStringInfo().
Referenced by ProfileImage().
| MagickExport MagickBooleanType SetImageProfile | ( | Image * | image, |
| const char * | name, | ||
| const StringInfo * | profile, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 6437 of file profile.c.
References MaxTextExtent, _Image::signature, MagickSignature, _Image::debug, MagickFalse, LogMagickEvent(), TraceEvent, GetMagickModule, _Image::filename, _Image::profiles, NewSplayTree(), CompareSplayTreeString(), RelinquishMagickMemory(), DestroyProfile(), CopyMagickString(), AddValueToSplayTree(), ConstantString(), CloneStringInfo(), LocaleCompare(), GetProfilesFromResourceBlock(), FormatLocaleString(), and GetImageProperty().
Referenced by SetAdobeRGB1998ImageProfile(), SetsRGBImageProfile(), ProfileImage(), GetProfilesFromResourceBlock(), and SetImageProperty().
| static MagickBooleanType SetsRGBImageProfile | ( | Image * | image, |
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 554 of file profile.c.
References _Image::signature, MagickSignature, GetImageProfile(), MagickFalse, AcquireStringInfo(), SetStringInfoDatum(), SetImageProfile(), and DestroyStringInfo().
Referenced by ProfileImage().
| MagickPrivate MagickBooleanType SyncImageProfiles | ( | Image * | image | ) |
Definition at line 6577 of file profile.c.
References MaxDirectoryStack, GetImageProfile(), MagickTrue, GetStringInfoLength(), GetStringInfoDatum(), ReadProfileByte(), MagickFalse, ReadProfileShort(), LSBEndian, MSBEndian, ReadProfileLong(), EXIF_NUM_FORMATS, WriteProfileLong(), _Image::resolution, _PointInfo::x, _PointInfo::y, WriteProfileShort(), _Image::orientation, _Image::units, TAG_EXIF_OFFSET, and TAG_INTEROP_OFFSET.
Referenced by WriteImage().
| static void WriteProfileLong | ( | const EndianType | endian, |
| const size_t | value, | ||
| unsigned char * | p | ||
| ) | [inline, static] |
Definition at line 6537 of file profile.c.
References MSBEndian, and CopyMagickMemory().
Referenced by SyncImageProfiles().
| static void WriteProfileShort | ( | const EndianType | endian, |
| const unsigned short | value, | ||
| unsigned char * | p | ||
| ) | [static] |
Definition at line 6559 of file profile.c.
References MSBEndian, and CopyMagickMemory().
Referenced by SyncImageProfiles().