Hoyt's FORK of DemoIccMAX 2.1.17.hoyt
Documentation for Hoyt's FORK of DemoIccMAX
Loading...
Searching...
No Matches
CTiffImg Class Reference

#include <TiffImg.h>

+ Collaboration diagram for CTiffImg:

Public Member Functions

void Close ()
 
bool Create (const char *szFname, unsigned int nWidth, unsigned int nHeight, unsigned int nBPS, unsigned int nPhoto, unsigned int nSamples, float fXRes, float fYRes, bool bCompress=true, bool bSep=false)
 
 CTiffImg ()
 
unsigned int GetBitsPerSample ()
 
unsigned int GetBytesPerLine ()
 
unsigned int GetCompress ()
 
unsigned int GetExtraSamples ()
 
unsigned int GetHeight ()
 
double GetHeightIn ()
 
bool GetIccProfile (unsigned char *&pProfile, unsigned int &nLen)
 
unsigned int GetPhoto ()
 
unsigned int GetPlanar ()
 
unsigned int GetSamples ()
 
unsigned int GetWidth ()
 
double GetWidthIn ()
 
float GetXRes ()
 
float GetYRes ()
 
bool Open (const char *szFname)
 
bool ReadLine (unsigned char *pBuf)
 
bool SetIccProfile (unsigned char *pProfile, unsigned int nLen)
 
bool WriteLine (unsigned char *pBuf)
 
virtual ~CTiffImg ()
 

Protected Attributes

bool m_bRead
 
float m_fXRes
 
float m_fYRes
 
TIFF * m_hTif
 
icUInt16Number m_nBitsPerSample
 
unsigned int m_nBytesPerLine
 
icUInt16Number m_nBytesPerSample
 
unsigned int m_nBytesPerStripLine
 
icUInt16Number m_nCompress
 
unsigned int m_nCurLine
 
unsigned int m_nCurStrip
 
icUInt16Number m_nExtraSamples
 
unsigned int m_nHeight
 
icUInt16Number m_nPhoto
 
icUInt16Number m_nPlanar
 
unsigned int m_nProfileLength
 
unsigned int m_nRowsPerStrip
 
icUInt16Number m_nSamples
 
unsigned int m_nStripSamples
 
unsigned int m_nStripSize
 
unsigned int m_nStripsPerSample
 
unsigned int m_nWidth
 
unsigned char * m_pProfile
 
unsigned char * m_pStripBuf
 

Detailed Description

Definition at line 83 of file TiffImg.h.

Constructor & Destructor Documentation

◆ CTiffImg()

CTiffImg::CTiffImg ( )

Definition at line 87 of file TiffImg.cpp.

88{
89 m_nWidth = 0;
90 m_nHeight = 0;
92 m_nSamples = 0;
94
95 m_hTif = NULL;
96 m_pStripBuf = NULL;
97}
unsigned int m_nWidth
Definition TiffImg.h:121
icUInt16Number m_nExtraSamples
Definition TiffImg.h:127
icUInt16Number m_nSamples
Definition TiffImg.h:126
TIFF * m_hTif
Definition TiffImg.h:118
unsigned int m_nHeight
Definition TiffImg.h:122
unsigned char * m_pStripBuf
Definition TiffImg.h:141
icUInt16Number m_nBitsPerSample
Definition TiffImg.h:123

References m_hTif, m_nBitsPerSample, m_nExtraSamples, m_nHeight, m_nSamples, m_nWidth, and m_pStripBuf.

◆ ~CTiffImg()

CTiffImg::~CTiffImg ( )
virtual

Definition at line 99 of file TiffImg.cpp.

100{
101 Close();
102}
void Close()
Definition TiffImg.cpp:104

References Close().

+ Here is the call graph for this function:

Member Function Documentation

◆ Close()

void CTiffImg::Close ( )

Definition at line 104 of file TiffImg.cpp.

105{
106 m_nWidth = 0;
107 m_nHeight = 0;
109 m_nSamples = 0;
110 m_nExtraSamples = 0;
111
112 if (m_hTif) {
113 TIFFClose(m_hTif);
114
115 m_hTif = NULL;
116 }
117
118 if (m_pStripBuf) {
119 free(m_pStripBuf);
120 m_pStripBuf = NULL;
121 }
122}

References m_hTif, m_nBitsPerSample, m_nExtraSamples, m_nHeight, m_nSamples, m_nWidth, and m_pStripBuf.

Referenced by Create(), main(), main(), main(), Open(), and ~CTiffImg().

+ Here is the caller graph for this function:

◆ Create()

bool CTiffImg::Create ( const char * szFname,
unsigned int nWidth,
unsigned int nHeight,
unsigned int nBPS,
unsigned int nPhoto,
unsigned int nSamples,
float fXRes,
float fYRes,
bool bCompress = true,
bool bSep = false )

Definition at line 124 of file TiffImg.cpp.

127{
128 Close();
129 m_bRead = false;
130
131 m_nWidth = nWidth;
132 m_nHeight = nHeight;
134 m_nSamples = (icUInt16Number)nSamples;
135 m_nRowsPerStrip = 1;
136 m_fXRes = fXRes;
137 m_fYRes = fYRes;
138 m_nPlanar = bSep ? PLANARCONFIG_SEPARATE : PLANARCONFIG_CONTIG;
139 m_nCompress = bCompress ? COMPRESSION_LZW : COMPRESSION_NONE;
140
141 switch(nPhoto) {
142 case PHOTO_MINISBLACK:
143 if (m_nSamples==3)
144 m_nPhoto = PHOTOMETRIC_RGB;
145 else
146 m_nPhoto = PHOTOMETRIC_MINISBLACK;
147 break;
148
149 case PHOTO_MINISWHITE:
150 if (m_nSamples==4)
151 m_nPhoto = PHOTOMETRIC_SEPARATED;
152 else
153 m_nPhoto = PHOTOMETRIC_MINISWHITE;
154 break;
155
156 case PHOTO_CIELAB:
157 m_nPhoto = PHOTOMETRIC_CIELAB;
158 break;
159
160 case PHOTO_ICCLAB:
161 m_nPhoto = PHOTOMETRIC_ICCLAB;
162 break;
163 }
164
165 m_hTif = TIFFOpen(szFname, "w");
166 if (!m_hTif) {
167 TIFFError(szFname,"Can not open output image");
168 return false;
169 }
170 TIFFSetField(m_hTif, TIFFTAG_IMAGEWIDTH, (uint32) m_nWidth);
171 TIFFSetField(m_hTif, TIFFTAG_IMAGELENGTH, (uint32) m_nHeight);
172 TIFFSetField(m_hTif, TIFFTAG_PHOTOMETRIC, m_nPhoto);
173 TIFFSetField(m_hTif, TIFFTAG_PLANARCONFIG, m_nPlanar);
174 TIFFSetField(m_hTif, TIFFTAG_SAMPLESPERPIXEL, m_nSamples);
175 TIFFSetField(m_hTif, TIFFTAG_BITSPERSAMPLE, m_nBitsPerSample);
176 if (m_nBitsPerSample==32)
177 TIFFSetField(m_hTif, TIFFTAG_SAMPLEFORMAT, SAMPLEFORMAT_IEEEFP);
178 TIFFSetField(m_hTif, TIFFTAG_ROWSPERSTRIP, m_nRowsPerStrip);
179 TIFFSetField(m_hTif, TIFFTAG_COMPRESSION, m_nCompress);
180 TIFFSetField(m_hTif, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
181 TIFFSetField(m_hTif, TIFFTAG_XRESOLUTION, fXRes);
182 TIFFSetField(m_hTif, TIFFTAG_YRESOLUTION, fYRes);
183 if (bCompress) {
184 if (m_nBitsPerSample==32) {
185 TIFFSetField(m_hTif, TIFFTAG_PREDICTOR, PREDICTOR_FLOATINGPOINT);
186 }
187 else {
188 TIFFSetField(m_hTif, TIFFTAG_PREDICTOR, PREDICTOR_HORIZONTAL);
189 }
190 }
191
192 m_nCurLine = 0;
193 m_nCurStrip = 0;
194
195 if (bSep && m_nSamples>1) {
197 if (m_nBitsPerSample % 8) {
198 Close();
199 return false;
200 }
202
203 m_nStripSize = (unsigned int)TIFFStripSize(m_hTif);
205
207 Close();
208 return false;
209 }
211
212 m_pStripBuf = (unsigned char*)malloc(m_nStripSize*m_nStripSamples);
213
214 if (!m_pStripBuf) {
215 Close();
216 return false;
217 }
219 }
220 else {
221 m_nBytesPerLine = m_nStripSize = (unsigned int)TIFFStripSize(m_hTif);
222 m_nStripSamples = 1;
223 }
224
225 return true;
226}
#define PHOTO_CIELAB
Definition TiffImg.h:80
#define PHOTO_MINISBLACK
Definition TiffImg.h:78
#define PHOTO_ICCLAB
Definition TiffImg.h:81
#define PHOTO_MINISWHITE
Definition TiffImg.h:79
float m_fXRes
Definition TiffImg.h:131
unsigned int m_nStripsPerSample
Definition TiffImg.h:138
bool m_bRead
Definition TiffImg.h:119
unsigned int m_nRowsPerStrip
Definition TiffImg.h:135
icUInt16Number m_nCompress
Definition TiffImg.h:129
icUInt16Number m_nPlanar
Definition TiffImg.h:128
unsigned int m_nStripSamples
Definition TiffImg.h:137
unsigned int m_nCurStrip
Definition TiffImg.h:144
float m_fYRes
Definition TiffImg.h:132
icUInt16Number m_nPhoto
Definition TiffImg.h:125
unsigned int m_nStripSize
Definition TiffImg.h:136
unsigned int m_nCurLine
Definition TiffImg.h:143
unsigned int m_nBytesPerLine
Definition TiffImg.h:134
icUInt16Number m_nBytesPerSample
Definition TiffImg.h:124
unsigned int m_nBytesPerStripLine
Definition TiffImg.h:139
unsigned short icUInt16Number

References Close(), m_bRead, m_fXRes, m_fYRes, m_hTif, m_nBitsPerSample, m_nBytesPerLine, m_nBytesPerSample, m_nBytesPerStripLine, m_nCompress, m_nCurLine, m_nCurStrip, m_nHeight, m_nPhoto, m_nPlanar, m_nRowsPerStrip, m_nSamples, m_nStripSamples, m_nStripSize, m_nStripsPerSample, m_nWidth, m_pStripBuf, PHOTO_CIELAB, PHOTO_ICCLAB, PHOTO_MINISBLACK, and PHOTO_MINISWHITE.

Referenced by main(), and main().

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

◆ GetBitsPerSample()

unsigned int CTiffImg::GetBitsPerSample ( )
inline

Definition at line 103 of file TiffImg.h.

103{ return m_nBitsPerSample;}

References m_nBitsPerSample.

Referenced by main(), main(), and main().

+ Here is the caller graph for this function:

◆ GetBytesPerLine()

unsigned int CTiffImg::GetBytesPerLine ( )
inline

Definition at line 112 of file TiffImg.h.

112{ return m_nBytesPerLine; }

References m_nBytesPerLine.

Referenced by main(), main(), and main().

+ Here is the caller graph for this function:

◆ GetCompress()

unsigned int CTiffImg::GetCompress ( )
inline

Definition at line 107 of file TiffImg.h.

107{ return m_nCompress; }

References m_nCompress.

Referenced by main(), and main().

+ Here is the caller graph for this function:

◆ GetExtraSamples()

unsigned int CTiffImg::GetExtraSamples ( )
inline

Definition at line 106 of file TiffImg.h.

106{ return m_nExtraSamples; }

References m_nExtraSamples.

Referenced by main().

+ Here is the caller graph for this function:

◆ GetHeight()

unsigned int CTiffImg::GetHeight ( )
inline

Definition at line 100 of file TiffImg.h.

100{ return m_nHeight;}

References m_nHeight.

Referenced by main(), main(), and main().

+ Here is the caller graph for this function:

◆ GetHeightIn()

double CTiffImg::GetHeightIn ( )
inline

Definition at line 102 of file TiffImg.h.

102{ return (double)m_nHeight / m_fYRes; }

References m_fYRes, and m_nHeight.

Referenced by main().

+ Here is the caller graph for this function:

◆ GetIccProfile()

bool CTiffImg::GetIccProfile ( unsigned char *& pProfile,
unsigned int & nLen )

Definition at line 410 of file TiffImg.cpp.

411{
412 pProfile = NULL;
413 nLen = 0;
414
415 TIFFGetField(m_hTif, TIFFTAG_ICCPROFILE, &nLen, &pProfile);
416
417 return pProfile!=NULL && nLen>0;
418}

References m_hTif.

Referenced by main(), and main().

+ Here is the caller graph for this function:

◆ GetPhoto()

unsigned int CTiffImg::GetPhoto ( )

Definition at line 391 of file TiffImg.cpp.

392{
393 if (m_nPhoto==PHOTOMETRIC_MINISBLACK ||
394 m_nPhoto==PHOTOMETRIC_RGB) {
395 return PHOTO_MINISBLACK;
396 }
397 else if (m_nPhoto==PHOTOMETRIC_MINISWHITE ||
398 m_nPhoto==PHOTOMETRIC_SEPARATED) {
399 return PHOTO_MINISWHITE;
400 }
401 else if (m_nPhoto==PHOTOMETRIC_CIELAB)
402 return PHOTO_CIELAB;
403 else if (m_nPhoto==PHOTOMETRIC_ICCLAB)
404 return PHOTO_ICCLAB;
405 else
406 return PHOTO_MINISWHITE;
407}

References m_nPhoto, PHOTO_CIELAB, PHOTO_ICCLAB, PHOTO_MINISBLACK, and PHOTO_MINISWHITE.

Referenced by main(), main(), and main().

+ Here is the caller graph for this function:

◆ GetPlanar()

unsigned int CTiffImg::GetPlanar ( )
inline

Definition at line 108 of file TiffImg.h.

108{ return m_nPlanar; }

References m_nPlanar.

Referenced by main(), and main().

+ Here is the caller graph for this function:

◆ GetSamples()

unsigned int CTiffImg::GetSamples ( )
inline

Definition at line 105 of file TiffImg.h.

105{ return m_nSamples;}

References m_nSamples.

Referenced by main(), and main().

+ Here is the caller graph for this function:

◆ GetWidth()

unsigned int CTiffImg::GetWidth ( )
inline

Definition at line 99 of file TiffImg.h.

99{ return m_nWidth;}

References m_nWidth.

Referenced by main(), main(), and main().

+ Here is the caller graph for this function:

◆ GetWidthIn()

double CTiffImg::GetWidthIn ( )
inline

Definition at line 101 of file TiffImg.h.

101{ return (double)m_nWidth / m_fXRes; }

References m_fXRes, and m_nWidth.

Referenced by main().

+ Here is the caller graph for this function:

◆ GetXRes()

float CTiffImg::GetXRes ( )
inline

Definition at line 109 of file TiffImg.h.

109{return m_fXRes;}

References m_fXRes.

Referenced by main(), main(), and main().

+ Here is the caller graph for this function:

◆ GetYRes()

float CTiffImg::GetYRes ( )
inline

Definition at line 110 of file TiffImg.h.

110{return m_fYRes;}

References m_fYRes.

Referenced by main(), main(), and main().

+ Here is the caller graph for this function:

◆ Open()

bool CTiffImg::Open ( const char * szFname)

Definition at line 228 of file TiffImg.cpp.

229{
230 Close();
231 m_bRead = true;
232
233 m_hTif = TIFFOpen(szFname, "r");
234 if (!m_hTif) {
235 TIFFError(szFname,"Can not open input image");
236 return false;
237 }
238 icUInt16Number nPlanar=PLANARCONFIG_CONTIG;
239 icUInt16Number nOrientation=ORIENTATION_TOPLEFT;
240 icUInt16Number nSampleFormat=SAMPLEFORMAT_UINT;
241 icUInt16Number *nSampleInfo=NULL;
242
243 TIFFGetField(m_hTif, TIFFTAG_IMAGEWIDTH, &m_nWidth);
244 TIFFGetField(m_hTif, TIFFTAG_IMAGELENGTH, &m_nHeight);
245 TIFFGetField(m_hTif, TIFFTAG_PHOTOMETRIC, &m_nPhoto);
246 TIFFGetField(m_hTif, TIFFTAG_PLANARCONFIG, &m_nPlanar);
247 TIFFGetField(m_hTif, TIFFTAG_SAMPLESPERPIXEL, &m_nSamples);
248 TIFFGetField(m_hTif, TIFFTAG_EXTRASAMPLES, &m_nExtraSamples, &nSampleInfo);
249 TIFFGetField(m_hTif, TIFFTAG_BITSPERSAMPLE, &m_nBitsPerSample);
250 TIFFGetField(m_hTif, TIFFTAG_SAMPLEFORMAT, &nSampleFormat);
251 TIFFGetField(m_hTif, TIFFTAG_ROWSPERSTRIP, &m_nRowsPerStrip);
252 TIFFGetField(m_hTif, TIFFTAG_ORIENTATION, &nOrientation);
253 TIFFGetField(m_hTif, TIFFTAG_XRESOLUTION, &m_fXRes);
254 TIFFGetField(m_hTif, TIFFTAG_YRESOLUTION, &m_fYRes);
255 TIFFGetField(m_hTif, TIFFTAG_COMPRESSION, &m_nCompress);
256
257 //Validate what we expect to work with
258 if ((m_nBitsPerSample==32 && nSampleFormat!=SAMPLEFORMAT_IEEEFP) ||
259 (m_nBitsPerSample!=32 && nSampleFormat!=SAMPLEFORMAT_UINT) ||
260 nOrientation != ORIENTATION_TOPLEFT) {
261 Close();
262 return false;
263 }
264 m_nCurStrip=(unsigned int)-1;
265 m_nCurLine = 0;
266
267 m_nStripSize = (unsigned int)TIFFStripSize(m_hTif);
268
269 if (m_nSamples>1 && m_nPlanar==PLANARCONFIG_SEPARATE) {
274 //Only support bitspersample that fits on byte boundary
275 if (m_nBitsPerSample%8) {
276 Close();
277 return false;
278 }
280 //Only support separations that evenly fit into strips
282 Close();
283 return false;
284 }
285 }
286 else {
287 m_nStripSamples = 1;
289 }
290
291 m_pStripBuf = (unsigned char*)malloc(m_nStripSize*m_nStripSamples);
292
293 if (!m_pStripBuf) {
294 Close();
295 return false;
296 }
297
298 return true;
299}

References Close(), m_bRead, m_fXRes, m_fYRes, m_hTif, m_nBitsPerSample, m_nBytesPerLine, m_nBytesPerSample, m_nBytesPerStripLine, m_nCompress, m_nCurLine, m_nCurStrip, m_nExtraSamples, m_nHeight, m_nPhoto, m_nPlanar, m_nRowsPerStrip, m_nSamples, m_nStripSamples, m_nStripSize, m_nStripsPerSample, m_nWidth, and m_pStripBuf.

Referenced by main(), and main().

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

◆ ReadLine()

bool CTiffImg::ReadLine ( unsigned char * pBuf)

Definition at line 302 of file TiffImg.cpp.

303{
304 if (!m_bRead)
305 return false;
306
307 unsigned int nStrip = m_nCurLine / m_nRowsPerStrip;
308 unsigned int nRowOffset = m_nCurLine % m_nRowsPerStrip;
309
310 if (nStrip != m_nCurStrip) {
311 m_nCurStrip = nStrip;
312
313 if (m_nStripSamples>1) {
314 unsigned int s;
315 unsigned char *pos = m_pStripBuf;
316 unsigned int nStripOffset = 0;
317 for (s=0; s<m_nStripSamples; s++) {
318 if (TIFFReadEncodedStrip(m_hTif, m_nCurStrip+nStripOffset, pos, m_nStripSize) < 0) {
319 return false;
320 }
321 nStripOffset += m_nStripsPerSample;
323 }
324 }
325 else if (TIFFReadEncodedStrip(m_hTif, m_nCurStrip, m_pStripBuf, m_nStripSize) < 0) {
326 return false;
327 }
328 }
329
330 if (m_nStripSamples>1) { //Sep to contig
331 unsigned char *src, *dst;
332 src = m_pStripBuf+nRowOffset*m_nBytesPerStripLine;
333 dst = pBuf;
334 unsigned int w, s;
335 for (w=0; w<m_nWidth; w++) {
336 unsigned char *pos = src;
337 for (s=0; s<m_nSamples; s++) {
338 memcpy(dst, pos, m_nBytesPerSample);
339 dst += m_nBytesPerSample;
340 pos += m_nStripSize;
341 }
342 src += m_nBytesPerSample;
343 }
344 }
345 else {
346 memcpy(pBuf, m_pStripBuf+nRowOffset*m_nBytesPerLine, m_nBytesPerLine);
347 }
348 m_nCurLine++;
349
350 return true;
351}

References m_bRead, m_hTif, m_nBytesPerLine, m_nBytesPerSample, m_nBytesPerStripLine, m_nCurLine, m_nCurStrip, m_nRowsPerStrip, m_nSamples, m_nStripSamples, m_nStripSize, m_nStripsPerSample, m_nWidth, and m_pStripBuf.

Referenced by main().

+ Here is the caller graph for this function:

◆ SetIccProfile()

bool CTiffImg::SetIccProfile ( unsigned char * pProfile,
unsigned int nLen )

Definition at line 420 of file TiffImg.cpp.

421{
422 TIFFSetField(m_hTif, TIFFTAG_ICCPROFILE, nLen, pProfile);
423
424 return true;
425}

References m_hTif.

Referenced by main(), and main().

+ Here is the caller graph for this function:

◆ WriteLine()

bool CTiffImg::WriteLine ( unsigned char * pBuf)

Definition at line 353 of file TiffImg.cpp.

354{
355 if (m_bRead)
356 return false;
357
358 if (m_nCurStrip < m_nHeight) { //Contig to Sep
359 if (m_nStripSamples>1) {
360 unsigned char *src, *dst;
361 src = pBuf;
362 dst = m_pStripBuf;
363 unsigned int w, s, offset;
364 for (w=0; w<m_nWidth; w++) {
365 unsigned char *pos = dst;
366 for (s=0; s<m_nSamples; s++) {
367 memcpy(pos, src, m_nBytesPerSample);
368 src += m_nBytesPerSample;
369 pos += m_nStripSize;
370 }
371 dst += m_nBytesPerSample;
372 }
373 offset = 0;
374 src = m_pStripBuf;
375 for (s=0; s<m_nSamples; s++) {
376 if (TIFFWriteEncodedStrip(m_hTif, m_nCurStrip+offset, src, m_nStripSize) < 0)
377 return false;
378 offset += m_nStripsPerSample;
379 src += m_nStripSize;
380 }
381 }
382 else if (TIFFWriteEncodedStrip(m_hTif, m_nCurStrip, pBuf, m_nBytesPerLine) < 0)
383 return false;
384
385 m_nCurStrip++;
386 }
387
388 return true;
389}

References m_bRead, m_hTif, m_nBytesPerLine, m_nBytesPerSample, m_nCurStrip, m_nHeight, m_nSamples, m_nStripSamples, m_nStripSize, m_nStripsPerSample, m_nWidth, and m_pStripBuf.

Referenced by main(), and main().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bRead

bool CTiffImg::m_bRead
protected

Definition at line 119 of file TiffImg.h.

Referenced by Create(), Open(), ReadLine(), and WriteLine().

◆ m_fXRes

float CTiffImg::m_fXRes
protected

Definition at line 131 of file TiffImg.h.

Referenced by Create(), GetWidthIn(), GetXRes(), and Open().

◆ m_fYRes

float CTiffImg::m_fYRes
protected

Definition at line 132 of file TiffImg.h.

Referenced by Create(), GetHeightIn(), GetYRes(), and Open().

◆ m_hTif

TIFF* CTiffImg::m_hTif
protected

Definition at line 118 of file TiffImg.h.

Referenced by Close(), Create(), CTiffImg(), GetIccProfile(), Open(), ReadLine(), SetIccProfile(), and WriteLine().

◆ m_nBitsPerSample

icUInt16Number CTiffImg::m_nBitsPerSample
protected

Definition at line 123 of file TiffImg.h.

Referenced by Close(), Create(), CTiffImg(), GetBitsPerSample(), and Open().

◆ m_nBytesPerLine

unsigned int CTiffImg::m_nBytesPerLine
protected

Definition at line 134 of file TiffImg.h.

Referenced by Create(), GetBytesPerLine(), Open(), ReadLine(), and WriteLine().

◆ m_nBytesPerSample

icUInt16Number CTiffImg::m_nBytesPerSample
protected

Definition at line 124 of file TiffImg.h.

Referenced by Create(), Open(), ReadLine(), and WriteLine().

◆ m_nBytesPerStripLine

unsigned int CTiffImg::m_nBytesPerStripLine
protected

Definition at line 139 of file TiffImg.h.

Referenced by Create(), Open(), and ReadLine().

◆ m_nCompress

icUInt16Number CTiffImg::m_nCompress
protected

Definition at line 129 of file TiffImg.h.

Referenced by Create(), GetCompress(), and Open().

◆ m_nCurLine

unsigned int CTiffImg::m_nCurLine
protected

Definition at line 143 of file TiffImg.h.

Referenced by Create(), Open(), and ReadLine().

◆ m_nCurStrip

unsigned int CTiffImg::m_nCurStrip
protected

Definition at line 144 of file TiffImg.h.

Referenced by Create(), Open(), ReadLine(), and WriteLine().

◆ m_nExtraSamples

icUInt16Number CTiffImg::m_nExtraSamples
protected

Definition at line 127 of file TiffImg.h.

Referenced by Close(), CTiffImg(), GetExtraSamples(), and Open().

◆ m_nHeight

unsigned int CTiffImg::m_nHeight
protected

Definition at line 122 of file TiffImg.h.

Referenced by Close(), Create(), CTiffImg(), GetHeight(), GetHeightIn(), Open(), and WriteLine().

◆ m_nPhoto

icUInt16Number CTiffImg::m_nPhoto
protected

Definition at line 125 of file TiffImg.h.

Referenced by Create(), GetPhoto(), and Open().

◆ m_nPlanar

icUInt16Number CTiffImg::m_nPlanar
protected

Definition at line 128 of file TiffImg.h.

Referenced by Create(), GetPlanar(), and Open().

◆ m_nProfileLength

unsigned int CTiffImg::m_nProfileLength
protected

Definition at line 147 of file TiffImg.h.

◆ m_nRowsPerStrip

unsigned int CTiffImg::m_nRowsPerStrip
protected

Definition at line 135 of file TiffImg.h.

Referenced by Create(), Open(), and ReadLine().

◆ m_nSamples

icUInt16Number CTiffImg::m_nSamples
protected

Definition at line 126 of file TiffImg.h.

Referenced by Close(), Create(), CTiffImg(), GetSamples(), Open(), ReadLine(), and WriteLine().

◆ m_nStripSamples

unsigned int CTiffImg::m_nStripSamples
protected

Definition at line 137 of file TiffImg.h.

Referenced by Create(), Open(), ReadLine(), and WriteLine().

◆ m_nStripSize

unsigned int CTiffImg::m_nStripSize
protected

Definition at line 136 of file TiffImg.h.

Referenced by Create(), Open(), ReadLine(), and WriteLine().

◆ m_nStripsPerSample

unsigned int CTiffImg::m_nStripsPerSample
protected

Definition at line 138 of file TiffImg.h.

Referenced by Create(), Open(), ReadLine(), and WriteLine().

◆ m_nWidth

unsigned int CTiffImg::m_nWidth
protected

Definition at line 121 of file TiffImg.h.

Referenced by Close(), Create(), CTiffImg(), GetWidth(), GetWidthIn(), Open(), ReadLine(), and WriteLine().

◆ m_pProfile

unsigned char* CTiffImg::m_pProfile
protected

Definition at line 146 of file TiffImg.h.

◆ m_pStripBuf

unsigned char* CTiffImg::m_pStripBuf
protected

Definition at line 141 of file TiffImg.h.

Referenced by Close(), Create(), CTiffImg(), Open(), ReadLine(), and WriteLine().


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