com.lizardtech.djvu
Class IWPixmap

java.lang.Object
  extended by com.lizardtech.djvu.DjVuObject
      extended by com.lizardtech.djvu.IWPixmap
All Implemented Interfaces:
Codec, DjVuInterface

public class IWPixmap
extends DjVuObject
implements Codec

This class represents structured wavelette data.


Field Summary
protected  com.lizardtech.djvu.IWCodec cbcodec
          DOCUMENT ME!
protected  com.lizardtech.djvu.IWMap cbmap
          DOCUMENT ME!
protected  int cbytes
          DOCUMENT ME!
protected  int crcb_delay
          DOCUMENT ME!
protected  boolean crcb_half
          DOCUMENT ME!
static int CRCBfull
          DOCUMENT ME!
static int CRCBhalf
          DOCUMENT ME!
static int CRCBMode
          DOCUMENT ME!
static int CRCBnone
          DOCUMENT ME!
static int CRCBnormal
          DOCUMENT ME!
protected  com.lizardtech.djvu.IWCodec crcodec
          DOCUMENT ME!
protected  com.lizardtech.djvu.IWMap crmap
          DOCUMENT ME!
protected  int cserial
          DOCUMENT ME!
protected  int cslice
          DOCUMENT ME!
static float[][] rgb_to_ycc
          DOCUMENT ME!
protected  com.lizardtech.djvu.IWCodec ycodec
          DOCUMENT ME!
protected  com.lizardtech.djvu.IWMap ymap
          DOCUMENT ME!
 
Fields inherited from class com.lizardtech.djvu.DjVuObject
hasReferences
 
Constructor Summary
IWPixmap()
          Creates a new IWPixmap object.
 
Method Summary
 void close_codec()
          DOCUMENT ME!
static IWPixmap createIWPixmap(DjVuInterface ref)
          Creates an instance of IWPixmap with the options interherited from the specified reference.
 void decode_iff(IFFInputStream iff, int maxchunks)
          DOCUMENT ME!
 void decode(DataPool pool)
          DOCUMENT ME!
 int getHeight()
          DOCUMENT ME!
 GPixmap getPixmap()
          DOCUMENT ME!
 GPixmap getPixmap(int subsample, GRect rect, GPixmap retval)
          Create a pixmap with the specified subsample rate and bounds.
 int getWidth()
          DOCUMENT ME!
 boolean isImageData()
          Query if this is image data.
 int setCrcbDelay(int value)
          Set the CRCB Delay
 
Methods inherited from class com.lizardtech.djvu.DjVuObject
checkLockTime, create, create, createSoftReference, createWeakReference, getDjVuOptions, getFromReference, invoke, setDjVuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lizardtech.djvu.DjVuInterface
getDjVuOptions, setDjVuOptions
 

Field Detail

CRCBfull

public static final int CRCBfull
DOCUMENT ME!

See Also:
Constant Field Values

CRCBhalf

public static final int CRCBhalf
DOCUMENT ME!

See Also:
Constant Field Values

CRCBMode

public static final int CRCBMode
DOCUMENT ME!

See Also:
Constant Field Values

CRCBnone

public static final int CRCBnone
DOCUMENT ME!

See Also:
Constant Field Values

CRCBnormal

public static final int CRCBnormal
DOCUMENT ME!

See Also:
Constant Field Values

rgb_to_ycc

public static final float[][] rgb_to_ycc
DOCUMENT ME!


cbcodec

protected com.lizardtech.djvu.IWCodec cbcodec
DOCUMENT ME!


crcodec

protected com.lizardtech.djvu.IWCodec crcodec
DOCUMENT ME!


ycodec

protected com.lizardtech.djvu.IWCodec ycodec
DOCUMENT ME!


cbmap

protected com.lizardtech.djvu.IWMap cbmap
DOCUMENT ME!


crmap

protected com.lizardtech.djvu.IWMap crmap
DOCUMENT ME!


ymap

protected com.lizardtech.djvu.IWMap ymap
DOCUMENT ME!


cbytes

protected int cbytes
DOCUMENT ME!


crcb_delay

protected int crcb_delay
DOCUMENT ME!


crcb_half

protected boolean crcb_half
DOCUMENT ME!


cserial

protected int cserial
DOCUMENT ME!


cslice

protected int cslice
DOCUMENT ME!

Constructor Detail

IWPixmap

public IWPixmap()
Creates a new IWPixmap object.

Method Detail

isImageData

public boolean isImageData()
Query if this is image data.

Specified by:
isImageData in interface Codec
Returns:
true

createIWPixmap

public static IWPixmap createIWPixmap(DjVuInterface ref)
Creates an instance of IWPixmap with the options interherited from the specified reference.

Parameters:
ref - Object to interherit DjVuOptions from.
Returns:
a new instance of IWPixmap.

close_codec

public void close_codec()
DOCUMENT ME!


decode

public void decode(DataPool pool)
            throws java.io.IOException
DOCUMENT ME!

Specified by:
decode in interface Codec
Parameters:
pool - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

decode_iff

public void decode_iff(IFFInputStream iff,
                       int maxchunks)
                throws java.io.IOException
DOCUMENT ME!

Parameters:
iff - DOCUMENT ME!
maxchunks - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

getHeight

public int getHeight()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPixmap

public GPixmap getPixmap()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPixmap

public GPixmap getPixmap(int subsample,
                         GRect rect,
                         GPixmap retval)
Create a pixmap with the specified subsample rate and bounds.

Parameters:
subsample - rate at which to subsample
rect - Bounding box of the desired pixmap.
retval - An old pixmap to try updating, or null.
Returns:
DOCUMENT ME!

getWidth

public int getWidth()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setCrcbDelay

public int setCrcbDelay(int value)
Set the CRCB Delay

Parameters:
value - the new CRCB delay value.
Returns:
the CRCB delay value