CADI.Common.LogicalTarget.JPEG2000.Codestream
Class PacketHeaderDataDecoder

java.lang.Object
  extended by CADI.Common.LogicalTarget.JPEG2000.Codestream.PacketHeaderDataDecoder

public class PacketHeaderDataDecoder
extends java.lang.Object

This class records the necessary information to decode packet headers belonging to a precinct.

Version:
1.0.1 2008/11/07
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
 int[][][] firstLayer
          First layer in which the block is included.
 int layerToDecode
          Is an state attribute which indicates the layer to be decoded.
 int[][][] lBlock
          Code-block state variable.
 TagTreeDecoder[] TTInclusionInformation
          Tag Tree where is the first layer which a packet is included
 TagTreeDecoder[] TTZeroBitPlanes
          Tag Tree with the number of missing most significant bit planes for each codeblock
 int[][][] zeroBitPlanes
          Is the number of most significant bit planes which are missing.
 
Constructor Summary
PacketHeaderDataDecoder(int[][][] subbandStructure)
          Constructor.
 
Method Summary
 void list(java.io.PrintStream out)
          Prints this Packet Header Data Decoder out to the specified output stream.
 void reset()
          Sets the attributes to its initial values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TTInclusionInformation

public TagTreeDecoder[] TTInclusionInformation
Tag Tree where is the first layer which a packet is included


TTZeroBitPlanes

public TagTreeDecoder[] TTZeroBitPlanes
Tag Tree with the number of missing most significant bit planes for each codeblock


lBlock

public int[][][] lBlock
Code-block state variable.

Value 0 means that the packet has not been incluyed in any layer.

Indexes mean:   1st subband   2nd yBlock   3rd xBlock


firstLayer

public int[][][] firstLayer
First layer in which the block is included. Indices means:
  subband: 0 - HL, 1 - LH, 2 - HH (ifresolutionLevel == 0 --> 0 - LL)
  yBlock: block row in the subband
  xBlock: block column in the subband

Only positive values allowed (0 value is possible too. If 0 --> block is included in first quality layer).


zeroBitPlanes

public int[][][] zeroBitPlanes
Is the number of most significant bit planes which are missing. Indices means:
  subband: 0 - HL, 1 - LH, 2 - HH (ifresolutionLevel == 0 --> 0 - LL)
  yBlock: block row in the subband
  xBlock: block column in the subband

Only positive values allowed (0 value is possible too.


layerToDecode

public int layerToDecode
Is an state attribute which indicates the layer to be decoded.

Constructor Detail

PacketHeaderDataDecoder

public PacketHeaderDataDecoder(int[][][] subbandStructure)
Constructor.

Parameters:
subbandStructure - contains the structure of the subband. Its indexes mean [subband][yBlock][xBlock]
Method Detail

reset

public void reset()
Sets the attributes to its initial values.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

list

public void list(java.io.PrintStream out)
Prints this Packet Header Data Decoder out to the specified output stream. This method is useful for debugging.

Parameters:
out - an output stream.


CADI - Copyright (C) 2007
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Group on Interactive Coding of Images (GICI) (contact)