profile.c File Reference

#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/monitor-private.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/thread-private.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "lcms.h"
Include dependency graph for profile.c:

Go to the source code of this file.

Defines

#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

MagickExport MagickBooleanType CloneImageProfiles (Image *image, const Image *clone_image)
MagickExport MagickBooleanType DeleteImageProfile (Image *image, const char *name)
MagickExport void DestroyImageProfiles (Image *image)
MagickExport const StringInfoGetImageProfile (const Image *image, const char *name)
MagickExport char * GetNextImageProfile (const Image *image)
static unsigned short ** DestroyPixelThreadSet (unsigned short **pixels)
static unsigned short ** AcquirePixelThreadSet (const size_t columns, const size_t channels)
static cmsHTRANSFORM * DestroyTransformThreadSet (cmsHTRANSFORM *transform)
static cmsHTRANSFORM * AcquireTransformThreadSet (const cmsHPROFILE source_profile, const DWORD source_type, const cmsHPROFILE target_profile, const DWORD target_type, const int intent, const DWORD flags)
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 StringInfoRemoveImageProfile (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 Documentation

#define EXIF_DELIMITER   "\n"
#define EXIF_NUM_FORMATS   12

Referenced by SyncImageProfiles().

#define MaxDirectoryStack   16
#define ProfileImageTag   "Profile/Image"

Referenced by ProfileImage().

#define TAG_EXIF_OFFSET   0x8769
#define TAG_INTEROP_OFFSET   0xa005
#define ThrowProfileException ( severity,
tag,
context   ) 
Value:
{ \
  (void) cmsCloseProfile(source_profile); \
  (void) cmsCloseProfile(target_profile); \
  ThrowBinaryException(severity,tag,context); \
}

Referenced by ProfileImage().


Function Documentation

static unsigned short** AcquirePixelThreadSet ( const size_t  columns,
const size_t  channels 
) [static]
static cmsHTRANSFORM* AcquireTransformThreadSet ( const cmsHPROFILE  source_profile,
const DWORD  source_type,
const cmsHPROFILE  target_profile,
const DWORD  target_type,
const int  intent,
const DWORD  flags 
) [static]
MagickExport MagickBooleanType CloneImageProfiles ( Image image,
const Image clone_image 
)
MagickExport MagickBooleanType DeleteImageProfile ( Image image,
const char *  name 
)
MagickExport void DestroyImageProfiles ( Image image  ) 

Definition at line 189 of file profile.c.

References DestroySplayTree(), and _Image::profiles.

Referenced by DestroyImage(), and StripImage().

static unsigned short** DestroyPixelThreadSet ( unsigned short **  pixels  )  [static]
static void* DestroyProfile ( void *  profile  )  [static]

Definition at line 1399 of file profile.c.

References DestroyStringInfo().

Referenced by SetImageProfile().

static cmsHTRANSFORM* DestroyTransformThreadSet ( cmsHTRANSFORM *  transform  )  [static]

Definition at line 357 of file profile.c.

References GetOpenMPMaximumThreads(), and RelinquishAlignedMemory().

Referenced by AcquireTransformThreadSet(), and ProfileImage().

MagickExport const StringInfo* GetImageProfile ( const Image image,
const char *  name 
)
MagickExport char* GetNextImageProfile ( const Image image  ) 
static MagickBooleanType GetProfilesFromResourceBlock ( Image image,
const StringInfo resource_block 
) [static]
MagickExport MagickBooleanType ProfileImage ( Image image,
const char *  name,
const void *  datum,
const size_t  length,
const MagickBooleanType   magick_unusedclone 
)

Definition at line 796 of file profile.c.

References AbsoluteIntent, AcquireCacheView(), AcquirePixelThreadSet(), AcquireStringInfo(), AcquireTransformThreadSet(), _Image::black_point_compensation, CMYKColorspace, ColorSeparationMatteType, ColorSeparationType, _Image::colorspace, _Image::columns, CompareStringInfo(), ConstantString(), _Image::debug, DeleteImageProfile(), DestroyCacheView(), DestroyPixelThreadSet(), DestroyString(), DestroyStringInfo(), DestroyTransformThreadSet(), DirectClass, _Image::exception, _Image::filename, GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixels(), GetImageProfile(), GetImageProperty(), GetMagickModule, GetNextImageProfile(), GetOpenMPThreadId(), GetStringInfoDatum(), GetStringInfoLength(), GlobExpression(), GRAYColorspace, GrayscaleMatteType, GrayscaleType, ImageError, IsGrayImage(), LabColorspace, LocaleCompare(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _Image::matte, MissingDelegateWarning, PerceptualIntent, ProfileImageTag, _Image::progress_monitor, RelativeIntent, RelinquishMagickMemory(), _Image::rendering_intent, ResetImageProfileIterator(), ResourceLimitError, RGBColorspace, _Image::rows, SaturationIntent, ScaleQuantumToShort(), ScaleShortToQuantum(), SetAdobeRGB1998ImageProfile(), SetImageColorspace(), SetImageProfile(), SetImageProgress(), SetImageStorageClass(), SetsRGBImageProfile(), SetStringInfoDatum(), _Image::signature, StringToArgv(), SubstituteString(), SyncCacheViewAuthenticPixels(), ThrowBinaryException, ThrowMagickException(), ThrowProfileException, TraceEvent, TrueColorMatteType, TrueColorType, _Image::type, UndefinedColorspace, XYZColorspace, YCbCrColorspace, and YUVColorspace.

static int ReadProfileByte ( unsigned char **  p,
size_t *  length 
) [inline, static]

Definition at line 1650 of file profile.c.

Referenced by SyncImageProfiles().

static unsigned long ReadProfileLong ( const EndianType  endian,
unsigned char *  buffer 
) [inline, static]

Definition at line 1678 of file profile.c.

References MSBEndian.

Referenced by SyncImageProfiles().

static unsigned short ReadProfileShort ( const EndianType  endian,
unsigned char *  buffer 
) [inline, static]

Definition at line 1662 of file profile.c.

References MSBEndian.

Referenced by SyncImageProfiles().

static const unsigned char* ReadResourceByte ( const unsigned char *  p,
unsigned char *  quantum 
) [inline, static]

Definition at line 1404 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]

Definition at line 1411 of file profile.c.

static const unsigned char* ReadResourceLong ( const unsigned char *  p,
unsigned long *  quantum 
) [inline, static]

Definition at line 1422 of file profile.c.

Referenced by GetProfilesFromResourceBlock().

static const unsigned char* ReadResourceShort ( const unsigned char *  p,
unsigned short *  quantum 
) [inline, static]

Definition at line 1432 of file profile.c.

Referenced by GetProfilesFromResourceBlock().

MagickExport StringInfo* RemoveImageProfile ( Image image,
const char *  name 
)
MagickExport void ResetImageProfileIterator ( const Image image  ) 
static MagickBooleanType SetAdobeRGB1998ImageProfile ( Image image  )  [static]
MagickExport MagickBooleanType SetImageProfile ( Image image,
const char *  name,
const StringInfo profile 
)
static MagickBooleanType SetsRGBImageProfile ( Image image  )  [static]
MagickExport MagickBooleanType SyncImageProfiles ( Image image  ) 
static void WriteProfileLong ( const EndianType  endian,
const unsigned long  value,
unsigned char *  p 
) [inline, static]

Definition at line 1695 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 1717 of file profile.c.

References CopyMagickMemory(), and MSBEndian.

Referenced by SyncImageProfiles().


Generated on 19 Nov 2009 for MagickCore by  doxygen 1.6.1