85#define UNKNOWNID 0xffffffff
89 {0,
"Interleaved samples"},
90 {PLANARCONFIG_CONTIG,
"Interleaved samples"},
91 {PLANARCONFIG_SEPARATE,
"Samples in separate planes"},
106 {COMPRESSION_NONE,
"None"},
107 {COMPRESSION_LZW,
"LZW"},
108 {COMPRESSION_JPEG,
"JPEG"},
109 {COMPRESSION_DEFLATE,
"Deflate"},
110 {COMPRESSION_ADOBE_DEFLATE,
"Deflate"},
125 printf(
"iccTiffDump built with IccProfLib version " ICCPROFLIBVER "\n\n");
127 printf(
"Usage: iccTiffDump tiff_file {exported_icc_file}\n\n");
142 if (!SrcImg.
Open(argv[1])) {
143 printf(
"\nFile [%s] cannot be opened.\n", argv[1]);
147 printf(
"-------------------->Tiff Image Dump<---------------------------\n");
148 printf(
"Filename: %s\n", argv[1]);
149 printf(
"Size: (%d x %d) pixels, (%.2lf\" x %.2lf\")\n",
154 printf(
"SamplesPerPixel: %d\n", SrcImg.
GetSamples());
157 printf(
"ExtraSamples %d\n", nExtra);
161 printf(
"Resolution: (%lf x %lf) pixels per/inch\n", SrcImg.
GetXRes(), SrcImg.
GetYRes());
164 unsigned char *pProfMem;
167 printf(
"Profile: Embedded\n");
172 icHeader *pHdr = &pProfile->m_Header;
182 printf(
" Spectral Range: start=%.1fnm, end=%.1fnm, steps=%d\n",
188 printf(
" BiSpectral Range: start=%.1fnm, end=%.1fnm, steps=%d\n",
197 printf(
" Description: %s\n", pText->
GetText());
202 CIccMultiLocalizedUnicode::iterator text = pStrs->
m_Strings->begin();
206 printf(
" Description: %s\n", line.c_str());
213 printf(
"Profile: Embedded\n");
CIccProfile * OpenIccProfile(const icChar *szFilename, bool bUseSubProfile)
Name: OpenIccProfile.
icFloatNumber icF16toF(icFloat16Number num)
int main()
Core and external libraries necessary for the fuzzer functionality.
const icChar * GetSpectralColorSigName(icSpectralColorSignature sig)
const icChar * GetColorSpaceSigName(icColorSpaceSignature sig)
virtual icTagTypeSignature GetType() const
Function: GetType()
Class: CIccTagMultiLocalizedUnicode.
CIccMultiLocalizedUnicode * m_Strings
Class: CIccTagTextDescription()
const icChar * GetText() const
bool Open(const char *szFname)
unsigned int GetBitsPerSample()
unsigned int GetSamples()
unsigned int GetExtraSamples()
unsigned int GetBytesPerLine()
bool GetIccProfile(unsigned char *&pProfile, unsigned int &nLen)
unsigned int GetCompress()
const char * GetId(unsigned long nId, IdList *pIdList)
IdList compression_types[]