#include <plpicenc.h>
Inheritance diagram for PLPicEncoder:
Public Member Functions | |
PLPicEncoder () | |
Empty constructor. | |
virtual | ~PLPicEncoder () |
Destructor. Frees memory allocated. | |
virtual void | MakeFileFromBmp (const char *, PLBmp *) |
Encodes a bitmap to a file and stores. | |
virtual void | SaveBmp (PLBmp *, PLDataSink *) |
Encodes a picture to a pre-existing data destination (sink). | |
void | SetTraceConfig (int Level, char *pszFName) |
void | Trace (int TraceLevel, const char *pszMessage) |
Static Public Member Functions | |
void | raiseError (int Code, char *pszErr) |
Protected Member Functions | |
virtual void | DoEncode (PLBmp *pBmp, PLDataSink *pDataSrc)=0 |
Implements the actual encoding process. |
It defines common routines for all encoders. Encoders for specific file formats can be derived from this class. Objects of this class interact with a PLDataSink to encode bitmaps.
Definition at line 30 of file plpicenc.h.
|
Empty constructor. The actual initialization takes place in a derived class. Definition at line 25 of file plpicenc.cpp. |
|
Destructor. Frees memory allocated.
Definition at line 31 of file plpicenc.cpp. |
|
Implements the actual encoding process. Uses variables local to the object to retrieve and store the data. Implemented in derived classes. Implemented in PLBmpEncoder, PLJPEGEncoder, PLPNGEncoder, PLTIFFEncoder, and PLTIFFEncoderEx. Referenced by SaveBmp(). |
|
Encodes a bitmap to a file and stores.
Definition at line 38 of file plpicenc.cpp. References PLFileSink::Close(), PLBmp::GetMemUsed(), PLFileSink::Open(), raiseError(), SaveBmp(), and Trace(). |
Here is the call graph for this function:
|
Definition at line 82 of file plpicenc.cpp. References PLPicDecoder::raiseError(). Referenced by error_exit(), MakeFileFromBmp(), and raiseError(). |
Here is the call graph for this function:
|
Encodes a picture to a pre-existing data destination (sink).
Definition at line 68 of file plpicenc.cpp. References DoEncode(). Referenced by MakeFileFromBmp(). |
Here is the call graph for this function:
|
Definition at line 77 of file plpicenc.cpp. References PLPicDecoder::SetTraceConfig(). |
Here is the call graph for this function:
|
Definition at line 87 of file plpicenc.cpp. References PLPicDecoder::Trace(). Referenced by MakeFileFromBmp(). |
Here is the call graph for this function: