#include <pltgadec.h>
Inheritance diagram for PLTGADecoder:


Public Member Functions | |
| PLTGADecoder () | |
| Creates a decoder. | |
| virtual | ~PLTGADecoder () |
| Destroys a decoder. | |
Protected Member Functions | |
| virtual void | DoDecode (PLBmp *pBmp, PLDataSource *pDataSrc) |
| Main decoder routine. | |
Private Member Functions | |
| void | readTgaHeader (TGAHEADER *pTgaHead, PLDataSource *pDataSrc) |
| void | readPalette (int StartIndex, int Length, int EntrySize, PLBmp *pBmp, PLDataSource *pDataSrc) |
| void | readImage (TGAHEADER *pTgaHead, PLBmp *pBmp, PLDataSource *pDataSrc) |
| void | readData (TGAHEADER *pTgaHead, bool bCompressed, PLBmp *pBmp, PLDataSource *pDataSrc) |
| void | expandUncompressedLine (PLBYTE *pDest, int Width, bool bReversed, int bpp, PLDataSource *pDataSrc) |
| void | expandCompressedLine (PLBYTE *pDest, int Width, bool bReversed, int bpp, PLDataSource *pDataSrc) |
| PLPixel32 | readPixel32 (int bpp, PLDataSource *pDataSrc) |
| PLBYTE | readPixel8 (int bpp, PLDataSource *pDataSrc) |
Decodes 8, 15, 16, 24 and 32 bpp targa files (compressed and uncompressed) and returns an 8 or 32 bpp CBitmap. Preserves the alpha channel.
Definition at line 25 of file pltgadec.h.
|
|
Creates a decoder.
Definition at line 22 of file pltgadec.cpp. |
|
|
Destroys a decoder.
Definition at line 30 of file pltgadec.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 pltgadec.cpp. References _TgaHeader::CmapEntrySize, _TgaHeader::CmapIndex, _TgaHeader::CmapLength, _TgaHeader::CmapType, _TgaHeader::ImageHeight, _TgaHeader::ImageWidth, _TgaHeader::PixelDepth, and TGAHEADER. |
|
||||||||||||||||||||||||
|
Definition at line 224 of file pltgadec.cpp. References PLBYTE. |
|
||||||||||||||||||||||||
|
Definition at line 198 of file pltgadec.cpp. References PLBYTE. |
|
||||||||||||||||||||
|
Definition at line 152 of file pltgadec.cpp. |
|
||||||||||||||||
|
Definition at line 121 of file pltgadec.cpp. References PL_ERRFORMAT_UNKNOWN, raiseError(), TGA_Map, TGA_Mono, TGA_RGB, TGA_RLEMap, TGA_RLEMono, TGA_RLERGB, and TGAHEADER. |
Here is the call graph for this function:

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

|
||||||||||||
|
Definition at line 316 of file pltgadec.cpp. |
|
||||||||||||
|
Definition at line 78 of file pltgadec.cpp. References TGAHEADER. |
1.3.9.1