Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PLTIFFDecoder Class Reference

TIFF file decoder. More...

#include <pltiffdec.h>

Inheritance diagram for PLTIFFDecoder:

Inheritance graph
[legend]
Collaboration diagram for PLTIFFDecoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLTIFFDecoder ()
 Creates a decoder.
virtual ~PLTIFFDecoder ()
 Destroys a decoder.

Protected Member Functions

virtual void DoDecode (PLBmp *pBmp, PLDataSource *pDataSrc)
 Sets up LIBTIFF environment and calls LIBTIFF to decode an image.
virtual void DoTiffDecode (PLBmp *pBmp, PLDataSource *pDataSrc, TIFF *tiff)

Private Member Functions

void doHiColor (TIFF *tif, PLBmp *pBmp, uint16 SamplePerPixel)
void doLoColor (TIFF *tif, PLBmp *pBmp)
const PLPoint getResolution (TIFF *tif)

Static Private Member Functions

void Win32WarningHandler (const char *module, const char *fmt, va_list ap)
void Win32ErrorHandler (const char *module, const char *fmt, va_list ap)

Static Private Attributes

char m_szLastErr [256]

Friends

class _tiff_helper
class PLTIFFEncoder

Detailed Description

TIFF file decoder.

Uses LIBTIFF to do the actual conversion. Supports 1, 8 and 24 bits per pixel as output formats.

Definition at line 30 of file pltiffdec.h.


Constructor & Destructor Documentation

PLTIFFDecoder::PLTIFFDecoder  ) 
 

Creates a decoder.

Definition at line 108 of file pltiffdec.cpp.

PLTIFFDecoder::~PLTIFFDecoder  )  [virtual]
 

Destroys a decoder.

Definition at line 115 of file pltiffdec.cpp.


Member Function Documentation

void PLTIFFDecoder::DoDecode PLBmp pBmp,
PLDataSource pDataSrc
[protected, virtual]
 

Sets up LIBTIFF environment and calls LIBTIFF to decode an image.

Reimplemented from PLPicDecoder.

Reimplemented in PLTIFFDecoderEx.

Definition at line 142 of file pltiffdec.cpp.

References DoTiffDecode(), PLDataSource::GetFileSize(), getResolution(), m_szLastErr, PL_ERRWRONG_SIGNATURE, PLPicDecoder::raiseError(), PLDataSource::ReadEverything(), PLBmp::SetResolution(), TIFF, and TIFFOpenMem().

Here is the call graph for this function:

void PLTIFFDecoder::doHiColor TIFF tif,
PLBmp pBmp,
uint16  SamplePerPixel
[private]
 

Definition at line 185 of file pltiffdec.cpp.

References PLBmp::Create(), PLBmp::GetLineArray32(), PLBmp::Lock(), m_szLastErr, PL_ERRNO_MEMORY, PL_ERRWRONG_SIGNATURE, PLBYTE, PLULONG, PLPicDecoder::raiseError(), PLPixel32::Set(), and PLBmp::Unlock().

Referenced by DoTiffDecode().

Here is the call graph for this function:

void PLTIFFDecoder::doLoColor TIFF tif,
PLBmp pBmp
[private]
 

Definition at line 270 of file pltiffdec.cpp.

References checkcmap(), PLBmp::Create(), CVT, PLBmp::GetLineArray(), PLBmp::Lock(), m_szLastErr, PL_ERRINTERNAL, PL_ERRNO_MEMORY, PLASSERT, PLBYTE, PLPicDecoder::raiseError(), PLBmp::SetPalette(), PLPicDecoder::Trace(), and PLBmp::Unlock().

Referenced by DoTiffDecode().

Here is the call graph for this function:

void PLTIFFDecoder::DoTiffDecode PLBmp pBmp,
PLDataSource pDataSrc,
TIFF tiff
[protected, virtual]
 

Definition at line 120 of file pltiffdec.cpp.

References doHiColor(), and doLoColor().

Referenced by PLTIFFDecoderEx::DoDecode(), and DoDecode().

Here is the call graph for this function:

const PLPoint PLTIFFDecoder::getResolution TIFF tif  )  [private]
 

Definition at line 159 of file pltiffdec.cpp.

Referenced by DoDecode().

void PLTIFFDecoder::Win32ErrorHandler const char *  module,
const char *  fmt,
va_list  ap
[static, private]
 

Definition at line 427 of file pltiffdec.cpp.

References m_szLastErr, and PLPicDecoder::Trace().

Here is the call graph for this function:

void PLTIFFDecoder::Win32WarningHandler const char *  module,
const char *  fmt,
va_list  ap
[static, private]
 

Definition at line 438 of file pltiffdec.cpp.

References PLPicDecoder::Trace().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class _tiff_helper [friend]
 

Definition at line 33 of file pltiffdec.h.

friend class PLTIFFEncoder [friend]
 

Definition at line 34 of file pltiffdec.h.


Member Data Documentation

char PLTIFFDecoder::m_szLastErr [static, private]
 

Definition at line 23 of file pltiffdec.cpp.

Referenced by DoDecode(), doHiColor(), doLoColor(), and Win32ErrorHandler().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:01 2004 for vuVolume by  doxygen 1.3.9.1