Logo Search packages:      
Sourcecode: djvulibre version File versions

IW44Image Class Reference

#include <IW44Image.h>

Inheritance diagram for IW44Image:


List of all members.

Detailed Description

IW44 encoded gray-level and color images. This class acts as a base for images represented as a collection of IW44 wavelet coefficients. The coefficients are stored in a memory efficient data structure. Member function {get_bitmap} renders an arbitrary segment of the image into a {GBitmap}. Member functions {decode_iff} and {encode_iff} read and write DjVu IW44 files (see {IW44Image.h}). Both the copy constructor and the copy operator are declared as private members. It is therefore not possible to make multiple copies of instances of this class.

Definition at line 226 of file IW44Image.h.

Public Types

enum  CRCBMode { CRCBnone, CRCBhalf, CRCBnormal, CRCBfull }
enum  ImageType { GRAY = false, COLOR = true }

Public Member Functions

virtual void close_codec (void)=0
virtual int decode_chunk (GP< ByteStream > gbs)=0
virtual void decode_iff (IFFByteStream &iff, int maxchunks=999)=0
virtual int encode_chunk (GP< ByteStream > gbs, const IWEncoderParms &parms)
virtual void encode_iff (IFFByteStream &iff, int nchunks, const IWEncoderParms *parms)
virtual GP< GBitmapget_bitmap (int subsample, const GRect &rect)
virtual GP< GBitmapget_bitmap (void)
int get_count (void) const
int get_height (void) const
virtual unsigned int get_memory_usage (void) const =0
virtual int get_percent_memory (void) const =0
virtual GP< GPixmapget_pixmap (int subsample, const GRect &rect)
virtual GP< GPixmapget_pixmap (void)
virtual int get_serial (void)=0
int get_width (void) const
virtual int parm_crcbdelay (const int parm)
virtual void parm_dbfrac (float frac)=0

Static Public Member Functions

static GP< IW44Imagecreate_decode (const ImageType itype=COLOR)
static GP< IW44Imagecreate_encode (const GPixmap &bm, const GP< GBitmap > mask=0, CRCBMode crcbmode=CRCBnormal)
static GP< IW44Imagecreate_encode (const GBitmap &bm, const GP< GBitmap > mask=0)
static GP< IW44Imagecreate_encode (const ImageType itype=COLOR)

Protected Attributes

Map * cbmap
int cbytes
volatile int count
 The reference counter.
Map * crmap
int cserial
int cslice
float db_frac
Map * ymap

Private Member Functions

 IW44Image (const IW44Image &ref)
IW44Imageoperator= (const IW44Image &ref)


struct  Alloc

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index