SampleICC Main srcforge
Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

IccProfile.cpp File Reference

#include <time.h>
#include <string.h>
#include "IccProfile.h"
#include "IccTag.h"
#include "IccIO.h"
#include "IccUtil.h"
#include "md5.h"

Functions

CIccProfile * ReadIccProfile (const icChar *szFilename)
CIccProfile * ReadIccProfile (const icUInt8Number *pMem, icUInt32Number nSize)
CIccProfile * OpenIccProfile (const icChar *szFilename)
CIccProfile * OpenIccProfile (const icUInt8Number *pMem, icUInt32Number nSize)
CIccProfile * ValidateIccProfile (const icChar *szFilename, std::string &sReport, icValidateStatus &nStatus)
bool SaveIccProfile (const icChar *szFilename, CIccProfile *pIcc)
void CalcProfileID (CIccIO *pIO, icProfileID *pProfileID)
bool CalcProfileID (const icChar *szFilename, icProfileID *pProfileID)

Detailed Description

File: IccProfile.cpp

Contains: Implementation of the CIccProfile class.

Version: V1

Copyright: © see ICC Software License


Function Documentation

bool CalcProfileID (  const icChar *  szFilename,
icProfileID *  pProfileID
) 
 

Name: CalcProfileID

Purpose: Calculate the Profile ID using MD5 Fingerprinting method.

Args: szFileName = name of the file whose profile ID has to be calculated, pProfileID = array where the profileID will be stored

void CalcProfileID (  CIccIO *  pIO,
icProfileID *  pProfileID
) 
 

Name: CalcProfileID

Purpose: Calculate the Profile ID using MD5 Fingerprinting method.

Args: pIO = The CIccIO object, pProfileID = array where the profileID will be stored

CIccProfile* OpenIccProfile (  const icUInt8Number *  pMem,
icUInt32Number  nSize
) 
 

Name: OpenIccProfile

Purpose: Open an ICC profile file. This will only read the profile header and tag directory. Loading of actual tags will be deferred until the tags are actually referenced by FindTag().

Args: pMem = pointer to memory containing profile data nSize = size of memory related to profile

Return: Pointer to icc profile object, or NULL on failure

CIccProfile* OpenIccProfile (  const icChar *  szFilename  ) 
 

Name: OpenIccProfile

Purpose: Open an ICC profile file. This will only read the profile header and tag directory. Loading of actual tags will be deferred until the tags are actually referenced by FindTag().

Args: szFilename - zero terminated string with filename of ICC profile to read

Return: Pointer to icc profile object, or NULL on failure

CIccProfile* ReadIccProfile (  const icUInt8Number *  pMem,
icUInt32Number  nSize
) 
 

Name: ReadIccProfile

Purpose: Read an ICC profile file.

Args: pMem = pointer to memory containing profile data nSize = size of memory related to profile

Return: Pointer to icc profile object, or NULL on failure

CIccProfile* ReadIccProfile (  const icChar *  szFilename  ) 
 

Name: ReadIccProfile

Purpose: Read an ICC profile file.

Args: szFilename - zero terminated string with filename of ICC profile to read

Return: Pointer to icc profile object, or NULL on failure

bool SaveIccProfile (  const icChar *  szFilename,
CIccProfile *  pIcc
) 
 

Name: SaveIccProfile

Purpose: Save an ICC profile file.

Args: szFilename - zero terminated string with filename of ICC profile to create

Return: true = success, false = failure

CIccProfile* ValidateIccProfile (  const icChar *  szFilename,
std::string &  sReport,
icValidateStatus &  nStatus
) 
 

Name: ValidateIccProfile

Purpose: Open an ICC profile file. This will only read the profile header and tag directory. Loading of actual tags will be deferred until the tags are actually referenced by FindTag().

Args: szFilename - zero terminated string with filename of ICC profile to read

Return: Pointer to icc profile object, or NULL on failure


Generated on Tue Jun 26 17:51:44 2007 for IccProfLib by  doxygen 1.3.9.1