IccMAX 2.1.27
Color Profile Tools
|
#include "IccTagXml.h"
#include "IccMpeXml.h"
#include "IccUtil.h"
#include "IccUtilXml.h"
#include "IccIoXml.h"
#include "IccSparseMatrix.h"
#include "IccProfileXml.h"
#include "IccStructFactory.h"
#include "IccArrayFactory.h"
#include <cstring>
#include <set>
#include <map>
#include <sstream>
#include <iomanip>
Go to the source code of this file.
Typedefs | |
typedef std::map< icUInt32Number, icTagSignature > | IccOffsetTagSigMap |
Functions | |
CIccCLUT * | icCLutFromXml (xmlNode *pNode, int nIn, int nOut, icConvertType nType, std::string &parseStr) |
bool | icCurvesFromXml (LPIccCurve *pCurve, icUInt32Number nChannels, xmlNode *pNode, icConvertType nType, std::string &parseStr) |
bool | icCurvesToXml (std::string &xml, const char *szName, CIccCurve **pCurves, int numCurve, icConvertType nType, std::string blanks) |
bool | icMatrixFromXml (CIccMatrix *pMatrix, xmlNode *pNode) |
bool | icMatrixToXml (std::string &xml, CIccMatrix *pMatrix, std::string blanks) |
bool | icMBBFromXml (CIccMBB *pMBB, xmlNode *pNode, icConvertType nType, std::string &parseStr) |
bool | icMBBToXml (std::string &xml, CIccMBB *pMBB, icConvertType nType, std::string blanks="", bool bSaveGridPoints=false) |
bool | icProfDescToXml (std::string &xml, CIccProfileDescStruct &p, std::string blanks="") |
static bool | icXmlDumpTextData (std::string &xml, std::string blanks, const char *szText, bool bConvert=true) |
bool | icXmlParseProfDesc (xmlNode *pNode, CIccProfileDescStruct &p, std::string &parseStr) |
static std::string | icXmlParseTextString (xmlNode *pNode, std::string &parseStr, bool bConvert=true) |
File: IccTagXML.cpp
Contains: Implementation ICC tag XML format conversions
Version: V1
Copyright: © see ICC Software License
Definition in file IccTagXml.cpp.
typedef std::map<icUInt32Number, icTagSignature> IccOffsetTagSigMap |
CIccCLUT * icCLutFromXml | ( | xmlNode * | pNode, |
int | nIn, | ||
int | nOut, | ||
icConvertType | nType, | ||
std::string & | parseStr | ||
) |
References CIccCLUT::CIccCLUT(), CIccXmlArrayType< T, Tsig >::GetBuf(), CIccCLUT::GetData(), CIccIO::GetLength(), CIccCLUT::GetOutputChannels(), CIccXmlArrayType< T, Tsig >::GetSize(), icConvert16Bit, icConvert8Bit, icConvertFloat, icConvertVariable, IccOpenFileIO(), icXmlAttrValue(), icXmlAttrValue(), icXmlFindAttr(), icXmlFindNode(), CIccCLUT::Init(), CIccCLUT::Init(), CIccCLUT::NumPoints(), CIccXmlArrayType< T, Tsig >::ParseArray(), CIccXmlArrayType< T, Tsig >::ParseTextArrayNum(), CIccIO::Read16(), CIccIO::Read8(), CIccIO::ReadFloat32Float(), and CIccCLUT::SetPrecision().
Referenced by icMBBFromXml(), CIccMpeXmlCLUT::ParseXml(), CIccMpeXmlExtCLUT::ParseXml(), CIccMpeXmlEmissionCLUT::ParseXml(), and CIccMpeXmlReflectanceCLUT::ParseXml().
bool icCurvesFromXml | ( | LPIccCurve * | pCurve, |
icUInt32Number | nChannels, | ||
xmlNode * | pNode, | ||
icConvertType | nType, | ||
std::string & | parseStr | ||
) |
References IIccExtensionTag::GetExtClassName(), IIccExtensionTag::GetExtDerivedClassName(), CIccTag::GetExtension(), CIccCurveXml::ParseXml(), and CIccTagXml::ParseXml().
Referenced by icMBBFromXml().
bool icCurvesToXml | ( | std::string & | xml, |
const char * | szName, | ||
CIccCurve ** | pCurves, | ||
int | numCurve, | ||
icConvertType | nType, | ||
std::string | blanks | ||
) |
References IIccExtensionTag::GetExtDerivedClassName(), CIccTag::GetExtension(), and CIccCurveXml::ToXml().
Referenced by icMBBToXml().
bool icMatrixFromXml | ( | CIccMatrix * | pMatrix, |
xmlNode * | pNode | ||
) |
References icXmlAttrValue(), icXmlFindAttr(), CIccMatrix::m_bUseConstants, and CIccMatrix::m_e.
Referenced by icMBBFromXml().
bool icMatrixToXml | ( | std::string & | xml, |
CIccMatrix * | pMatrix, | ||
std::string | blanks | ||
) |
References CIccMatrix::m_bUseConstants, and CIccMatrix::m_e.
Referenced by icMBBToXml().
bool icMBBFromXml | ( | CIccMBB * | pMBB, |
xmlNode * | pNode, | ||
icConvertType | nType, | ||
std::string & | parseStr | ||
) |
References CIccMBB::GetCLUT(), CIccMBB::GetCurvesA(), CIccMBB::GetCurvesB(), CIccMBB::GetCurvesM(), CIccMBB::GetMatrix(), icCLutFromXml(), icCurvesFromXml(), icMatrixFromXml(), icXmlAttrValue(), icXmlFindAttr(), icXmlFindNode(), CIccMBB::Init(), CIccMBB::IsInputB(), CIccMBB::IsInputMatrix(), CIccMBB::NewCurvesA(), CIccMBB::NewCurvesB(), CIccMBB::NewCurvesM(), CIccMBB::NewMatrix(), and CIccMBB::SetCLUT().
Referenced by CIccTagXmlLutAtoB::ParseXml(), CIccTagXmlLutBtoA::ParseXml(), CIccTagXmlLut8::ParseXml(), and CIccTagXmlLut16::ParseXml().
bool icMBBToXml | ( | std::string & | xml, |
CIccMBB * | pMBB, | ||
icConvertType | nType, | ||
std::string | blanks = "" , |
||
bool | bSaveGridPoints = false |
||
) |
References CIccMBB::GetCLUT(), CIccMBB::GetCurvesA(), CIccMBB::GetCurvesB(), CIccMBB::GetCurvesM(), CIccMBB::GetMatrix(), icCLUTToXml(), icCurvesToXml(), icMatrixToXml(), CIccMBB::InputChannels(), CIccMBB::IsInputMatrix(), CIccMBB::OutputChannels(), and CIccMBB::SwapMBCurves().
Referenced by CIccTagXmlLutAtoB::ToXml(), CIccTagXmlLutBtoA::ToXml(), CIccTagXmlLut8::ToXml(), and CIccTagXmlLut16::ToXml().
bool icProfDescToXml | ( | std::string & | xml, |
CIccProfileDescStruct & | p, | ||
std::string | blanks = "" |
||
) |
References CIccTagXml::GetExtClassName(), CIccTag::GetExtension(), CIccProfileDescText::GetTag(), CIccTag::GetType(), icFixXml(), icGetDeviceAttrName(), icGetSigStr(), icGetTagSigTypeName(), CIccProfileDescStruct::m_attributes, CIccProfileDescStruct::m_deviceMfg, CIccProfileDescStruct::m_deviceMfgDesc, CIccProfileDescStruct::m_deviceModel, CIccProfileDescStruct::m_deviceModelDesc, CIccProfileDescStruct::m_technology, and CIccTagXml::ToXml().
Referenced by CIccTagXmlProfileSeqDesc::ToXml().
|
static |
References icAnsiToUtf8(), and icXmlDumpHexData().
Referenced by CIccTagXmlText::ToXml(), CIccTagXmlUtf8Text::ToXml(), CIccTagXmlUtf16Text::ToXml(), and CIccTagXmlTextDescription::ToXml().
bool icXmlParseProfDesc | ( | xmlNode * | pNode, |
CIccProfileDescStruct & | p, | ||
std::string & | parseStr | ||
) |
References CIccTagXml::GetExtClassName(), CIccTag::GetExtension(), CIccProfileDescText::GetTag(), icGetDeviceAttrValue(), icGetTypeNameTagSig(), icXmlFindNode(), icXmlStrToSig(), CIccProfileDescStruct::m_attributes, CIccProfileDescStruct::m_deviceMfg, CIccProfileDescStruct::m_deviceMfgDesc, CIccProfileDescStruct::m_deviceModel, CIccProfileDescStruct::m_deviceModelDesc, CIccProfileDescStruct::m_technology, CIccTagXml::ParseXml(), and CIccProfileDescText::SetType().
Referenced by CIccTagXmlProfileSeqDesc::ParseXml().
|
static |
References CIccXmlArrayType< T, Tsig >::GetBuf(), CIccIO::GetLength(), CIccXmlArrayType< T, Tsig >::GetSize(), IccOpenFileIO(), icUtf8ToAnsi(), icXmlAttrValue(), icXmlGetHexData(), icXmlGetHexDataSize(), CIccIO::ReadLine(), and CIccXmlArrayType< T, Tsig >::SetSize().
Referenced by CIccTagXmlText::ParseXml(), CIccTagXmlUtf8Text::ParseXml(), CIccTagXmlZipUtf8Text::ParseXml(), CIccTagXmlZipXml::ParseXml(), CIccTagXmlUtf16Text::ParseXml(), and CIccTagXmlTextDescription::ParseXml().