Logo Search packages:      
Sourcecode: paintlib version File versions

PLAnyPicDecoder Class Reference

#include <planydec.h>

Inheritance diagram for PLAnyPicDecoder:

PLPicDecoder PLBmpInfo

List of all members.


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 57 of file planydec.h.


Public Member Functions

virtual void AssertValid () const
void AsString (char *psz, int len) const
virtual void Close ()
 Terminates decoding.
int GetBitsPerPixel () const
int GetFileFormat ()
 Returns the actual file type loaded. Can be called after open.
int GetHeight () const
virtual void GetImage (PLBmp &Bmp)
 Decodes the actual image.
const PLPointGetResolution () const
const PLPointGetSize () const
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)
 Opens a data source and prepares decoding.
void OpenFile (const char *pszFName, PLIProgressNotification *pProgNot=NULL)
bool operator== (const PLBmpInfo &Other) const
 PLAnyPicDecoder ()
 Creates a decoder.
void SetDataSrc (PLDataSource *pDataSrc)
 ~PLAnyPicDecoder ()
 Destroys the 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
PLDataSourcem_pDataSrc
PLPoint m_Resolution
PLPoint m_Size

Private Member Functions

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

Private Attributes

PLBmpDecoderm_pBmpDec
PLPicDecoderm_pCurDec
PLGIFDecoderm_pGIFDec
PLIFF85Decoderm_pIFF85Dec
PLJPEGDecoderm_pJPEGDec
PLPCXDecoderm_pPCXDec
PLPGMDecoderm_pPGMDec
PLPictDecoderm_pPictDec
PLPNGDecoderm_pPNGDec
PLPPMDecoderm_pPPMDec
PLPSDDecoderm_pPSDDec
PLSGIDecoderm_pSGIDec
PLTGADecoderm_pTGADec
PLTIFFDecoderm_pTIFFDec
PLWEMFDecoder * m_pWEMFDec
int m_Type

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

Generated by  Doxygen 1.6.0   Back to index