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/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"

Include dependency graph for profile.c:

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 StringInfoGetImageProfile (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 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 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

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 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 
)

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 
)

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

Definition at line 1438 of file profile.c.

Referenced by SyncImageProfiles().

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

Definition at line 1466 of file profile.c.

References MSBEndian.

Referenced by SyncImageProfiles().

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

Definition at line 1450 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 1207 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 1214 of file profile.c.

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

Definition at line 1225 of file profile.c.

Referenced by GetProfilesFromResourceBlock().

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

Definition at line 1235 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 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().


Generated on Thu Nov 20 21:54:54 2008 for MagickCore by  doxygen 1.5.7.1