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

PLAnyPicDecoder Class Reference

Class which decodes pictures with any known format. More...

#include <planydec.h>

Inheritance diagram for PLAnyPicDecoder:

Inheritance graph
[legend]
Collaboration diagram for PLAnyPicDecoder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLAnyPicDecoder ()
 Creates a decoder.
 ~PLAnyPicDecoder ()
 Destroys the decoder.
virtual void MakeBmp (PLDataSource *pDataSrc, PLBmp *pBmp, int BPPWanted=0)
 Decodes a picture in a block of memory.
int GetFileFormat ()
 Called after decoding. Returns the actual file type loaded.

Private Member Functions

int getFileType (PLBYTE *pData, int DataLen)
long epsLongVal (unsigned char *p)

Private Attributes

int m_Type
PLBmpDecoderm_pBmpDec
PLPictDecoderm_pPictDec
PLTGADecoderm_pTGADec
PLTIFFDecoderm_pTIFFDec
PLJPEGDecoderm_pJPEGDec
PLPNGDecoderm_pPNGDec
PLWEMFDecoder * m_pWEMFDec
PLPCXDecoderm_pPCXDec
PLPGMDecoderm_pPGMDec
PLGIFDecoderm_pGIFDec
PLPPMDecoderm_pPPMDec
PLPSDDecoder * m_pPSDDec

Detailed Description

Class which decodes pictures with any known format.

It auto-detects the format to use and delegates the work to one of the other decoder classes.

The interface to PLAnyPicDecoder is the same as PLPicDecoder.

Definition at line 54 of file planydec.h.


Constructor & Destructor Documentation

PLAnyPicDecoder::PLAnyPicDecoder  ) 
 

Creates a decoder.

Definition at line 74 of file planydec.cpp.

References m_pBmpDec, m_pGIFDec, m_pJPEGDec, m_pPCXDec, m_pPGMDec, m_pPictDec, m_pPNGDec, m_pPPMDec, m_pPSDDec, m_pTGADec, m_pTIFFDec, m_pWEMFDec, NULL, and PL_FT_UNKNOWN.

PLAnyPicDecoder::~PLAnyPicDecoder  ) 
 

Destroys the decoder.

Definition at line 123 of file planydec.cpp.


Member Function Documentation

long PLAnyPicDecoder::epsLongVal unsigned char *  p  )  [private]
 

Definition at line 393 of file planydec.cpp.

Referenced by MakeBmp().

int PLAnyPicDecoder::GetFileFormat  ) 
 

Called after decoding. Returns the actual file type loaded.

Definition at line 286 of file planydec.cpp.

int PLAnyPicDecoder::getFileType PLBYTE pData,
int  DataLen
[private]
 

Definition at line 294 of file planydec.cpp.

References tagWINBITMAPFILEHEADER::bfType, PLBYTE, PLULONG, and WINBITMAPFILEHEADER.

Referenced by MakeBmp().

void PLAnyPicDecoder::MakeBmp PLDataSource pDataSrc,
PLBmp pBmp,
int  BPPWanted = 0
[virtual]
 

Decodes a picture in a block of memory.

Reimplemented from PLPicDecoder.

Definition at line 164 of file planydec.cpp.

References epsLongVal(), PLDataSource::GetBufferPtr(), PLDataSource::GetFileSize(), getFileType(), PLDataSource::GetName(), m_pBmpDec, m_pGIFDec, m_pJPEGDec, m_pPCXDec, m_pPGMDec, m_pPictDec, m_pPNGDec, m_pPPMDec, m_pPSDDec, m_pTGADec, m_pTIFFDec, m_pWEMFDec, m_Type, PLPicDecoder::MakeBmp(), PL_ERRFORMAT_NOT_SUPPORTED, PL_ERRNO_MEMORY, PL_ERRUNKNOWN_FILE_TYPE, PL_FT_EMF, PL_FT_EPSTIFF, PL_FT_GIF, PL_FT_JPEG, PL_FT_MACPICT, PL_FT_PCX, PL_FT_PGM, PL_FT_PNG, PL_FT_PPM, PL_FT_PSD, PL_FT_TARGA, PL_FT_TIFF, PL_FT_UNKNOWN, PL_FT_WINBMP, PL_FT_WMF, PLPicDecoder::raiseError(), PLDataSource::ReadNBytes(), and PLPicDecoder::Trace().

Here is the call graph for this function:


Member Data Documentation

PLBmpDecoder* PLAnyPicDecoder::m_pBmpDec [private]
 

Definition at line 93 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLGIFDecoder* PLAnyPicDecoder::m_pGIFDec [private]
 

Definition at line 102 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLJPEGDecoder* PLAnyPicDecoder::m_pJPEGDec [private]
 

Definition at line 97 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLPCXDecoder* PLAnyPicDecoder::m_pPCXDec [private]
 

Definition at line 100 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLPGMDecoder* PLAnyPicDecoder::m_pPGMDec [private]
 

Definition at line 101 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLPictDecoder* PLAnyPicDecoder::m_pPictDec [private]
 

Definition at line 94 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLPNGDecoder* PLAnyPicDecoder::m_pPNGDec [private]
 

Definition at line 98 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLPPMDecoder* PLAnyPicDecoder::m_pPPMDec [private]
 

Definition at line 103 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLPSDDecoder* PLAnyPicDecoder::m_pPSDDec [private]
 

Definition at line 104 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLTGADecoder* PLAnyPicDecoder::m_pTGADec [private]
 

Definition at line 95 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLTIFFDecoder* PLAnyPicDecoder::m_pTIFFDec [private]
 

Definition at line 96 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

PLWEMFDecoder* PLAnyPicDecoder::m_pWEMFDec [private]
 

Definition at line 99 of file planydec.h.

Referenced by MakeBmp(), and PLAnyPicDecoder().

int PLAnyPicDecoder::m_Type [private]
 

Definition at line 91 of file planydec.h.

Referenced by MakeBmp().


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