IW44 encoded gray-level image.
IW44 encoded gray-level image. This class provided functions for managing a gray level image 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 IWImage.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.
void encode_iff(IFFByteStream &iff, int nchunks, const IWEncoderParms *parms); int decode_chunk(ByteStream &bs); void decode_iff(IFFByteStream &iff, int maxchunks=999); void close_codec(); int get_serial(); void parm_dbfrac(float frac);
private:
float db_frac;
_IWMap *ymap;
_IWCodec *ycodec;
int cslice;
int cserial;
int cbytes;
IWBitmap(const IWBitmap &ref);
IWBitmap& operator=(const IWBitmap &ref);
}; class IWPixmap : public GPEnabled
{
public: IWPixmap(); enum CRCBMode {
CRCBnone,
CRCBhalf,
CRCBnormal,
CRCBfull }; void init(const GPixmap *bm, const GBitmap *mask=0, CRCBMode crcbmode=CRCBnormal); IWPixmap(const GPixmap *bm, const GBitmap *mask=0, CRCBMode crcbmode=CRCBnormal );
~IWPixmap();
/** Returns the width of the IWPixmap image.
void encode_iff(IFFByteStream &iff, int nchunks, const IWEncoderParms *parms); int decode_chunk(ByteStream &bs); void decode_iff(IFFByteStream &iff, int maxchunks=999); void close_codec(); int get_serial(); int parm_crcbdelay(int parm); void parm_dbfrac(float frac);
private:
int crcb_delay;
int crcb_half;
float db_frac;
_IWMap *ymap, *cbmap, *crmap;
_IWCodec *ycodec, *cbcodec, *crcodec;
int cslice;
int cserial;
int cbytes;
IWPixmap(const IWPixmap &ref);
IWPixmap& operator=(const IWPixmap &ref);
};
void init(const GBitmap *bm, const GBitmap *mask=0)
IWBitmap(const GBitmap *bm, const GBitmap *mask=0)
int get_width() const
int get_height() const
GP<GBitmap> get_bitmap()
GP<GBitmap> get_bitmap(int subsample, const GRect &rect)
unsigned int get_memory_usage() const
int get_percent_memory() const
int encode_chunk(ByteStream &bs, const IWEncoderParms &parms)
int get_width() const
int get_height() const
GP<GPixmap> get_pixmap()
GP<GPixmap> get_pixmap(int subsample, const GRect &rect)
unsigned int get_memory_usage() const
int get_percent_memory() const
int encode_chunk(ByteStream &bs, const IWEncoderParms &parms)
Writes a color image into a DjVu IW44 file.
Alphabetic index HTML hierarchy of classes or Java