Rogue Wave Views |
Rogue Wave Views Documentation Home |
RunLength encoder class. More...
#include <ilviews/util/psencode.h>
Public Member Functions | |
IlvRunLengthEncoder (ILVSTDPREF ostream *stream=0) | |
Constructor. More... | |
~IlvRunLengthEncoder () | |
Destructor. More... | |
void | consumeByte (IlUChar byte) |
Consumes a byte. More... | |
void | flush () |
Flushes the processed data to the output. | |
const char * | getPostScriptDecoderName () const |
Returns a string containing the PostScript decoding filter name. More... | |
void | init () |
Initializes or reinitializes the instance. | |
Public Member Functions inherited from IlvPostScriptEncoder | |
virtual | ~IlvPostScriptEncoder () |
Destructor. | |
virtual void | consumeBytes (IlUInt count, IlUChar const *bytes) |
Consumes an array of bytes. The default implementation calls consumeByte for each byte in the array. More... | |
virtual void | emitByte (IlUChar byte) |
Emits a byte. More... | |
virtual void | emitBytes (IlUInt count, IlUChar const *bytes) |
Emits an array of bytes. More... | |
IlvPostScriptEncoder * | getEmitter () const |
Return the emitter. More... | |
ILVSTDPREF ostream * | getStream () const |
Return the stream used by this instance. More... | |
void | setEmitter (IlvPostScriptEncoder *emitter) |
Sets the emitter for this encoder. More... | |
virtual void | setStream (ILVSTDPREF ostream *stream) |
Sets the output stream used by this instance. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvPostScriptEncoder | |
static IlString | GetFullDecoderString (const IlvPostScriptEncoder *pse) |
Returns the full string for an encoder. It takes into account the sub filters. More... | |
Protected Member Functions inherited from IlvPostScriptEncoder | |
IlvPostScriptEncoder (ILVSTDPREF ostream *stream=0) | |
Constructor. More... | |
RunLength encoder class.
Library: xviews or winviews or mviews (mutually exclusive)
This class allows you to encode binary data to data in a run length encoded binary description. NOT YET IMPLEMENTED, just writes runs of 1. The generated data is a sequence of runs, each run consists of a length
byte followed by 1 to 127 bytes of data. If the length
byte is in the range 0 to 127, the following lenght
+ 1 byte (1 to 128 bytes) are to be copied literally upon decompression. if length
is in the range 129 to 255, the following single byte is to be replicated 257 - length
(2 to 128 times) upon decompression.
See also IlvPostScriptEncoder
, IlvASCIIHexEncoder
, IlvASCII85Encoder
, IlvPSDevice
, IlvPSColorDevice
IlvRunLengthEncoder::IlvRunLengthEncoder | ( | ILVSTDPREF ostream * | stream = 0 | ) |
Constructor.
Initializes a new instance of IlvASCII85Encoder
.
stream | The output stream used by this instance. |
IlvRunLengthEncoder::~IlvRunLengthEncoder | ( | ) |
Destructor.
Flushes all remaining data.
|
virtual |
|
virtual |
Returns a string containing the PostScript decoding filter name.
Implements IlvPostScriptEncoder.
© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.