IccMAX 2.1.27
Color Profile Tools
Loading...
Searching...
No Matches
CIccTagXmlEmbeddedHeightImage Class Reference

#include <IccTagXml.h>

+ Inheritance diagram for CIccTagXmlEmbeddedHeightImage:
+ Collaboration diagram for CIccTagXmlEmbeddedHeightImage:

Public Member Functions

virtual ~CIccTagXmlEmbeddedHeightImage ()
 
virtual void Describe (std::string &sDescription, int nVerboseness)
 
virtual void DetachIO ()
 
virtual const icCharGetClassName () const
 
icUInt8NumberGetData (icUInt32Number index=0)
 
virtual IIccExtensionTagGetExtension ()
 
virtual const char * GetGlassName () const
 
icUInt32Number GetSize () const
 
virtual icArraySignature GetTagArrayType () const
 
virtual icStructSignature GetTagStructType () const
 
virtual icTagTypeSignature GetType () const
 
virtual bool IsArrayType ()
 
virtual bool IsMBBType ()
 
virtual bool IsNumArrayType () const
 
virtual bool IsSupported ()
 
virtual CIccTagNewCopy () const
 
icUInt8Numberoperator[] (icUInt32Number index)
 
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 SetSize (icUInt32Number nSize, bool bZeroNew=true)
 
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 Write (CIccIO *pIO)
 

Static Public Member Functions

static CIccTagCreate (icTagTypeSignature sig)
 

Data Fields

icFloatNumber m_fMetersMaxPixelValue
 
icFloatNumber m_fMetersMinPixelValue
 
icImageEncodingType m_nEncodingFormat
 
icUInt32Number m_nReserved
 
icUInt32Number m_nSeamlesIndicator
 

Protected Attributes

icUInt32Number m_nSize
 
icUInt8Numberm_pData
 

Private Member Functions

virtual const char * GetExtClassName () const
 
virtual const char * GetExtDerivedClassName () const
 

Detailed Description

Constructor & Destructor Documentation

◆ ~CIccTagXmlEmbeddedHeightImage()

virtual CIccTagXmlEmbeddedHeightImage::~CIccTagXmlEmbeddedHeightImage ( )
inlinevirtual
687{}

Member Function Documentation

◆ Create()

CIccTag * CIccTag::Create ( icTagTypeSignature  sig)
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

144{
145 return CIccTagCreator::CreateTag(sig);
146}
static CIccTag * CreateTag(icTagTypeSignature tagTypeSig)
Definition IccTagFactory.h:279

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Describe()

void CIccTagEmbeddedHeightImage::Describe ( std::string &  sDescription,
int  nVerboseness 
)
virtualinherited

Name: CIccTagEmbeddedHeightImage::Describe

Purpose: Dump data associated with the tag to a string

Args: sDescription - string to concatenate tag dump to

Reimplemented from CIccTag.

11900{
11901 icChar buf[128];
11902
11903 sprintf(buf, "\nSeamlessIndicater: %d\n", m_nSeamlesIndicator);
11904 sDescription += buf;
11905
11906 switch (m_nEncodingFormat) {
11907 case icPngImageType:
11908 strcpy(buf, "EncodingFormat: PNG\n");
11909 break;
11910 case icTiffImageType:
11911 strcpy(buf, "EncodingFormat: TIFF\n");
11912 break;
11913 default:
11914 sprintf(buf, "EncodingFormat: %d", m_nEncodingFormat);
11915 break;
11916 }
11917 sDescription += buf;
11918
11919 sprintf(buf, "Height minimum pixel: %.4fmeters\n", m_fMetersMinPixelValue);
11920 sprintf(buf, "Height maximum pixel: %.4fmeters\n", m_fMetersMaxPixelValue);
11921
11922 sDescription += "\nImage Data:\n";
11923
11924 for (int i = 0; i<(int)m_nSize; i++) {
11925 if (!(i & 0x1f))
11926 sDescription += "\n";
11927 sprintf(buf, "%02X", m_pData[i]);
11928 sDescription += buf;
11929 }
11930 sDescription += "\n";
11931}
@ icPngImageType
Definition icProfileHeader.h:1354
@ icTiffImageType
Definition icProfileHeader.h:1355
char icChar
Definition IccDefs.h:110
icUInt32Number m_nSeamlesIndicator
Definition IccTagBasic.h:1775
icFloatNumber m_fMetersMaxPixelValue
Definition IccTagBasic.h:1778
icUInt32Number m_nSize
Definition IccTagBasic.h:1782
icImageEncodingType m_nEncodingFormat
Definition IccTagBasic.h:1776
icUInt8Number * m_pData
Definition IccTagBasic.h:1781
icFloatNumber m_fMetersMinPixelValue
Definition IccTagBasic.h:1777

References icPngImageType, icTiffImageType, CIccTagEmbeddedHeightImage::m_fMetersMaxPixelValue, CIccTagEmbeddedHeightImage::m_fMetersMinPixelValue, CIccTagEmbeddedHeightImage::m_nEncodingFormat, CIccTagEmbeddedHeightImage::m_nSeamlesIndicator, CIccTagEmbeddedHeightImage::m_nSize, and CIccTagEmbeddedHeightImage::m_pData.

◆ DetachIO()

virtual void CIccTag::DetachIO ( )
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.

183{}

◆ GetClassName()

virtual const icChar * CIccTagEmbeddedHeightImage::GetClassName ( ) const
inlinevirtualinherited

Reimplemented from CIccTag.

1761{ return "CIccTagEmbeddedHeightImage"; }

◆ GetData()

icUInt8Number * CIccTagEmbeddedHeightImage::GetData ( icUInt32Number  index = 0)
inlineinherited
1771{ return &m_pData[index]; }

References CIccTagEmbeddedHeightImage::m_pData.

Referenced by ParseXml().

+ Here is the caller graph for this function:

◆ GetExtClassName()

virtual const char * CIccTagXml::GetExtClassName ( ) const
inlinevirtualinherited

Implements IIccExtensionTag.

79{ return "CIccTagXml"; }

Referenced by icProfDescToXml(), and icXmlParseProfDesc().

+ Here is the caller graph for this function:

◆ GetExtDerivedClassName()

virtual const char * CIccTagXml::GetExtDerivedClassName ( ) const
inlinevirtualinherited

Implements IIccExtensionTag.

Reimplemented in CIccCurveXml.

80{ return ""; }

◆ GetExtension()

virtual IIccExtensionTag * CIccTagXmlEmbeddedHeightImage::GetExtension ( )
inlinevirtual

Reimplemented from CIccTag.

691{ return this; }

◆ GetGlassName()

virtual const char * CIccTagXmlEmbeddedHeightImage::GetGlassName ( ) const
inlinevirtual
689{ return "CIccTagXmlEmbeddedHeightImage"; }

◆ GetSize()

icUInt32Number CIccTagEmbeddedHeightImage::GetSize ( ) const
inlineinherited
1768{ return m_nSize; }

References CIccTagEmbeddedHeightImage::m_nSize.

◆ GetTagArrayType()

virtual icArraySignature CIccTag::GetTagArrayType ( ) const
inlinevirtualinherited

Reimplemented in CIccTagArray.

133{ return icSigUndefinedArray; }
@ icSigUndefinedArray
Definition icProfileHeader.h:617

References icSigUndefinedArray.

Referenced by icGetTagArrayHandlerOfType(), and CIccProfileXml::ParseTag().

+ Here is the caller graph for this function:

◆ GetTagStructType()

virtual icStructSignature CIccTag::GetTagStructType ( ) const
inlinevirtualinherited

Reimplemented in CIccTagStruct.

132{ return icSigUndefinedStruct; }
@ icSigUndefinedStruct
Definition icProfileHeader.h:606

References icSigUndefinedStruct.

Referenced by icGetTagStructHandlerOfType(), CIccArrayColorantInfo::Validate(), and CIccArrayNamedColor::Validate().

+ Here is the caller graph for this function:

◆ GetType()

virtual icTagTypeSignature CIccTagEmbeddedHeightImage::GetType ( ) const
inlinevirtualinherited

Function: GetType()

Purpose: Get Tag Type. Each derived tag will implement it's own GetType() function.

Reimplemented from CIccTag.

@ icSigEmbeddedHeightImageType
Definition icProfileHeader.h:538

References icSigEmbeddedHeightImageType.

Referenced by CIccTagEmbeddedHeightImage::Write().

+ Here is the caller graph for this function:

◆ IsArrayType()

virtual bool CIccTag::IsArrayType ( )
inlinevirtualinherited

Reimplemented in CIccTagXYZ, CIccTagChromaticity, CIccTagSparseMatrixArray, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, CIccTagFloatNum< T, Tsig >, and CIccTagData.

135{ return false; }

Referenced by MyTagDialog::MyTagDialog(), and DumpTag().

+ Here is the caller graph for this function:

◆ IsMBBType()

virtual bool CIccTag::IsMBBType ( )
inlinevirtualinherited

Reimplemented in CIccMBB.

136{ return false; } //If true then CIccTag can be cast as an CIccMBB

Referenced by CIccProfileXml::ParseTag().

+ Here is the caller graph for this function:

◆ IsNumArrayType()

virtual bool CIccTag::IsNumArrayType ( ) const
inlinevirtualinherited

Reimplemented in CIccTagSparseMatrixArray, CIccTagFixedNum< T, Tsig >, CIccTagNum< T, Tsig >, and CIccTagFloatNum< T, Tsig >.

137{ return false;} //If true then CIccTag can be cast as a CIccTagNumArray

Referenced by CIccArrayNamedColor::FindDeviceColor(), CIccArrayNamedColor::FindPcsColor(), CIccArrayNamedColor::FindSpectralColor(), CIccTagStruct::GetElemNumberValue(), CIccStructNamedColor::GetNumArray(), CIccMpeXmlTintArray::ParseXml(), and CIccMpeTintArray::Read().

+ Here is the caller graph for this function:

◆ IsSupported()

virtual bool CIccTag::IsSupported ( )
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.

153{ return true; }

◆ NewCopy()

virtual CIccTag * CIccTagEmbeddedHeightImage::NewCopy ( ) const
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 from CIccTag.

1757{ return new CIccTagEmbeddedHeightImage(*this); }
Definition IccTagBasic.h:1752

References CIccTagEmbeddedHeightImage::CIccTagEmbeddedHeightImage().

+ Here is the call graph for this function:

◆ operator[]()

icUInt8Number & CIccTagEmbeddedHeightImage::operator[] ( icUInt32Number  index)
inlineinherited
1770{ return m_pData[index]; }

References CIccTagEmbeddedHeightImage::m_pData.

◆ ParseXml()

bool CIccTagXmlEmbeddedHeightImage::ParseXml ( xmlNode *  pNode,
std::string &  parseStr 
)
virtual

Implements CIccTagXml.

5100{
5101 // parse tag
5102 xmlNode *tagNode;
5103
5104 tagNode = icXmlFindNode(pNode, "HeightImage");
5105 if (!tagNode)
5106 return false;
5107
5108 m_nSeamlesIndicator = atoi(icXmlAttrValue(tagNode, "SeamlessIndicator", "0"));
5109 m_nEncodingFormat = (icImageEncodingType)atoi(icXmlAttrValue(tagNode, "EncodingFormat", "0"));
5110 m_fMetersMinPixelValue = (icFloatNumber)atof(icXmlAttrValue(tagNode, "MetersMinPixelValue", "0.0"));
5111 m_fMetersMaxPixelValue = (icFloatNumber)atof(icXmlAttrValue(tagNode, "MetersMaxPixelValue", "0.0"));
5112
5113 xmlNode *pImageNode;
5114 pImageNode = icXmlFindNode(tagNode->children, "Image");
5115
5116 if (pImageNode) {
5117 const char *filename = icXmlAttrValue(pImageNode, "File");
5118 if (!filename || !filename[0]) {
5119 filename = icXmlAttrValue(pImageNode, "Filename");
5120 }
5121
5122 // file exists
5123 if (filename[0]) {
5124 CIccIO *file = IccOpenFileIO(filename, "rb");
5125 if (!file) {
5126 parseStr += "Error! - File '";
5127 parseStr += filename;
5128 parseStr += "' not found.\n";
5129 delete file;
5130 return false;
5131 }
5132
5133 icUInt32Number num = file->GetLength();
5134
5135 SetSize(num);
5136 icUInt8Number *dst = GetData(0);
5137 if (file->Read8(dst, num)!=num) {
5138 perror("Read-File Error");
5139 parseStr += "'";
5140 parseStr += filename;
5141 parseStr += "' may not be a valid binary file.\n";
5142 delete file;
5143 return false;
5144 }
5145 delete file;
5146 return true;
5147 }
5148 // no file
5149 else if (pImageNode->children && pImageNode->children->content){
5150 unsigned long nSize = icXmlGetHexDataSize((const icChar*)pImageNode->children->content);
5151
5152 SetSize(nSize);
5153 if (m_pData) {
5154 if (icXmlGetHexData(m_pData, (const icChar*)pImageNode->children->content, m_nSize) != m_nSize)
5155 return false;
5156 }
5157
5158 return true;
5159 }
5160 }
5161 return false;
5162}
unsigned char icUInt8Number
Definition icProfileHeader.h:250
unsigned long icUInt32Number
Definition icProfileHeader.h:262
icImageEncodingType
Definition icProfileHeader.h:1353
float icFloatNumber
Definition IccDefs.h:101
icUInt32Number icXmlGetHexDataSize(const char *szText)
Definition IccUtilXml.cpp:630
xmlNode * icXmlFindNode(xmlNode *pNode, const char *szNodeName)
Definition IccUtilXml.cpp:687
icUInt32Number icXmlGetHexData(void *pBuf, const char *szText, icUInt32Number nBufSize)
Definition IccUtilXml.cpp:609
const char * icXmlAttrValue(xmlAttr *attr, const char *szDefault="")
Definition IccUtilXml.cpp:572
CIccIO * IccOpenFileIO(const icChar *szFilename, const char *szAttr)
Definition IccIoXml.cpp:100
Definition IccIO.h:97
virtual icInt32Number GetLength()
Definition IccIO.h:130
virtual icInt32Number Read8(void *pBuf8, icInt32Number nNum=1)
Definition IccIO.h:104
icUInt8Number * GetData(icUInt32Number index=0)
Definition IccTagBasic.h:1771
bool SetSize(icUInt32Number nSize, bool bZeroNew=true)
Definition IccTagBasic.cpp:11944

References CIccTagEmbeddedHeightImage::GetData(), CIccIO::GetLength(), IccOpenFileIO(), icXmlAttrValue(), icXmlFindNode(), icXmlGetHexData(), icXmlGetHexDataSize(), CIccTagEmbeddedHeightImage::m_fMetersMaxPixelValue, CIccTagEmbeddedHeightImage::m_fMetersMinPixelValue, CIccTagEmbeddedHeightImage::m_nEncodingFormat, CIccTagEmbeddedHeightImage::m_nSeamlesIndicator, CIccTagEmbeddedHeightImage::m_nSize, CIccTagEmbeddedHeightImage::m_pData, CIccIO::Read8(), and CIccTagEmbeddedHeightImage::SetSize().

+ Here is the call graph for this function:

◆ Read() [1/2]

bool CIccTagEmbeddedHeightImage::Read ( icUInt32Number  size,
CIccIO pIO 
)
virtualinherited

Name: CIccTagEmbeddedHeightImage::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.

11798{
11800
11801 if (sizeof(icTagTypeSignature) +
11802 sizeof(icUInt32Number) +
11803 sizeof(icUInt32Number) +
11804 sizeof(icUInt32Number) +
11805 sizeof(icFloat32Number) +
11806 sizeof(icFloat32Number) +
11807 sizeof(icUInt8Number) > size)
11808 return false;
11809
11810 if (!pIO) {
11811 return false;
11812 }
11813
11814 if (!pIO->Read32(&sig))
11815 return false;
11816
11817 if (!pIO->Read32(&m_nReserved))
11818 return false;
11819
11820 if (!pIO->Read32(&m_nSeamlesIndicator))
11821 return false;
11822
11823 if (!pIO->Read32(&m_nEncodingFormat))
11824 return false;
11825
11827 return false;
11828
11830 return false;
11831
11832 icUInt32Number nNum = size - 6 * sizeof(icUInt32Number);
11833
11834 if (!SetSize(nNum))
11835 return false;
11836
11837 if (pIO->Read8(m_pData, nNum) != (icInt32Number)nNum)
11838 return false;
11839
11840 return true;
11841}
float icFloat32Number
Definition icProfileHeader.h:313
long icInt32Number
Definition icProfileHeader.h:291
icTagTypeSignature
Definition icProfileHeader.h:526
icInt32Number ReadFloat32Float(void *pBufFloat, icInt32Number nNum=1)
Definition IccIO.cpp:302
icInt32Number Read32(void *pBuf32, icInt32Number nNum=1)
Definition IccIO.cpp:143
icUInt32Number m_nReserved
Definition IccTagBasic.h:235

References CIccTagEmbeddedHeightImage::m_fMetersMaxPixelValue, CIccTagEmbeddedHeightImage::m_fMetersMinPixelValue, CIccTagEmbeddedHeightImage::m_nEncodingFormat, CIccTag::m_nReserved, CIccTagEmbeddedHeightImage::m_nSeamlesIndicator, CIccTagEmbeddedHeightImage::m_pData, CIccIO::Read32(), CIccIO::Read8(), CIccIO::ReadFloat32Float(), and CIccTagEmbeddedHeightImage::SetSize().

+ Here is the call graph for this function:

◆ Read() [2/2]

virtual bool CIccTag::Read ( icUInt32Number  size,
CIccIO pIO,
CIccProfile pProfile 
)
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.

197{ return Read(size, pIO); }
virtual bool Read(icUInt32Number size, CIccIO *pIO)
Definition IccTagBasic.h:167

References CIccTag::Read().

+ Here is the call graph for this function:

◆ ReadAll()

virtual bool CIccTag::ReadAll ( )
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.

175{ return true; }

◆ SetSize()

bool CIccTagEmbeddedHeightImage::SetSize ( icUInt32Number  nSize,
bool  bZeroNew = true 
)
inherited

Name: CIccTagEmbeddedHeightImage::SetSize

Purpose: Sets the size of the data array.

Args: nSize - number of data entries, bZeroNew - flag to zero newly formed values

11945{
11946 if (m_nSize == nSize)
11947 return true;
11948
11949 m_pData = (icUInt8Number*)icRealloc(m_pData, nSize * sizeof(icUInt8Number));
11950
11951 if (!m_pData) {
11952 m_nSize = 0;
11953 return false;
11954 }
11955
11956 if (bZeroNew && nSize > m_nSize) {
11957 memset(&m_pData[m_nSize], 0, (nSize - m_nSize) * sizeof(icUInt8Number));
11958 }
11959 m_nSize = nSize;
11960
11961 return true;
11962}
ICCPROFLIB_API void * icRealloc(void *ptr, size_t size)
Definition IccUtil.cpp:111

References icRealloc(), CIccTagEmbeddedHeightImage::m_nSize, and CIccTagEmbeddedHeightImage::m_pData.

Referenced by ParseXml(), and CIccTagEmbeddedHeightImage::Read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToXml()

bool CIccTagXmlEmbeddedHeightImage::ToXml ( std::string &  xml,
std::string  blanks = "" 
)
virtual

Implements CIccTagXml.

5165{
5166 char buf[200];
5167
5168 xml += blanks + "<HeightImage";
5169 sprintf(buf, " SeamlessIndicator=\"%d\"", m_nSeamlesIndicator);
5170 xml += buf;
5171
5172 sprintf(buf, " EncodingFormat=\"%d\"", m_nEncodingFormat);
5173 xml += buf;
5174
5175 sprintf(buf, " MetersMinPixelValue=\"%.12f\"", m_fMetersMinPixelValue);
5176 xml += buf;
5177
5178 sprintf(buf, " MetersMaxPixelValue=\"%.12f\"", m_fMetersMaxPixelValue);
5179 xml += buf;
5180
5181 if (!m_nSize) {
5182 xml += blanks + "/>\n";
5183 }
5184 else {
5185 xml += ">\n";
5186 xml += blanks + " <Image>\n";
5187 icXmlDumpHexData(xml, blanks + " ", m_pData, m_nSize);
5188 xml += blanks + " </Image>\n";
5189 xml += blanks + "</HeightImage>\n";
5190 }
5191
5192 return true;
5193}
icUInt32Number icXmlDumpHexData(std::string &xml, std::string blanks, void *pBuf, icUInt32Number nBufSize)
Definition IccUtilXml.cpp:648

References icXmlDumpHexData(), CIccTagEmbeddedHeightImage::m_fMetersMaxPixelValue, CIccTagEmbeddedHeightImage::m_fMetersMinPixelValue, CIccTagEmbeddedHeightImage::m_nEncodingFormat, CIccTagEmbeddedHeightImage::m_nSeamlesIndicator, CIccTagEmbeddedHeightImage::m_nSize, and CIccTagEmbeddedHeightImage::m_pData.

+ Here is the call graph for this function:

◆ Validate()

icValidateStatus CIccTagEmbeddedHeightImage::Validate ( std::string  sigPath,
std::string &  sReport,
const CIccProfile pProfile = NULL 
) const
virtualinherited

Name: CIccTagEmbeddedHeightImage::Validate

Purpose: Check tag data validity.

Args: sig = signature of tag being validated, sReport = String to add report information to

Return: icValidateStatusOK if valid, or other error status.

Reimplemented from CIccTag.

11980{
11981 icValidateStatus rv = CIccTag::Validate(sigPath, sReport, pProfile);
11982
11983 CIccInfo Info;
11984 std::string sSigPathName = Info.GetSigPathName(sigPath);
11985
11986 switch (m_nSeamlesIndicator) {
11987 case 0:
11988 case 1:
11989 break;
11990 default:
11991 sReport += icMsgValidateNonCompliant;
11992 sReport += sSigPathName;
11993 sReport += " - Invalid data flag Seamless Indicator.\n";
11995 }
11996
11997 switch (m_nEncodingFormat) {
11998 case icPngImageType:
11999 case icTiffImageType:
12000 break;
12001 default:
12002 sReport += icMsgValidateNonCompliant;
12003 sReport += sSigPathName;
12004 sReport += " - Invalid data flag Encoding Image Type.\n";
12006 }
12007
12008 return rv;
12009}
icValidateStatus
Definition IccDefs.h:119
@ icValidateNonCompliant
Definition IccDefs.h:122
ICCPROFLIB_API icValidateStatus icMaxStatus(icValidateStatus s1, icValidateStatus s2)
Definition IccUtil.cpp:244
ICCPROFLIB_API const char * icMsgValidateNonCompliant
Definition IccUtil.cpp:91
Definition IccUtil.h:303
std::string GetSigPathName(std::string sigPath)
Definition IccUtil.cpp:1614
virtual icValidateStatus Validate(std::string sigPath, std::string &sReport, const CIccProfile *pProfile=NULL) const
Definition IccTagBasic.cpp:164

References CIccInfo::GetSigPathName(), icMaxStatus(), icMsgValidateNonCompliant, icPngImageType, icTiffImageType, icValidateNonCompliant, CIccTagEmbeddedHeightImage::m_nEncodingFormat, CIccTagEmbeddedHeightImage::m_nSeamlesIndicator, and CIccTag::Validate().

+ Here is the call graph for this function:

◆ Write()

bool CIccTagEmbeddedHeightImage::Write ( CIccIO pIO)
virtualinherited

Name: CIccTagEmbeddedHeightImage::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.

11858{
11860
11861 if (!pIO)
11862 return false;
11863
11864 if (!pIO->Write32(&sig))
11865 return false;
11866
11867 if (!pIO->Write32(&m_nReserved))
11868 return false;
11869
11870 if (!pIO->Write32(&m_nSeamlesIndicator))
11871 return false;
11872
11873 if (!pIO->Write32(&m_nEncodingFormat))
11874 return false;
11875
11877 return false;
11878
11880 return false;
11881
11883 return false;
11884
11885 return true;
11886}
virtual icInt32Number Write8(void *pBuf8, icInt32Number nNum=1)
Definition IccIO.h:105
icInt32Number Write32(void *pBuf32, icInt32Number nNum=1)
Definition IccIO.cpp:152
icInt32Number WriteFloat32Float(void *pBufFloat, icInt32Number nNum=1)
Definition IccIO.cpp:321
virtual icTagTypeSignature GetType() const
Definition IccTagBasic.h:1760

References CIccTagEmbeddedHeightImage::GetType(), CIccTagEmbeddedHeightImage::m_fMetersMaxPixelValue, CIccTagEmbeddedHeightImage::m_fMetersMinPixelValue, CIccTagEmbeddedHeightImage::m_nEncodingFormat, CIccTag::m_nReserved, CIccTagEmbeddedHeightImage::m_nSeamlesIndicator, CIccTagEmbeddedHeightImage::m_nSize, CIccTagEmbeddedHeightImage::m_pData, CIccIO::Write32(), CIccIO::Write8(), and CIccIO::WriteFloat32Float().

+ Here is the call graph for this function:

Field Documentation

◆ m_fMetersMaxPixelValue

◆ m_fMetersMinPixelValue

◆ m_nEncodingFormat

◆ m_nReserved

icUInt32Number CIccTag::m_nReserved
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().

◆ m_nSeamlesIndicator

◆ m_nSize

◆ m_pData


The documentation for this class was generated from the following files: