// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------
// RLE encoding and decoding
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// RLE encoding and decoding
//-----------------------------------------------------------------------------
// If ((data & 0xC0) != 0xC0), then the value read is a data
// byte. Else, it is a counter (cont = val & 0x3F) and the
// next byte is the data byte.
// If ((data & 0xC0) != 0xC0), then the value read is a data
// byte. Else, it is a counter (cont = val & 0x3F) and the
// next byte is the data byte.
unsigned char *src; // pointer into wxImage data
unsigned int width, height; // size of the image
unsigned int bytesperline; // bytes per line (each plane)
unsigned char *src; // pointer into wxImage data
unsigned int width, height; // size of the image
unsigned int bytesperline; // bytes per line (each plane)
int format = wxPCX_24BIT; // image format (8 bit, 24 bit)
wxImageHistogram histogram; // image histogram
unsigned long key; // key in the hashtable
int format = wxPCX_24BIT; // image format (8 bit, 24 bit)
wxImageHistogram histogram; // image histogram
unsigned long key; // key in the hashtable
bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose, int WXUNUSED(index) )
{
int error;
bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose, int WXUNUSED(index) )
{
int error;