jj2000.j2k.codestream
Interface Markers

All Known Implementing Classes:
FileBitstreamReaderAgent, FileCodestreamWriter, HeaderDecoder, HeaderEncoder, HeaderInfo, SynWTFilter

public interface Markers

This interface defines the values of the different markers in the JPEG 2000 codestream. There are 16 bit values, always appearing in big-endian (most significant byte first) and byte-aligned in the codestream. This interface also defines some other constants such as bit-masks and bit-shifts.


Field Summary
static short COC
          Coding style component (COC): 0xFF53
static short COD
          Coding style default (COD): 0xFF52
static short COM
          Comment (COM): 0xFF64
static short CRG
          Component registration (CRG): 0xFF63
static short EOC
          End of codestream (EOC): 0xFFD9
static short EPH
          End of packet header (EPH): 0xFF92
static short EPH_LENGTH
          Length of EPH marker (in bytes)
static int ERS_SEG_SYMBOLS
          The "segmentation symbols used" flag within Sers: 2
static int ERS_SOP
          The "SOP marker segments used" flag within Sers: 1
static int MAX_COMP_BITDEPTH
          The maximum number of component bitdepth
static int MAX_LPPM
          Maximum length of PPM marker segment
static int MAX_LPPT
          Maximum length of PPT marker segment
static short PLM
          Packet length, main header (PLM): 0xFF57
static short PLT
          Packet length, tile-part header (PLT): 0xFF58
static short POC
           
static short PPM
          Packed packet headers, main header (PPM): 0xFF60
static short PPT
          Packed packet headers, tile-part header (PPT): 0xFF61
static int PRECINCT_PARTITION_DEF_SIZE
          The default size exponent of the precincts
static short QCC
          Quantization component (QCC): 0xFF5D
static short QCD
          Quantization default (QCD): 0xFF5C
static short RCOM_GEN_USE
          General use registration value (COM): 0x0001
static short RGN
          Region-of-interest (RGN): 0xFF5E
static int RSIZ_BASELINE
          No special capabilities (baseline) in codestream, in Rsiz field of SIZ marker: 0x00.
static int RSIZ_ER_FLAG
          Error resilience marker flag bit in Rsiz field in SIZ marker: 0x01
static int RSIZ_ROI
          ROI present marker flag bit in Rsiz field in SIZ marker: 0x02
static int SCOX_HOR_CB_PART
          Horizontal code-block partition origin is at x=1
static int SCOX_PRECINCT_PARTITION
          Precinct used flag
static int SCOX_USE_EPH
          Use end of packet header marker
static int SCOX_USE_SOP
          Use start of packet marker
static int SCOX_VER_CB_PART
          Vertical code-block partition origin is at y=1
static short SIZ
          SIZ marker (Image and tile size): 0xFF51
static short SOC
          Start of codestream (SOC): 0xFF4F
static short SOD
          Start of data (SOD): 0xFF93
static short SOP
          Start pf packet (SOP): 0xFF91
static short SOP_LENGTH
          Length of SOP marker (in bytes)
static short SOT
          Start of tile-part (SOT): 0xFF90
static int SQCX_EXP_MASK
          Exponent bitmask in SPQCX when no quantization: 3
static int SQCX_EXP_SHIFT
          Exponent shift in SPQCX when no quantization: 3
static int SQCX_GB_MSK
          Guard bits mask in SQCX field: 7
static int SQCX_GB_SHIFT
          Guard bits shift in SQCX field: 5
static int SQCX_NO_QUANTIZATION
          No quantization (i.e.
static int SQCX_SCALAR_DERIVED
          Scalar derived (i.e.
static int SQCX_SCALAR_EXPOUNDED
          Scalar expounded (i.e.
static int SRGN_IMPLICIT
          Implicit (i.e.
static int SSIZ_DEPTH_BITS
          Component bitdepth bits in Ssiz field in SIZ marker: 7
static short TLM
          Tile-part lengths (TLM): 0xFF55
 

Field Detail

SOC

public static final short SOC
Start of codestream (SOC): 0xFF4F

See Also:
Constant Field Values

SOT

public static final short SOT
Start of tile-part (SOT): 0xFF90

See Also:
Constant Field Values

SOD

public static final short SOD
Start of data (SOD): 0xFF93

See Also:
Constant Field Values

EOC

public static final short EOC
End of codestream (EOC): 0xFFD9

See Also:
Constant Field Values

SIZ

public static final short SIZ
SIZ marker (Image and tile size): 0xFF51

See Also:
Constant Field Values

RSIZ_BASELINE

public static final int RSIZ_BASELINE
No special capabilities (baseline) in codestream, in Rsiz field of SIZ marker: 0x00. All flag bits are turned off

See Also:
Constant Field Values

RSIZ_ER_FLAG

public static final int RSIZ_ER_FLAG
Error resilience marker flag bit in Rsiz field in SIZ marker: 0x01

See Also:
Constant Field Values

RSIZ_ROI

public static final int RSIZ_ROI
ROI present marker flag bit in Rsiz field in SIZ marker: 0x02

See Also:
Constant Field Values

SSIZ_DEPTH_BITS

public static final int SSIZ_DEPTH_BITS
Component bitdepth bits in Ssiz field in SIZ marker: 7

See Also:
Constant Field Values

MAX_COMP_BITDEPTH

public static final int MAX_COMP_BITDEPTH
The maximum number of component bitdepth

See Also:
Constant Field Values

COD

public static final short COD
Coding style default (COD): 0xFF52

See Also:
Constant Field Values

COC

public static final short COC
Coding style component (COC): 0xFF53

See Also:
Constant Field Values

SCOX_PRECINCT_PARTITION

public static final int SCOX_PRECINCT_PARTITION
Precinct used flag

See Also:
Constant Field Values

SCOX_USE_SOP

public static final int SCOX_USE_SOP
Use start of packet marker

See Also:
Constant Field Values

SCOX_USE_EPH

public static final int SCOX_USE_EPH
Use end of packet header marker

See Also:
Constant Field Values

SCOX_HOR_CB_PART

public static final int SCOX_HOR_CB_PART
Horizontal code-block partition origin is at x=1

See Also:
Constant Field Values

SCOX_VER_CB_PART

public static final int SCOX_VER_CB_PART
Vertical code-block partition origin is at y=1

See Also:
Constant Field Values

PRECINCT_PARTITION_DEF_SIZE

public static final int PRECINCT_PARTITION_DEF_SIZE
The default size exponent of the precincts

See Also:
Constant Field Values

RGN

public static final short RGN
Region-of-interest (RGN): 0xFF5E

See Also:
Constant Field Values

SRGN_IMPLICIT

public static final int SRGN_IMPLICIT
Implicit (i.e. max-shift) ROI flag for Srgn field in RGN marker segment: 0x00

See Also:
Constant Field Values

QCD

public static final short QCD
Quantization default (QCD): 0xFF5C

See Also:
Constant Field Values

QCC

public static final short QCC
Quantization component (QCC): 0xFF5D

See Also:
Constant Field Values

SQCX_GB_SHIFT

public static final int SQCX_GB_SHIFT
Guard bits shift in SQCX field: 5

See Also:
Constant Field Values

SQCX_GB_MSK

public static final int SQCX_GB_MSK
Guard bits mask in SQCX field: 7

See Also:
Constant Field Values

SQCX_NO_QUANTIZATION

public static final int SQCX_NO_QUANTIZATION
No quantization (i.e. embedded reversible) flag for Sqcd or Sqcc (Sqcx) fields: 0x00.

See Also:
Constant Field Values

SQCX_SCALAR_DERIVED

public static final int SQCX_SCALAR_DERIVED
Scalar derived (i.e. LL values only) quantization flag for Sqcd or Sqcc (Sqcx) fields: 0x01.

See Also:
Constant Field Values

SQCX_SCALAR_EXPOUNDED

public static final int SQCX_SCALAR_EXPOUNDED
Scalar expounded (i.e. all values) quantization flag for Sqcd or Sqcc (Sqcx) fields: 0x02.

See Also:
Constant Field Values

SQCX_EXP_SHIFT

public static final int SQCX_EXP_SHIFT
Exponent shift in SPQCX when no quantization: 3

See Also:
Constant Field Values

SQCX_EXP_MASK

public static final int SQCX_EXP_MASK
Exponent bitmask in SPQCX when no quantization: 3

See Also:
Constant Field Values

ERS_SOP

public static final int ERS_SOP
The "SOP marker segments used" flag within Sers: 1

See Also:
Constant Field Values

ERS_SEG_SYMBOLS

public static final int ERS_SEG_SYMBOLS
The "segmentation symbols used" flag within Sers: 2

See Also:
Constant Field Values

POC

public static final short POC
See Also:
Constant Field Values

TLM

public static final short TLM
Tile-part lengths (TLM): 0xFF55

See Also:
Constant Field Values

PLM

public static final short PLM
Packet length, main header (PLM): 0xFF57

See Also:
Constant Field Values

PLT

public static final short PLT
Packet length, tile-part header (PLT): 0xFF58

See Also:
Constant Field Values

PPM

public static final short PPM
Packed packet headers, main header (PPM): 0xFF60

See Also:
Constant Field Values

PPT

public static final short PPT
Packed packet headers, tile-part header (PPT): 0xFF61

See Also:
Constant Field Values

MAX_LPPT

public static final int MAX_LPPT
Maximum length of PPT marker segment

See Also:
Constant Field Values

MAX_LPPM

public static final int MAX_LPPM
Maximum length of PPM marker segment

See Also:
Constant Field Values

SOP

public static final short SOP
Start pf packet (SOP): 0xFF91

See Also:
Constant Field Values

SOP_LENGTH

public static final short SOP_LENGTH
Length of SOP marker (in bytes)

See Also:
Constant Field Values

EPH

public static final short EPH
End of packet header (EPH): 0xFF92

See Also:
Constant Field Values

EPH_LENGTH

public static final short EPH_LENGTH
Length of EPH marker (in bytes)

See Also:
Constant Field Values

CRG

public static final short CRG
Component registration (CRG): 0xFF63

See Also:
Constant Field Values

COM

public static final short COM
Comment (COM): 0xFF64

See Also:
Constant Field Values

RCOM_GEN_USE

public static final short RCOM_GEN_USE
General use registration value (COM): 0x0001

See Also:
Constant Field Values