#include <plpgmdec.h>
Inheritance diagram for PLPGMDecoder:


Public Member Functions | |
| PLPGMDecoder () | |
| Creates a decoder. | |
| virtual | ~PLPGMDecoder () |
| Destroys a decoder. | |
Protected Member Functions | |
| virtual void | DoDecode (PLBmp *pBmp, PLDataSource *pDataSrc) |
| Main decoder routine. | |
Private Member Functions | |
| void | readPgmHeader (PGMHEADER *pPgmHead, PLDataSource *pDataSrc) |
| int | readASCIIDecimal (PLDataSource *pDataSrc) |
| void | skipComment (PLDataSource *pDataSrc) |
| void | skipPgmASCIISeparators (PLDataSource *pDataSrc) |
| PLBYTE * | readASCIILine (PLDataSource *pDataSrc) |
| void | readImage (PGMHEADER *pPgmHead, PLBmp *pBmp, PLDataSource *pDataSrc) |
| void | readData (PGMHEADER *pPgmHead, PLBmp *pBmp, PLDataSource *pDataSrc) |
| void | expandASCIILine (PLBYTE *pDest, int MaxGrayValue, int Width, PLDataSource *pDataSrc) |
| void | expandByteLine (PLBYTE *pDest, int MaxGrayValue, int Width, PLDataSource *pDataSrc) |
| PLBYTE | readASCIIPixel8 (int MaxGrayValue, PLDataSource *pDataSrc) |
Private Attributes | |
| PLBYTE | m_LastByte |
| bool | m_UseLastByte |
Definition at line 25 of file plpgmdec.h.
|
|
Creates a decoder.
Definition at line 19 of file plpgmdec.cpp. |
|
|
Destroys a decoder.
Definition at line 28 of file plpgmdec.cpp. |
|
||||||||||||
|
Main decoder routine. Reads the header, Creates the bitmap, reads the palette, and reads the image data. Reimplemented from PLPicDecoder. Definition at line 33 of file plpgmdec.cpp. References _PgmHeader::ImageHeight, _PgmHeader::ImageWidth, and PGMHEADER. |
|
||||||||||||||||||||
|
Definition at line 222 of file plpgmdec.cpp. References PLBYTE. |
|
||||||||||||||||||||
|
Definition at line 238 of file plpgmdec.cpp. References PLBYTE. |
|
|
Definition at line 140 of file plpgmdec.cpp. References m_LastByte, and PLPicDecoder::ReadByte(). |
Here is the call graph for this function:

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

|
||||||||||||
|
Definition at line 259 of file plpgmdec.cpp. References PLBYTE. |
|
||||||||||||||||
|
Definition at line 192 of file plpgmdec.cpp. |
|
||||||||||||||||
|
Definition at line 175 of file plpgmdec.cpp. References PGM_P2, PGM_P5, PGMHEADER, PL_ERRFORMAT_UNKNOWN, and raiseError(). |
Here is the call graph for this function:

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

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

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

|
|
Definition at line 47 of file plpgmdec.h. Referenced by readASCIIDecimal(), skipComment(), and skipPgmASCIISeparators(). |
|
|
Definition at line 48 of file plpgmdec.h. |
1.3.9.1