jj2000.j2k.entropy
Interface StdEntropyCoderOptions

All Known Implementing Classes:
EntropyCoder, StdEntropyCoder, HeaderEncoder, StdEntropyDecoder, PktDecoder, FileBitstreamReaderAgent, HeaderDecoder

public interface StdEntropyCoderOptions

This interface define the constants that identify the possible options for the entropy coder, as well some fixed parameters of the JPEG 2000 entropy coder.


Field Summary
static int FIRST_BYPASS_PASS_IDX
          The index of the first "raw" pass, if bypass mode is on.
static int MAX_CB_AREA
          The maximum code-block area (width x height).
static int MAX_CB_DIM
          The maximum code-block dimension.
static int MIN_CB_DIM
          The minimum code-block dimension.
static int NUM_EMPTY_PASSES_IN_MS_BP
          The number of empty passes in the most significant bit-plane.
static int NUM_NON_BYPASS_MS_BP
          The number of most significant bit-planes where bypass mode is not to be used, even if bypass mode is on: 4.
static int NUM_PASSES
          The number of coding passes per bit-plane.
static int OPT_BYPASS
          The flag bit to indicate that selective arithmetic coding bypass should be used.
static int OPT_ER_TERM
          The flag bit to indicate that error resilience info is embedded on MQ termination.
static int OPT_REG_TERM
          The flag bit to indicate that regular termination should be used.
static int OPT_RESET_MQ
          The flag bit to indicate that the MQ states for all contexts should be reset at the end of each non-bypass coding pass.
static int OPT_SEG_MARKERS
          The flag bit to indicate that a segmentation marker is to be inserted at the end of each normalization coding pass.
static int OPT_VERT_STR_CAUSAL
          The flag bit to indicate the vertically stripe-causal context formation should be used.
static int STRIPE_HEIGHT
          The stripe height.
 

Field Detail

OPT_BYPASS

public static final int OPT_BYPASS
The flag bit to indicate that selective arithmetic coding bypass should be used. In this mode some of the coding passes bypass the arithmetic coder and raw bits are output. If this flag is turned on and the 'OPT_REG_TERM' one is turned off then the any non-bypass coding pass before a bypass coding pass must use MQ termination.

OPT_RESET_MQ

public static final int OPT_RESET_MQ
The flag bit to indicate that the MQ states for all contexts should be reset at the end of each non-bypass coding pass.

OPT_REG_TERM

public static final int OPT_REG_TERM
The flag bit to indicate that regular termination should be used. When this is specified termination is performed after each coding pass. Termination is applied to both arithmetically coded and bypass (i.e. raw) passes .

OPT_VERT_STR_CAUSAL

public static final int OPT_VERT_STR_CAUSAL
The flag bit to indicate the vertically stripe-causal context formation should be used.

OPT_ER_TERM

public static final int OPT_ER_TERM
The flag bit to indicate that error resilience info is embedded on MQ termination. The predictable error-resilient MQ termination at the encoder is necessary in this case.

OPT_SEG_MARKERS

public static final int OPT_SEG_MARKERS
The flag bit to indicate that a segmentation marker is to be inserted at the end of each normalization coding pass. The segment marker is the four symbol sequence 1010 that are sent through the MQ coder using the UNIFORM context.

MIN_CB_DIM

public static final int MIN_CB_DIM
The minimum code-block dimension. The nominal width or height of a code-block must never be less than this. It is 4.

MAX_CB_DIM

public static final int MAX_CB_DIM
The maximum code-block dimension. No code-block should be larger, either in width or height, than this value. It is 1024.

MAX_CB_AREA

public static final int MAX_CB_AREA
The maximum code-block area (width x height). The surface covered by a nominal size block should never be larger than this. It is 4096

STRIPE_HEIGHT

public static final int STRIPE_HEIGHT
The stripe height. This is the nominal value of the stripe height. It is 4.

NUM_PASSES

public static final int NUM_PASSES
The number of coding passes per bit-plane. This is the number of passes per bit-plane. It is 3.

NUM_NON_BYPASS_MS_BP

public static final int NUM_NON_BYPASS_MS_BP
The number of most significant bit-planes where bypass mode is not to be used, even if bypass mode is on: 4.

NUM_EMPTY_PASSES_IN_MS_BP

public static final int NUM_EMPTY_PASSES_IN_MS_BP
The number of empty passes in the most significant bit-plane. It is 2.

FIRST_BYPASS_PASS_IDX

public static final int FIRST_BYPASS_PASS_IDX
The index of the first "raw" pass, if bypass mode is on.