#include <plppmdec.h>
Inheritance diagram for PLPPMDecoder:


Public Member Functions | |
| PLPPMDecoder () | |
| Creates a decoder. | |
| virtual | ~PLPPMDecoder () |
| Destroys a decoder. | |
Protected Member Functions | |
| virtual void | DoDecode (PLBmp *pBmp, PLDataSource *pDataSrc) |
| Main decoder routine. | |
Private Member Functions | |
| void | readPpmHeader (PPMHEADER *pPpmHead, PLDataSource *pDataSrc) |
| int | readASCIIDecimal (PLDataSource *pDataSrc) |
| void | skipComment (PLDataSource *pDataSrc) |
| void | skipPpmASCIISeparators (PLDataSource *pDataSrc) |
| PLBYTE * | readASCIILine (PLDataSource *pDataSrc) |
| void | readImage (PPMHEADER *pPpmHead, PLBmp *pBmp, PLDataSource *pDataSrc) |
| void | readData (PPMHEADER *pPpmHead, PLBmp *pBmp, PLDataSource *pDataSrc) |
| void | expandASCIILine (PLPixel32 *pDest, int MaxGrayValue, int Width, PLDataSource *pDataSrc) |
| void | expandByteLine (PLPixel32 *pDest, int MaxGrayValue, int Width, PLDataSource *pDataSrc) |
| PLPixel32 | readASCIIPixel32 (int MaxGrayValue, PLDataSource *pDataSrc) |
Private Attributes | |
| PLBYTE | m_LastByte |
| bool | m_UseLastByte |
Definition at line 29 of file plppmdec.h.
|
|
Creates a decoder.
Definition at line 25 of file plppmdec.cpp. |
|
|
Destroys a decoder.
Definition at line 31 of file plppmdec.cpp. |
|
||||||||||||
|
Main decoder routine. Reads the header, Creates the bitmap, reads the palette, and reads the image data. Reimplemented from PLPicDecoder. Definition at line 36 of file plppmdec.cpp. References _PpmHeader::ImageHeight, _PpmHeader::ImageWidth, and PPMHEADER. |
|
||||||||||||||||||||
|
Definition at line 225 of file plppmdec.cpp. |
|
||||||||||||||||||||
|
Definition at line 241 of file plppmdec.cpp. References PLBYTE, and PLPixel32::Set(). |
Here is the call graph for this function:

|
|
Definition at line 143 of file plppmdec.cpp. References m_LastByte, and PLPicDecoder::ReadByte(). |
Here is the call graph for this function:

|
|
Definition at line 114 of file plppmdec.cpp. References byte, PL_ERRFORMAT_UNKNOWN, PLBYTE, PLPicDecoder::raiseError(), and PLPicDecoder::ReadByte(). |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 273 of file plppmdec.cpp. References PLBYTE, and PLPixel32::Set(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 195 of file plppmdec.cpp. References PPMHEADER. |
|
||||||||||||||||
|
Definition at line 178 of file plppmdec.cpp. References PL_ERRFORMAT_UNKNOWN, PPM_P3, PPM_P6, PPMHEADER, and raiseError(). |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 54 of file plppmdec.cpp. References PL_ERRFORMAT_UNKNOWN, PPMHEADER, and raiseError(). |
Here is the call graph for this function:

|
|
Definition at line 158 of file plppmdec.cpp. References m_LastByte, and PLPicDecoder::ReadByte(). |
Here is the call graph for this function:

|
|
Definition at line 167 of file plppmdec.cpp. References m_LastByte, and PLPicDecoder::ReadByte(). |
Here is the call graph for this function:

|
|
Definition at line 90 of file plppmdec.h. Referenced by readASCIIDecimal(), skipComment(), and skipPpmASCIISeparators(). |
|
|
Definition at line 91 of file plppmdec.h. |
1.3.9.1