#include <plpicdec.h>
Inheritance diagram for PLPicDecoder:
Public Member Functions | |
PLPicDecoder () | |
virtual | ~PLPicDecoder () |
Destructor. Frees memory allocated. | |
virtual void | MakeBmpFromFile (const char *pszFName, PLBmp *pBmp, int BPPWanted=0, PLIProgressNotification *pProgNot=NULL) |
virtual void | MakeBmpFromURL (const char *pszURL, 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 | MakeBmp (PLBmp *pBmp, int BPPWanted=0) |
void | OpenFile (const char *pszFName, PLIProgressNotification *pProgNot=NULL) |
virtual void | Close () |
virtual void | Open (PLDataSource *pDataSrc)=0 |
virtual void | GetImage (PLBmp &Bmp)=0 |
void | SetDataSrc (PLDataSource *pDataSrc) |
Static Public Member Functions | |
void | SetTraceConfig (int Level, char *pszFName) |
void | raiseError (int Code, char *pszErr) |
void | Trace (int TraceLevel, const char *pszMessage) |
Called to output status messages to the current debug console. | |
Protected Member Functions | |
PLBYTE * | unpackPictRow (PLBYTE *pLineBuf, PLDataSource *pDataSrc, int Width, int rowBytes, int SrcBytes) |
PLBYTE | ReadByte (PLDataSource *pDataSrc) |
PLWORD | ReadIWord (PLDataSource *pDataSrc) |
PLWORD | ReadMWord (PLDataSource *pDataSrc) |
PLLONG | ReadILong (PLDataSource *pDataSrc) |
PLLONG | ReadMLong (PLDataSource *pDataSrc) |
Protected Attributes | |
PLDataSource * | m_pDataSrc |
Definition at line 26 of file plpicdec.h.
|
Empty constructor. The actual initialization takes place in a derived class. |
|
Stores the results in pBmp. BPPWanted is the number of bits per pixel in the bitmap returned. Valid values for BPPWanted are 8, 24, and 0. 0 means 'keep the input format'. Decoding a true-color image to 8 bpp is not supported. |
|
Decodes a picture in a file and stores the results in pBmp. BPPWanted is the number of bits per pixel in the bitmap returned. Valid values for BPPWanted are 8, 24, and 0. 0 means 'keep the input format'. Decoding a true-color image to 8 bpp is not supported. As an exception, BPPWanted can be 1 for b/w tiff files. |
|
Decodes a picture from a memory location which directly resembles the image file as it would be on disc. The result is stored in pBmp. BPPWanted is the number of bits per pixel in the bitmap returned. Valid values for BPPWanted are 8, 24, and 0. 0 means 'keep the input format'. Decoding a true-color image to 8 bpp is not supported. As an exception, BPPWanted can be 1 for b/w tiff files. |
|
BPPWanted is the number of bits per pixel in the bitmap returned. Valid values for BPPWanted are 8, 24, and 0. 0 means 'keep the input format'. Decoding a true-color image to 8 bpp is not supported. As an exception, BPPWanted can be 1 for b/w tiff files. |
|
Decodes a picture by getting the encoded data from pDataSrc. Open should be called before, close after this routine is called. |
|
Sets the amount and destination of debug traces output by the debug version. pszFName contains either a valid file name or is NULL. If it contains a file name, this file is used to store debug information. If pszFName is NULL, the destination is either the MSVC debug console or stderr depending on the version of the library. Valid values for Level are: |