jj2000.j2k.entropy.encoder
Class EBCOTLayer

java.lang.Object
  |
  +--jj2000.j2k.entropy.encoder.EBCOTLayer

class EBCOTLayer
extends java.lang.Object

This class holds information about each layer that is to be, or has already been, allocated . It is used in the rate-allocation process to keep the necessary layer information. It is used by EBCOTRateAllocator.

See Also:
EBCOTRateAllocator

Field Summary
(package private)  int actualBytes
          The actual number of bytes which are consumed by the the current and any previous layers.
(package private)  int maxBytes
          This is the maximum number of bytes that should be allocated for this and previous layers.
(package private)  boolean optimize
          If true the `maxBytes' value is the hard maximum and the threshold is determined iteratively.
(package private)  float rdThreshold
          The rate-distortion threshold associated with the bit-stream layer.
 
Constructor Summary
(package private) EBCOTLayer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxBytes

int maxBytes
This is the maximum number of bytes that should be allocated for this and previous layers. This is actually the target length for the layer.


actualBytes

int actualBytes
The actual number of bytes which are consumed by the the current and any previous layers. This is the result from a simulation when the threshold for the layer has been set.


optimize

boolean optimize
If true the `maxBytes' value is the hard maximum and the threshold is determined iteratively. If false the `maxBytes' value is a target bitrate and the threshold is estimated from summary information accumulated during block coding.


rdThreshold

float rdThreshold
The rate-distortion threshold associated with the bit-stream layer. When set the layer includes data up to the truncation points that have a slope no smaller than 'rdThreshold'.

Constructor Detail

EBCOTLayer

EBCOTLayer()