Class HeaderInfo

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

public class HeaderInfo extends Object implements Markers, ProgressionType, FilterTypes, 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.
  • Field Details

    • siz

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

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

      public 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 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 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 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 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 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 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.
  • Constructor Details

    • HeaderInfo

      public HeaderInfo()
  • Method Details

    • 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 String toStringMainHeader()
      Display information found in the different marker segments of the main header
    • toStringTileHeader

      public String toStringTileHeader(int t, int ntp)
      Returns information found in the tile-part headers of a given tile.
      Parameters:
      t - index of the tile
      ntp - Number of tile-parts
    • toStringThNoSOT

      public 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
      ntp - Number of tile-parts
    • getCopy

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