jj2000.j2k.codestream
Interface Markers

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

public interface Markers

This interface defines the values of the different markers in the JPEG 2000 codestream. They 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_MARKERS
          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_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 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

SOT

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

SOD

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

EOC

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

SIZ

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

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

RSIZ_ER_FLAG

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

RSIZ_ROI

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

SSIZ_DEPTH_BITS

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

MAX_COMP_BITDEPTH

public static final int MAX_COMP_BITDEPTH
The maximum number of component bitdepth

COD

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

COC

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

SCOX_PRECINCT_PARTITION

public static final int SCOX_PRECINCT_PARTITION
Precinct used flag

SCOX_USE_SOP

public static final int SCOX_USE_SOP
Use start of packet marker

SCOX_USE_EPH

public static final int SCOX_USE_EPH
Use end of packet header marker

PRECINCT_PARTITION_DEF_SIZE

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

RGN

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

SRGN_IMPLICIT

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

QCD

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

QCC

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

SQCX_GB_SHIFT

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

SQCX_GB_MSK

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

SQCX_NO_QUANTIZATION

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

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.

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.

SQCX_EXP_SHIFT

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

SQCX_EXP_MASK

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

ERS_SOP

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

ERS_SEG_MARKERS

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

POC

public static final short POC

TLM

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

PLM

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

PLT

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

PPM

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

PPT

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

MAX_LPPT

public static final int MAX_LPPT
Maximum length of PPT marker segment

MAX_LPPM

public static final int MAX_LPPM
Maximum length of PPM marker segment

SOP

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

SOP_LENGTH

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

EPH

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

EPH_LENGTH

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

CRG

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

COM

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

RCOM_GEN_USE

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