Logo Search packages:      
Sourcecode: paintlib version File versions

PLTIFFDecoder Class Reference

#include <pltiffdec.h>

Inheritance diagram for PLTIFFDecoder:

PLPicDecoder PLBmpInfo

List of all members.

Detailed Description

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

Definition at line 30 of file pltiffdec.h.

Public Member Functions

virtual void AssertValid () const
void AsString (char *psz, int len) const
virtual void Close ()
int GetBitsPerPixel () const
int GetField (int tag_id,...)
int GetHeight () const
virtual void GetImage (PLBmp &Bmp)
 Fills the bitmap with the image.
const PLPointGetResolution () const
const PLPointGetSize () const
TIFF * GetTIFFHandle ()
int GetWidth () const
bool HasAlpha () const
bool IsGreyscale () const
virtual void MakeBmp (PLBmp *pBmp, int BPPWanted=0)
virtual void MakeBmpFromFile (const char *pszFName, PLBmp *pBmp, int BPPWanted=0, PLIProgressNotification *pProgNot=NULL)
virtual void MakeBmpFromMemory (unsigned char *ucMemSrc, int MemSrcSize, PLBmp *pBmp, int BPPWanted=0, PLIProgressNotification *pProgNot=NULL)
virtual void MakeBmpFromURL (const char *pszURL, PLBmp *pBmp, int BPPWanted=0, PLIProgressNotification *pProgNot=NULL)
virtual void Open (PLDataSource *pDataSrc)
void OpenFile (const char *pszFName, PLIProgressNotification *pProgNot=NULL)
bool operator== (const PLBmpInfo &Other) const
 PLTIFFDecoder ()
 Creates a decoder.
void SetDataSrc (PLDataSource *pDataSrc)
virtual ~PLTIFFDecoder ()
 Destroys a decoder.

Static Public Member Functions

static void raiseError (int Code, char *pszErr)
static void SetTraceConfig (int Level, char *pszFName)
static void Trace (int TraceLevel, const char *pszMessage)
 Called to output status messages to the current debug console.

Protected Member Functions

PLBYTE ReadByte (PLDataSource *pDataSrc)
PLLONG ReadILong (PLDataSource *pDataSrc)
PLWORD ReadIWord (PLDataSource *pDataSrc)
PLLONG ReadMLong (PLDataSource *pDataSrc)
PLWORD ReadMWord (PLDataSource *pDataSrc)
void SetBmpInfo (const PLBmpInfo &SrcInfo)
void SetBmpInfo (const PLPoint &Size, int bpp, const PLPoint &Resolution, bool bAlphaChannel, bool bIsGreyscale)
PLBYTE * unpackPictRow (PLBYTE *pLineBuf, PLDataSource *pDataSrc, int Width, int rowBytes, int SrcBytes)

Protected Attributes

bool m_bAlphaChannel
bool m_bIsGreyscale
int m_bpp
PLPoint m_Resolution
PLPoint m_Size

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

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

Private Attributes

TIFF * m_pTif

Static Private Attributes

static char m_szLastErr [256]


class _tiff_helper
class PLTIFFEncoder

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

Generated by  Doxygen 1.6.0   Back to index