#include <planydec.h>
Inheritance diagram for PLAnyPicDecoder:
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 |
PLBmpDecoder * | m_pBmpDec |
PLPictDecoder * | m_pPictDec |
PLTGADecoder * | m_pTGADec |
PLTIFFDecoder * | m_pTIFFDec |
PLJPEGDecoder * | m_pJPEGDec |
PLPNGDecoder * | m_pPNGDec |
PLWEMFDecoder * | m_pWEMFDec |
PLPCXDecoder * | m_pPCXDec |
PLPGMDecoder * | m_pPGMDec |
PLGIFDecoder * | m_pGIFDec |
PLPPMDecoder * | m_pPPMDec |
PLPSDDecoder * | m_pPSDDec |
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.
|
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. |
|
Destroys the decoder.
Definition at line 123 of file planydec.cpp. |
|
Definition at line 393 of file planydec.cpp. Referenced by MakeBmp(). |
|
Called after decoding. Returns the actual file type loaded.
Definition at line 286 of file planydec.cpp. |
|
Definition at line 294 of file planydec.cpp. References tagWINBITMAPFILEHEADER::bfType, PLBYTE, PLULONG, and WINBITMAPFILEHEADER. Referenced by MakeBmp(). |
|
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:
|
Definition at line 93 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 102 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 97 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 100 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 101 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 94 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 98 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 103 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 104 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 95 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 96 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 99 of file planydec.h. Referenced by MakeBmp(), and PLAnyPicDecoder(). |
|
Definition at line 91 of file planydec.h. Referenced by MakeBmp(). |