|
MagickCore
6.9.1
|
#include "magick/studio.h"#include "magick/attribute.h"#include "magick/cache.h"#include "magick/color.h"#include "magick/colorspace-private.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/monitor-private.h"#include "magick/option.h"#include "magick/option-private.h"#include "magick/profile.h"#include "magick/property.h"#include "magick/quantum.h"#include "magick/quantum-private.h"#include "magick/resource_.h"#include "magick/splay-tree.h"#include "magick/string_.h"#include "magick/thread-private.h"#include "magick/token.h"#include "magick/utility.h"
Go to the source code of this file.
Macros | |
| #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 |
Functions | |
| static MagickBooleanType | SetImageProfileInternal (Image *, const char *, const StringInfo *, const MagickBooleanType) |
| static void | WriteTo8BimProfile (Image *, const char *, const StringInfo *) |
| 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 | 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 * | ReadResourceLong (const unsigned char *p, unsigned int *quantum) |
| static const unsigned char * | ReadResourceShort (const unsigned char *p, unsigned short *quantum) |
| static void | WriteResourceLong (unsigned char *p, const unsigned int quantum) |
| static void | 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 int | ReadProfileLong (const EndianType endian, unsigned char *buffer) |
| static unsigned int | ReadProfileMSBLong (unsigned char **p, size_t *length) |
| static unsigned short | ReadProfileMSBShort (unsigned char **p, size_t *length) |
| 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) |
| static MagickBooleanType | Sync8BimProfile (Image *image, StringInfo *profile) |
| static MagickBooleanType | SyncExifProfile (Image *image, StringInfo *profile) |
| MagickExport 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 GetICCProperty(), GetMagickProperty(), and ProfileImage().
| #define EXIF_DELIMITER "\n" |
| #define EXIF_NUM_FORMATS 12 |
Referenced by SyncExifProfile().
| #define MaxDirectoryStack 16 |
Referenced by SyncExifProfile().
| #define ProfileImageTag "Profile/Image" |
Referenced by ProfileImage().
| #define TAG_EXIF_OFFSET 0x8769 |
Referenced by SyncExifProfile().
| #define TAG_INTEROP_OFFSET 0xa005 |
Referenced by SyncExifProfile().
| #define ThrowProfileException | ( | severity, | |
| tag, | |||
| context | |||
| ) |
Referenced by ProfileImage().
| MagickExport MagickBooleanType CloneImageProfiles | ( | Image * | image, |
| const Image * | clone_image | ||
| ) |
Definition at line 138 of file profile.c.
References CloneSplayTree(), CloneStringInfo(), _Image::color_profile, ConstantString(), _Image::debug, DestroyImageProfiles(), _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 185 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, TraceEvent, and WriteTo8BimProfile().
Referenced by ProfileImage(), ThumbnailImage(), and TransformImageColorspace().
| MagickExport void DestroyImageProfiles | ( | Image * | image | ) |
Definition at line 235 of file profile.c.
References DestroySplayTree(), and _Image::profiles.
Referenced by CloneImageProfiles(), DestroyImage(), and StripImage().
|
static |
Definition at line 1376 of file profile.c.
References DestroyStringInfo().
Referenced by SetImageProfileInternal().
| MagickExport const StringInfo* GetImageProfile | ( | const Image * | image, |
| const char * | name | ||
| ) |
Definition at line 265 of file profile.c.
References _Image::debug, _Image::filename, GetMagickModule, GetValueFromSplayTree(), LogMagickEvent(), MagickFalse, MagickSignature, _Image::profiles, _Image::signature, and TraceEvent.
Referenced by Get8BIMProperty(), GetEXIFProperty(), GetICCProperty(), GetIPTCProperty(), GetMagickProperty(), GetXMPProperty(), IdentifyImage(), ProfileImage(), ReadImage(), SetImageProfileInternal(), SetsRGBImageProfile(), and SyncImageProfiles().
| MagickExport char* GetNextImageProfile | ( | const Image * | image | ) |
Definition at line 304 of file profile.c.
References _Image::debug, _Image::filename, GetMagickModule, GetNextKeyInSplayTree(), LogMagickEvent(), MagickFalse, MagickSignature, _Image::profiles, _Image::signature, and TraceEvent.
Referenced by GetMagickProperty(), IdentifyImage(), ProfileImage(), and ThumbnailImage().
|
static |
Definition at line 1529 of file profile.c.
References AcquireStringInfo(), DestroyStringInfo(), GetStringInfoDatum(), GetStringInfoLength(), LocaleNCompare(), MagickTrue, PixelsPerCentimeterResolution, PixelsPerInchResolution, ReadResourceByte(), ReadResourceLong(), ReadResourceShort(), SetImageProfileInternal(), SetStringInfoDatum(), _Image::units, _Image::x_resolution, and _Image::y_resolution.
Referenced by SetImageProfileInternal().
| MagickExport MagickBooleanType ProfileImage | ( | Image * | image, |
| const char * | name, | ||
| const void * | datum, | ||
| const size_t | length, | ||
| const MagickBooleanType | magick_unusedclone | ||
| ) |
Definition at line 761 of file profile.c.
References AbsoluteIntent, AcquireAuthenticCacheView(), AcquirePixelThreadSet(), AcquireStringInfo(), cmsColorSpaceSignature, cmsOpenProfileFromMemTHR, cmsSetLogErrorHandler, cmsSigCmykData, cmsSigGrayData, cmsSigLabData, cmsSigLinkClass, cmsSigLuvData, cmsSigRgbData, cmsSigXYZData, cmsSigYCbCrData, cmsUInt32Number, CMYKColorspace, ColorSeparationMatteType, ColorSeparationType, CompareStringInfo(), _Image::debug, DeleteImageProfile(), DestroyCacheView(), DestroyPixelThreadSet(), DestroyStringInfo(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetImageProfile(), GetImageProperty(), GetMagickModule, GetNextImageProfile(), GetOpenMPThreadId(), GetPixelBlue, GetPixelGreen, GetPixelIndex, GetPixelRed, GetStringInfoDatum(), GetStringInfoLength(), GRAYColorspace, GrayscaleMatteType, GrayscaleType, ImageError, IsOptionMember(), IssRGBCompatibleColorspace(), LabColorspace, LocaleCompare(), LogMagickEvent(), magick_unreferenced, MagickFalse, MagickSignature, MagickTrue, MissingDelegateWarning, PerceptualIntent, ProfileImageTag, RelativeIntent, ResetImageProfileIterator(), ResourceLimitError, SaturationIntent, SetImageColorspace(), SetImageGray(), SetImageProfile(), SetImageProgress(), SetImageStorageClass(), SetPixelBlue, SetPixelGreen, SetPixelIndex, SetPixelRed, SetsRGBImageProfile(), SetStringInfoDatum(), _Image::signature, sRGBColorspace, SyncCacheViewAuthenticPixels(), ThrowBinaryException, ThrowMagickException(), ThrowProfileException, TraceEvent, TrueColorMatteType, TrueColorType, UndefinedColorspace, XYZColorspace, YCbCrColorspace, and YUVColorspace.
|
inlinestatic |
Definition at line 1770 of file profile.c.
Referenced by Sync8BimProfile(), and SyncExifProfile().
|
inlinestatic |
Definition at line 1798 of file profile.c.
References LSBEndian.
Referenced by ReadProfileMSBLong(), and SyncExifProfile().
|
inlinestatic |
Definition at line 1815 of file profile.c.
References MSBEndian, and ReadProfileLong().
Referenced by Sync8BimProfile().
|
inlinestatic |
Definition at line 1828 of file profile.c.
References MSBEndian, and ReadProfileShort().
Referenced by Sync8BimProfile().
|
inlinestatic |
Definition at line 1782 of file profile.c.
References LSBEndian.
Referenced by ReadProfileMSBShort(), and SyncExifProfile().
|
inlinestatic |
Definition at line 1381 of file profile.c.
Referenced by GetProfilesFromResourceBlock(), and WriteTo8BimProfile().
|
inlinestatic |
Definition at line 1388 of file profile.c.
Referenced by GetProfilesFromResourceBlock(), and WriteTo8BimProfile().
|
inlinestatic |
Definition at line 1398 of file profile.c.
Referenced by GetProfilesFromResourceBlock(), and WriteTo8BimProfile().
| MagickExport StringInfo* RemoveImageProfile | ( | Image * | image, |
| const char * | name | ||
| ) |
Definition at line 1277 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, TraceEvent, and WriteTo8BimProfile().
| MagickExport void ResetImageProfileIterator | ( | const Image * | image | ) |
Definition at line 1334 of file profile.c.
References _Image::debug, _Image::filename, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _Image::profiles, ResetSplayTreeIterator(), _Image::signature, and TraceEvent.
Referenced by GetMagickProperty(), IdentifyImage(), ProfileImage(), and ThumbnailImage().
| MagickExport MagickBooleanType SetImageProfile | ( | Image * | image, |
| const char * | name, | ||
| const StringInfo * | profile | ||
| ) |
Definition at line 1740 of file profile.c.
References MagickFalse, and SetImageProfileInternal().
Referenced by ProfileImage(), SetImageProperty(), and SetsRGBImageProfile().
|
static |
Definition at line 1672 of file profile.c.
References AddValueToSplayTree(), CloneStringInfo(), _Image::color_profile, CompareSplayTreeString(), ConstantString(), CopyMagickString(), _Image::debug, DestroyProfile(), _Image::filename, FormatLocaleString(), GetImageProfile(), GetImageProperty(), GetMagickModule, GetProfilesFromResourceBlock(), GetStringInfoDatum(), GetStringInfoLength(), _ProfileInfo::info, _Image::iptc_profile, _ProfileInfo::length, LocaleCompare(), LocaleLower(), LogMagickEvent(), MagickFalse, MagickSignature, MaxTextExtent, NewSplayTree(), _Image::profiles, RelinquishMagickMemory(), _Image::signature, TraceEvent, and WriteTo8BimProfile().
Referenced by GetProfilesFromResourceBlock(), and SetImageProfile().
|
static |
Definition at line 469 of file profile.c.
References AcquireStringInfo(), DestroyStringInfo(), GetImageProfile(), MagickFalse, MagickSignature, SetImageProfile(), SetStringInfoDatum(), and _Image::signature.
Referenced by ProfileImage().
|
static |
Definition at line 1882 of file profile.c.
References GetStringInfoDatum(), GetStringInfoLength(), MagickFalse, MagickTrue, MSBEndian, PixelsPerCentimeterResolution, ReadProfileByte(), ReadProfileMSBLong(), ReadProfileMSBShort(), _Image::units, WriteProfileLong(), WriteProfileShort(), _Image::x_resolution, and _Image::y_resolution.
Referenced by SyncImageProfiles().
|
static |
Definition at line 1943 of file profile.c.
References AddValueToSplayTree(), DestroySplayTree(), EXIF_NUM_FORMATS, GetStringInfoDatum(), GetStringInfoLength(), GetValueFromSplayTree(), LSBEndian, MagickFalse, MagickTrue, MaxDirectoryStack, MSBEndian, NewSplayTree(), _Image::orientation, ReadProfileByte(), ReadProfileLong(), ReadProfileShort(), TAG_EXIF_OFFSET, TAG_INTEROP_OFFSET, _Image::units, WriteProfileLong(), WriteProfileShort(), _Image::x_resolution, and _Image::y_resolution.
Referenced by SyncImageProfiles().
| MagickExport MagickBooleanType SyncImageProfiles | ( | Image * | image | ) |
Definition at line 2167 of file profile.c.
References GetImageProfile(), MagickFalse, MagickTrue, Sync8BimProfile(), and SyncExifProfile().
Referenced by WriteImage().
|
inlinestatic |
Definition at line 1842 of file profile.c.
References CopyMagickMemory(), and LSBEndian.
Referenced by Sync8BimProfile(), and SyncExifProfile().
|
static |
Definition at line 1864 of file profile.c.
References CopyMagickMemory(), and LSBEndian.
Referenced by Sync8BimProfile(), and SyncExifProfile().
|
inlinestatic |
Definition at line 1406 of file profile.c.
References CopyMagickMemory().
Referenced by WriteTo8BimProfile().
|
static |
Definition at line 1419 of file profile.c.
References AcquireStringInfo(), AddValueToSplayTree(), CloneStringInfo(), ConstantString(), CopyMagickMemory(), _StringInfo::datum, DestroyStringInfo(), GetStringInfoDatum(), GetStringInfoLength(), GetValueFromSplayTree(), _StringInfo::length, LocaleCompare(), LocaleNCompare(), _Image::profiles, ReadResourceByte(), ReadResourceLong(), ReadResourceShort(), and WriteResourceLong().
Referenced by DeleteImageProfile(), RemoveImageProfile(), and SetImageProfileInternal().