|
wxMaxima
|
Class representing an LZW decoder. (For internal use only) More...
#include <pdfparser.h>
Public Member Functions | |
| wxPdfLzwDecoder () | |
| Constructor. | |
| virtual | ~wxPdfLzwDecoder () |
| Destructor. | |
| int | GetNextCode () |
| Get next code from the encoded stream. | |
| bool | Decode (wxMemoryInputStream *dataIn, wxMemoryOutputStream *dataOut) |
| Decode a byte stream. | |
| void | InitializeStringTable () |
| Initialize the string table with initial 256 entries. | |
| void | WriteString (int code) |
| Write decoded string associated with code into output buffer. | |
| void | AddStringToTable (int oldCode, char newString) |
| Add a new string to the string table. | |
Class representing an LZW decoder. (For internal use only)
Decodes streams that use the Lempel-Ziv-Welch (LZW) compression algorithm, commonly used in PDF and TIFF files.
| void wxPdfLzwDecoder::AddStringToTable | ( | int | oldCode, |
| char | newString | ||
| ) |
Add a new string to the string table.
| oldCode | The previous code |
| newString | The new character to append |
| bool wxPdfLzwDecoder::Decode | ( | wxMemoryInputStream * | dataIn, |
| wxMemoryOutputStream * | dataOut | ||
| ) |
Decode a byte stream.
| dataIn | The encoded input stream |
| dataOut | The decoded output stream |
true if successful, false otherwise | int wxPdfLzwDecoder::GetNextCode | ( | ) |
Get next code from the encoded stream.
| void wxPdfLzwDecoder::WriteString | ( | int | code | ) |
Write decoded string associated with code into output buffer.
| code | The code to look up in the string table |