jj2000.j2k.codestream
Class HeaderInfo

java.lang.Object
  |
  +--jj2000.j2k.codestream.HeaderInfo
All Implemented Interfaces:
java.lang.Cloneable, FilterTypes, Markers, ProgressionType

public class HeaderInfo
extends java.lang.Object
implements Markers, ProgressionType, FilterTypes, java.lang.Cloneable

Classe that holds information found in the marker segments of the main and tile-part headers. There is one inner-class per marker segment type found in these headers.


Nested Class Summary
 class HeaderInfo.COC
          Internal class holding information found in the COC marker segments
 class HeaderInfo.COD
          Internal class holding information found in the COD marker segments
 class HeaderInfo.COM
          Internal class holding information found in the COM marker segments
 class HeaderInfo.CRG
          Internal class holding information found in the CRG marker segment
 class HeaderInfo.POC
          Internal class holding information found in the POC marker segments
 class HeaderInfo.QCC
          Internal class holding information found in the QCC marker segments
 class HeaderInfo.QCD
          Internal class holding information found in the QCD marker segments
 class HeaderInfo.RGN
          Internal class holding information found in the RGN marker segments
 class HeaderInfo.SIZ
          Internal class holding information found in the SIZ marker segment
 class HeaderInfo.SOT
          Internal class holding information found in the SOt marker segments
 
Field Summary
 java.util.Hashtable coc
          Reference to the COC marker segments found in main and first tile-part header.
 java.util.Hashtable cod
          Reference to the COD marker segments found in main and first tile-part header.
 java.util.Hashtable com
          Reference to the COM marker segments found in main and tile-part headers.
 HeaderInfo.CRG crg
          Reference to the CRG marker segment found in main header
private  int ncom
          Number of found COM marker segment
 java.util.Hashtable poc
          Reference to the POC marker segments found in main and first tile-part header.
 java.util.Hashtable qcc
          Reference to the QCC marker segments found in main and first tile-part header.
 java.util.Hashtable qcd
          Reference to the QCD marker segments found in main and first tile-part header.
 java.util.Hashtable rgn
          Reference to the RGN marker segments found in main and first tile-part header.
 HeaderInfo.SIZ siz
          Reference to the SIZ marker segment found in main header
 java.util.Hashtable sot
          Reference to the SOT marker segments found in tile-part headers.
 
Fields inherited from interface jj2000.j2k.codestream.Markers
COC, COD, COM, CRG, EOC, EPH, EPH_LENGTH, ERS_SEG_SYMBOLS, ERS_SOP, MAX_COMP_BITDEPTH, MAX_LPPM, MAX_LPPT, PLM, PLT, POC, PPM, PPT, PRECINCT_PARTITION_DEF_SIZE, QCC, QCD, RCOM_GEN_USE, RGN, RSIZ_BASELINE, RSIZ_ER_FLAG, RSIZ_ROI, SCOX_HOR_CB_PART, SCOX_PRECINCT_PARTITION, SCOX_USE_EPH, SCOX_USE_SOP, SCOX_VER_CB_PART, SIZ, SOC, SOD, SOP, SOP_LENGTH, SOT, SQCX_EXP_MASK, SQCX_EXP_SHIFT, SQCX_GB_MSK, SQCX_GB_SHIFT, SQCX_NO_QUANTIZATION, SQCX_SCALAR_DERIVED, SQCX_SCALAR_EXPOUNDED, SRGN_IMPLICIT, SSIZ_DEPTH_BITS, TLM
 
Fields inherited from interface jj2000.j2k.codestream.ProgressionType
COMP_POS_RES_LY_PROG, LY_RES_COMP_POS_PROG, POS_COMP_RES_LY_PROG, RES_LY_COMP_POS_PROG, RES_POS_COMP_LY_PROG
 
Fields inherited from interface jj2000.j2k.wavelet.FilterTypes
CUSTOM, W5X3, W9X7
 
Constructor Summary
HeaderInfo()
           
 
Method Summary
 HeaderInfo getCopy(int nt)
          Returns a copy of this object
 HeaderInfo.COC getNewCOC()
          Returns a new instance of COC
 HeaderInfo.COD getNewCOD()
          Returns a new instance of COD
 HeaderInfo.COM getNewCOM()
          Returns a new instance of COM
 HeaderInfo.CRG getNewCRG()
          Returns a new instance of CRG
 HeaderInfo.POC getNewPOC()
          Returns a new instance of POC
 HeaderInfo.QCC getNewQCC()
          Returns a new instance of QCC
 HeaderInfo.QCD getNewQCD()
          Returns a new instance of QCD
 HeaderInfo.RGN getNewRGN()
          Returns a new instance of RGN
 HeaderInfo.SIZ getNewSIZ()
          Returns a new instance of SIZ
 HeaderInfo.SOT getNewSOT()
          Returns a new instance of SOT
 int getNumCOM()
          Returns the number of found COM marker segments
 java.lang.String toStringMainHeader()
          Display information found in the different marker segments of the main header
 java.lang.String toStringThNoSOT(int t, int ntp)
          Returns information found in the tile-part headers of a given tile exception the SOT marker segment.
 java.lang.String toStringTileHeader(int t, int ntp)
          Returns information found in the tile-part headers of a given tile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

siz

public HeaderInfo.SIZ siz
Reference to the SIZ marker segment found in main header


sot

public java.util.Hashtable sot
Reference to the SOT marker segments found in tile-part headers. The kwy is given by "t"+tileIdx"_tp"+tilepartIndex.


cod

public java.util.Hashtable cod
Reference to the COD marker segments found in main and first tile-part header. The key is either "main" or "t"+tileIdx.


coc

public java.util.Hashtable coc
Reference to the COC marker segments found in main and first tile-part header. The key is either "main_c"+componentIndex or "t"+tileIdx+"_c"+component_index.


rgn

public java.util.Hashtable rgn
Reference to the RGN marker segments found in main and first tile-part header. The key is either "main_c"+componentIndex or "t"+tileIdx+"_c"+component_index.


qcd

public java.util.Hashtable qcd
Reference to the QCD marker segments found in main and first tile-part header. The key is either "main" or "t"+tileIdx.


qcc

public java.util.Hashtable qcc
Reference to the QCC marker segments found in main and first tile-part header. They key is either "main_c"+componentIndex or "t"+tileIdx+"_c"+component_index.


poc

public java.util.Hashtable poc
Reference to the POC marker segments found in main and first tile-part header. They key is either "main" or "t"+tileIdx.


crg

public HeaderInfo.CRG crg
Reference to the CRG marker segment found in main header


com

public java.util.Hashtable com
Reference to the COM marker segments found in main and tile-part headers. The key is either "main_"+comIdx or "t"+tileIdx+"_"+comIdx.


ncom

private int ncom
Number of found COM marker segment

Constructor Detail

HeaderInfo

public HeaderInfo()
Method Detail

getNewSIZ

public HeaderInfo.SIZ getNewSIZ()
Returns a new instance of SIZ


getNewSOT

public HeaderInfo.SOT getNewSOT()
Returns a new instance of SOT


getNewCOD

public HeaderInfo.COD getNewCOD()
Returns a new instance of COD


getNewCOC

public HeaderInfo.COC getNewCOC()
Returns a new instance of COC


getNewRGN

public HeaderInfo.RGN getNewRGN()
Returns a new instance of RGN


getNewQCD

public HeaderInfo.QCD getNewQCD()
Returns a new instance of QCD


getNewQCC

public HeaderInfo.QCC getNewQCC()
Returns a new instance of QCC


getNewPOC

public HeaderInfo.POC getNewPOC()
Returns a new instance of POC


getNewCRG

public HeaderInfo.CRG getNewCRG()
Returns a new instance of CRG


getNewCOM

public HeaderInfo.COM getNewCOM()
Returns a new instance of COM


getNumCOM

public int getNumCOM()
Returns the number of found COM marker segments


toStringMainHeader

public java.lang.String toStringMainHeader()
Display information found in the different marker segments of the main header


toStringTileHeader

public java.lang.String toStringTileHeader(int t,
                                           int ntp)
Returns information found in the tile-part headers of a given tile.

Parameters:
t - index of the tile

toStringThNoSOT

public java.lang.String toStringThNoSOT(int t,
                                        int ntp)
Returns information found in the tile-part headers of a given tile exception the SOT marker segment.

Parameters:
t - index of the tile

getCopy

public HeaderInfo getCopy(int nt)
Returns a copy of this object