IccMAX 2.1.27
Color Profile Tools
|
#include <IccTagXml.h>
Public Member Functions | |
virtual | ~CIccTagXmlSparseMatrixArray () |
virtual void | Describe (std::string &sDescription, int nVerboseness) |
virtual void | DetachIO () |
icUInt32Number | GetBytesPerMatrix () const |
icUInt32Number | GetChannelsPerMatrix () const |
virtual const char * | GetClassName () const |
virtual const char * | GetExtClassName () const |
virtual const char * | GetExtDerivedClassName () const |
virtual IIccExtensionTag * | GetExtension () |
icSparseMatrixType | GetMatrixType () const |
icUInt32Number | GetNumMatrices () const |
Returns the number of matrices in the array. | |
virtual icUInt32Number | GetNumValues () const |
bool | GetSparseMatrix (CIccSparseMatrix &mtx, int nIndex, bool bInitFromData=true) |
virtual icArraySignature | GetTagArrayType () const |
virtual icStructSignature | GetTagStructType () const |
virtual icTagTypeSignature | GetType () const |
virtual bool | GetValues (icFloatNumber *DstVector, icUInt32Number nStart=0, icUInt32Number nVectorSize=1) const |
virtual bool | Interpolate (icFloatNumber *DstVector, icFloatNumber val, icUInt32Number nVectorSize=1, icFloatNumber *zeroVals=NULL) const |
virtual bool | IsArrayType () |
virtual bool | IsMatrixArray () const |
virtual bool | IsMBBType () |
virtual bool | IsNumArrayType () const |
virtual bool | IsSupported () |
virtual CIccTag * | NewCopy () |
virtual CIccTag * | NewCopy () const |
virtual bool | ParseXml (xmlNode *pNode, std::string &parseStr) |
virtual bool | Read (icUInt32Number size, CIccIO *pIO) |
virtual bool | Read (icUInt32Number size, CIccIO *pIO, CIccProfile *pProfile) |
virtual bool | ReadAll () |
bool | Reset (icUInt32Number nNumMatrices, icUInt16Number nChannelsPerMatrix) |
void | SetMatrixType (icSparseMatrixType nType) |
virtual bool | ToXml (std::string &xml, std::string blanks="") |
virtual icValidateStatus | Validate (std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const |
virtual bool | ValuePos (icFloatNumber &DstPos, icFloatNumber val, bool &bNoZero) const |
virtual bool | Write (CIccIO *pIO) |
Static Public Member Functions | |
static CIccTag * | Create (icTagTypeSignature sig) |
Data Fields | |
icUInt32Number | m_nReserved |
Protected Attributes | |
bool | m_bNonZeroPadding |
icUInt16Number | m_nChannelsPerMatrix |
icSparseMatrixType | m_nMatrixType |
icUInt32Number | m_nSize |
icUInt8Number * | m_RawData |
|
inlinevirtual |
|
staticinherited |
Name: CIccTag::Create
Purpose: This is a static tag creator based upon tag signature type
Args: sig = tag type signature
Return: Pointer to Allocated tag
References CIccTagCreator::CreateTag().
Referenced by CIccDefaultEncProfileConverter::ConvertFromParams(), CIccTagStruct::LoadElem(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), CIccTagXmlArray::ParseXml(), CIccMpeTintArray::Read(), CIccTagLutAtoB::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagLut8::SetColorSpaces(), CIccTagLut16::SetColorSpaces(), and CIccProfileDescText::SetType().
|
virtualinherited |
Name: CIccTagSparseMatrixArray::Describe
Purpose: Dump data associated with the tag to a string
Args: sDescription - string to concatenate tag dump to
Reimplemented from CIccTag.
References CIccSparseMatrix::CIccSparseMatrix(), IIccSparseMatrixEntry::get(), CIccSparseMatrix::GetColumnsForRow(), CIccSparseMatrix::GetData(), CIccSparseMatrix::GetRowStart(), CIccTagSparseMatrixArray::m_nChannelsPerMatrix, CIccTagSparseMatrixArray::m_nMatrixType, CIccTagSparseMatrixArray::m_nSize, CIccTagSparseMatrixArray::m_RawData, and CIccSparseMatrix::Rows().
|
inlinevirtualinherited |
Function: ReadAll() - Read All sub data for tag from file. Called by CIccProfile::ReadAll() to read all sub data for tag
Returns true if ReadAll is successful.
|
inlineinherited |
References CIccTagSparseMatrixArray::m_nChannelsPerMatrix.
Referenced by CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::GetSparseMatrix(), CIccTagSparseMatrixArray::GetValues(), CIccTagSparseMatrixArray::Interpolate(), CIccTagSparseMatrixArray::operator=(), ParseXml(), CIccTagSparseMatrixArray::Read(), CIccTagSparseMatrixArray::Reset(), and ToXml().
|
inlineinherited |
References CIccTagSparseMatrixArray::m_nChannelsPerMatrix.
Referenced by CIccArrayNamedColor::Validate().
|
inlinevirtual |
Reimplemented from CIccTagSparseMatrixArray.
|
inlinevirtualinherited |
Implements IIccExtensionTag.
Referenced by icProfDescToXml(), and icXmlParseProfDesc().
|
inlinevirtualinherited |
|
inlinevirtual |
Reimplemented from CIccTag.
|
inlineinherited |
References CIccTagSparseMatrixArray::m_nMatrixType.
|
inlineinherited |
Returns the number of matrices in the array.
References CIccTagSparseMatrixArray::m_nSize.
Referenced by CIccTagSparseMatrixArray::GetNumValues().
|
inlinevirtualinherited |
Implements CIccTagNumArray.
References CIccTagSparseMatrixArray::GetNumMatrices().
|
inherited |
Name: CIccTagSparseMatrixArray::GetValues
Purpose: Gets values from the num array tag as floating point numbers
Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values
References CIccTagSparseMatrixArray::GetBytesPerMatrix(), CIccTagSparseMatrixArray::m_nSize, CIccTagSparseMatrixArray::m_RawData, and CIccSparseMatrix::Reset().
|
inlinevirtualinherited |
Reimplemented in CIccTagArray.
References icSigUndefinedArray.
Referenced by icGetTagArrayHandlerOfType(), and CIccProfileXml::ParseTag().
|
inlinevirtualinherited |
Reimplemented in CIccTagStruct.
References icSigUndefinedStruct.
Referenced by icGetTagStructHandlerOfType(), CIccArrayColorantInfo::Validate(), and CIccArrayNamedColor::Validate().
|
inlinevirtualinherited |
Function: GetType()
Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.
Reimplemented from CIccTag.
References icSigSparseMatrixArrayType.
Referenced by CIccTagSparseMatrixArray::Write().
|
virtualinherited |
Implements CIccTagNumArray.
References CIccTagSparseMatrixArray::GetBytesPerMatrix(), CIccTagSparseMatrixArray::m_nSize, and CIccTagSparseMatrixArray::m_RawData.
|
virtualinherited |
Name: CIccTagSparseMatrixArray::Interpolate
Purpose: Gets values from the num array tag as floating point numbers
Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values
Implements CIccTagNumArray.
References CIccSparseMatrix::CIccSparseMatrix(), CIccSparseMatrix::Cols(), CIccTagSparseMatrixArray::GetBytesPerMatrix(), CIccSparseMatrix::Interp(), CIccTagSparseMatrixArray::m_nSize, CIccTagSparseMatrixArray::m_RawData, and CIccSparseMatrix::Rows().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Implements CIccTagNumArray.
|
inlinevirtualinherited |
Reimplemented in CIccMBB.
Referenced by CIccProfileXml::ParseTag().
|
inlinevirtualinherited |
Reimplemented from CIccTag.
|
inlinevirtualinherited |
Function: IsSupported(size, pIO) - Check if tag fully supported for apply purposes. By Default inherited classes are supported. Unknown tag types are not supported.
Returns true if tag type is supported.
Reimplemented in CIccTagUnknown, CIccTagEmbeddedProfile, and CIccTagMultiProcessElement.
|
inlinevirtualinherited |
References CIccTagSparseMatrixArray::CIccTagSparseMatrixArray().
|
inlinevirtualinherited |
Function: NewCopy(sDescription) Each derived tag will implement it's own NewCopy() function.
Parameter(s): none
Returns a new CIccTag object that is a copy of this object.
Reimplemented in CIccTagUnknown, CIccTagText, CIccTagUtf8Text, CIccTagZipUtf8Text, CIccTagZipXml, CIccTagUtf16Text, CIccTagTextDescription, CIccTagSignature, CIccTagNamedColor2, CIccTagXYZ, CIccTagChromaticity, CIccTagCicp, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, CIccTagFloatNum< T, Tsig >, CIccTagMeasurement, CIccTagMultiLocalizedUnicode, CIccTagData, CIccTagDateTime, CIccTagColorantOrder, CIccTagColorantTable, CIccTagViewingConditions, CIccTagProfileSeqDesc, CIccTagResponseCurveSet16, CIccTagSpectralDataInfo, CIccTagSpectralViewingConditions, CIccTagEmbeddedHeightImage, CIccTagEmbeddedNormalImage, CIccTagStruct, CIccTagArray, CIccTagDict, CIccTagEmbeddedProfile, CIccCurve, CIccTagCurve, CIccTagParametricCurve, CIccTagSegmentedCurve, CIccMBB, CIccTagLutAtoB, CIccTagLutBtoA, CIccTagLut8, CIccTagLut16, CIccTagGamutBoundaryDesc, CIccTagMultiProcessElement, CIccTagProfileSequenceId, CIccTagXmlText, CIccTagXmlUtf8Text, CIccTagXmlZipUtf8Text, CIccTagXmlZipXml, CIccTagXmlUtf16Text, CIccTagXmlTextDescription, and CIccTagXmlMultiLocalizedUnicode.
Referenced by CIccMpeTintArray::CIccMpeTintArray(), CIccProfileDescText::CIccProfileDescText(), CIccTagArray::CIccTagArray(), CIccTagStruct::CIccTagStruct(), CDevLinkWriter::begin(), icConvertEncodingProfile(), CIccMpeTintArray::operator=(), CIccProfileDescText::operator=(), CIccTagArray::operator=(), and CIccTagStruct::operator=().
|
virtual |
Implements CIccTagXml.
References CIccSparseMatrix::FillFromFullMatrix(), CIccXmlArrayType< T, Tsig >::GetBuf(), CIccTagSparseMatrixArray::GetBytesPerMatrix(), CIccSparseMatrix::GetColumnsForRow(), CIccSparseMatrix::GetData(), CIccSparseMatrix::GetMaxEntries(), IIccSparseMatrixEntry::getPtr(), CIccSparseMatrix::GetRowStart(), CIccXmlArrayType< T, Tsig >::GetSize(), icXmlAttrValue(), icXmlFindAttr(), icXmlFindNode(), CIccSparseMatrix::Init(), CIccTagSparseMatrixArray::m_nMatrixType, CIccTagSparseMatrixArray::m_RawData, CIccXmlArrayType< T, Tsig >::ParseTextArray(), CIccTagSparseMatrixArray::Reset(), and CIccSparseMatrix::Reset().
|
virtualinherited |
Name: CIccTagSparseMatrixArray::Read
Purpose: Read in the tag contents into a data block
Args: size - # of bytes in tag, pIO - IO object to read tag from
Return: true = successful, false = failure
Reimplemented from CIccTag.
References CIccTagSparseMatrixArray::GetBytesPerMatrix(), CIccSparseMatrix::GetColumnsForRow(), CIccSparseMatrix::GetData(), CIccSparseMatrix::GetNumEntries(), IIccSparseMatrixEntry::getPtr(), icSparseMatrixFloat16, icSparseMatrixFloat32, icSparseMatrixUInt16, icSparseMatrixUInt8, CIccTagSparseMatrixArray::m_bNonZeroPadding, CIccTagSparseMatrixArray::m_nMatrixType, CIccTag::m_nReserved, CIccTagSparseMatrixArray::m_nSize, CIccTagSparseMatrixArray::m_RawData, CIccSparseMatrix::MaxEntries(), CIccIO::Read16(), CIccIO::Read32(), CIccIO::Read8(), CIccIO::ReadFloat16Float(), CIccIO::ReadFloat32Float(), CIccIO::ReadUInt16Float(), CIccIO::ReadUInt8Float(), CIccTagSparseMatrixArray::Reset(), CIccSparseMatrix::Reset(), and CIccSparseMatrix::Rows().
|
inlinevirtualinherited |
Function: Read(size, pIO) - Read tag from file. Each derived tag will implement it's own Read() function.
Parameter(s): size - number of bytes in tag including the type signature. pIO - IO object used to read in tag. The IO object should already be initialized to point to the begining of the tag.
Returns true if Read is successful.
Reimplemented in CIccTagEmbeddedProfile.
References CIccTag::Read().
|
inlinevirtualinherited |
Function: ReadAll() - Read All sub data for tag from file. Called by CIccProfile::ReadAll() to read all sub data for tag
Returns true if ReadAll is successful.
Reimplemented in CIccTagEmbeddedProfile.
|
inherited |
Name: CIccTagSparseMatrixArray::Reset
Purpose: Sets the size of the data array erasing all previous values
Args: nNumMatrices - number of matrices numChannelsPerMatrix - Equivalent number of output channels that determines the fixed block size for each matrix
References CIccTagSparseMatrixArray::GetBytesPerMatrix(), icRealloc(), CIccTagSparseMatrixArray::m_nChannelsPerMatrix, CIccTagSparseMatrixArray::m_nSize, and CIccTagSparseMatrixArray::m_RawData.
Referenced by ParseXml(), and CIccTagSparseMatrixArray::Read().
|
inlineinherited |
References CIccTagSparseMatrixArray::m_nMatrixType.
|
virtual |
Implements CIccTagXml.
References CIccSparseMatrix::Cols(), CIccXmlArrayType< T, Tsig >::DumpArray(), CIccTagSparseMatrixArray::GetBytesPerMatrix(), CIccSparseMatrix::GetColumnsForRow(), CIccSparseMatrix::GetData(), CIccSparseMatrix::GetNumRowColumns(), IIccSparseMatrixEntry::getPtr(), CIccSparseMatrix::GetRowOffset(), icConvert16Bit, icConvertFloat, CIccTagSparseMatrixArray::m_nChannelsPerMatrix, CIccTagSparseMatrixArray::m_nMatrixType, CIccTagSparseMatrixArray::m_nSize, CIccTagSparseMatrixArray::m_RawData, CIccSparseMatrix::Reset(), and CIccSparseMatrix::Rows().
|
virtualinherited |
Name: CIccTagSparseMatrixArray::Validate
Purpose: Validates tag data
Args: sigPath - signature path of tag in profile to validate sReport - string to put validation report results profile - pointer to profile that contains the tag
Reimplemented from CIccTag.
References CIccSparseMatrix::CIccSparseMatrix(), CIccSparseMatrix::Cols(), CIccSparseMatrix::GetNumEntries(), CIccInfo::GetSigPathName(), icGetFirstSigPathSig(), icGetSecondSigPathSig(), icGetSpaceSamples(), icMaxStatus(), icMsgValidateCriticalError, icMsgValidateNonCompliant, icMsgValidateWarning, icSigSparseMatrixReflectanceData, icSigSpectralWhitePointTag, icSparseMatrixFloat16, icSparseMatrixFloat32, icSparseMatrixUInt16, icSparseMatrixUInt8, icValidateCriticalError, icValidateNonCompliant, icValidateOK, icValidateWarning, CIccSparseMatrix::Init(), CIccSparseMatrix::IsValid(), CIccTagSparseMatrixArray::m_bNonZeroPadding, CIccTagSparseMatrixArray::m_nChannelsPerMatrix, CIccTagSparseMatrixArray::m_nMatrixType, CIccTagSparseMatrixArray::m_nSize, CIccTagSparseMatrixArray::m_RawData, CIccSparseMatrix::MaxEntries(), CIccSparseMatrix::Reset(), CIccSparseMatrix::Rows(), icHeader::spectralPCS, and CIccSparseMatrix::Union().
|
virtualinherited |
Name: CIccTagSparseMatrixArray::ValuePos
Purpose: Gets position of a value int the num array tag
Args: DstPos - position of val in array val - value to look for in array. bNoZero - flag indicating whether first entry is zero
Implements CIccTagNumArray.
|
virtualinherited |
Name: CIccTagSparseMatrixArray::Write
Purpose: Write the tag to a file
Args: pIO - The IO object to write tag to.
Return: true = succesful, false = failure
Reimplemented from CIccTag.
References CIccIO::Align32(), CIccSparseMatrix::GetColumnsForRow(), CIccSparseMatrix::GetData(), CIccSparseMatrix::GetNumEntries(), IIccSparseMatrixEntry::getPtr(), CIccTagSparseMatrixArray::GetType(), icSparseMatrixFloat16, icSparseMatrixFloat32, icSparseMatrixUInt16, icSparseMatrixUInt8, CIccTagSparseMatrixArray::m_nChannelsPerMatrix, CIccTagSparseMatrixArray::m_nMatrixType, CIccTag::m_nReserved, CIccTagSparseMatrixArray::m_nSize, CIccTagSparseMatrixArray::m_RawData, CIccSparseMatrix::Reset(), CIccSparseMatrix::Rows(), CIccIO::Write16(), CIccIO::Write32(), CIccIO::WriteFloat16Float(), CIccIO::WriteFloat32Float(), CIccIO::WriteUInt16Float(), and CIccIO::WriteUInt8Float().
|
protectedinherited |
|
protectedinherited |
Referenced by CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::Describe(), CIccTagSparseMatrixArray::GetBytesPerMatrix(), CIccTagSparseMatrixArray::GetChannelsPerMatrix(), CIccTagSparseMatrixArray::operator=(), CIccTagSparseMatrixArray::Reset(), ToXml(), CIccTagSparseMatrixArray::Validate(), and CIccTagSparseMatrixArray::Write().
|
protectedinherited |
Referenced by CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::Describe(), CIccTagSparseMatrixArray::GetMatrixType(), ParseXml(), CIccTagSparseMatrixArray::Read(), CIccTagSparseMatrixArray::SetMatrixType(), ToXml(), CIccTagSparseMatrixArray::Validate(), and CIccTagSparseMatrixArray::Write().
|
inherited |
Referenced by CIccTag::CIccTag(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::CIccTagMultiProcessElement(), CIccTagMultiProcessElement::operator=(), CIccProfileXml::ParseTag(), CIccTagXmlStruct::ParseTag(), CIccMpeXmlTintArray::ParseXml(), CIccTagXmlArray::ParseXml(), CIccTagText::Read(), CIccTagUtf8Text::Read(), CIccTagZipUtf8Text::Read(), CIccTagUtf16Text::Read(), CIccTagTextDescription::Read(), CIccTagSignature::Read(), CIccTagNamedColor2::Read(), CIccTagXYZ::Read(), CIccTagChromaticity::Read(), CIccTagCicp::Read(), CIccTagSparseMatrixArray::Read(), CIccTagFixedNum< T, Tsig >::Read(), CIccTagNum< T, Tsig >::Read(), CIccTagFloatNum< T, Tsig >::Read(), CIccTagMeasurement::Read(), CIccTagMultiLocalizedUnicode::Read(), CIccTagData::Read(), CIccTagDateTime::Read(), CIccTagColorantOrder::Read(), CIccTagColorantTable::Read(), CIccTagViewingConditions::Read(), CIccTagProfileSeqDesc::Read(), CIccTagResponseCurveSet16::Read(), CIccTagSpectralDataInfo::Read(), CIccTagSpectralViewingConditions::Read(), CIccTagEmbeddedHeightImage::Read(), CIccTagEmbeddedNormalImage::Read(), CIccTagStruct::Read(), CIccTagArray::Read(), CIccTagDict::Read(), CIccTagCurve::Read(), CIccTagParametricCurve::Read(), CIccTagLutAtoB::Read(), CIccTagLut8::Read(), CIccTagLut16::Read(), CIccTagGamutBoundaryDesc::Read(), CIccTagMultiProcessElement::Read(), CIccTagProfileSequenceId::Read(), CIccTagEmbeddedProfile::Read(), CIccTag::Validate(), CIccTagText::Write(), CIccTagUtf8Text::Write(), CIccTagZipUtf8Text::Write(), CIccTagUtf16Text::Write(), CIccTagTextDescription::Write(), CIccTagSignature::Write(), CIccTagNamedColor2::Write(), CIccTagXYZ::Write(), CIccTagChromaticity::Write(), CIccTagCicp::Write(), CIccTagSparseMatrixArray::Write(), CIccTagFixedNum< T, Tsig >::Write(), CIccTagNum< T, Tsig >::Write(), CIccTagFloatNum< T, Tsig >::Write(), CIccTagMeasurement::Write(), CIccTagMultiLocalizedUnicode::Write(), CIccTagData::Write(), CIccTagDateTime::Write(), CIccTagColorantOrder::Write(), CIccTagColorantTable::Write(), CIccTagViewingConditions::Write(), CIccTagProfileSeqDesc::Write(), CIccTagResponseCurveSet16::Write(), CIccTagSpectralDataInfo::Write(), CIccTagSpectralViewingConditions::Write(), CIccTagEmbeddedHeightImage::Write(), CIccTagEmbeddedNormalImage::Write(), CIccTagStruct::Write(), CIccTagArray::Write(), CIccTagDict::Write(), CIccTagEmbeddedProfile::Write(), CIccTagCurve::Write(), CIccTagParametricCurve::Write(), CIccTagLutAtoB::Write(), CIccTagLut8::Write(), CIccTagLut16::Write(), CIccTagGamutBoundaryDesc::Write(), CIccTagMultiProcessElement::Write(), and CIccTagProfileSequenceId::Write().
|
protectedinherited |
Referenced by CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::Describe(), CIccTagSparseMatrixArray::GetNumMatrices(), CIccTagSparseMatrixArray::GetSparseMatrix(), CIccTagSparseMatrixArray::GetValues(), CIccTagSparseMatrixArray::Interpolate(), CIccTagSparseMatrixArray::IsArrayType(), CIccTagSparseMatrixArray::operator=(), CIccTagSparseMatrixArray::Read(), CIccTagSparseMatrixArray::Reset(), ToXml(), CIccTagSparseMatrixArray::Validate(), and CIccTagSparseMatrixArray::Write().
|
protectedinherited |
Referenced by CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::~CIccTagSparseMatrixArray(), CIccTagSparseMatrixArray::Describe(), CIccTagSparseMatrixArray::GetSparseMatrix(), CIccTagSparseMatrixArray::GetValues(), CIccTagSparseMatrixArray::Interpolate(), CIccTagSparseMatrixArray::operator=(), ParseXml(), CIccTagSparseMatrixArray::Read(), CIccTagSparseMatrixArray::Reset(), ToXml(), CIccTagSparseMatrixArray::Validate(), and CIccTagSparseMatrixArray::Write().