CADI.Server.LogicalTarget.JPEG2000.Codestream
Class PacketHeaderDataEncoder

java.lang.Object
  extended by CADI.Server.LogicalTarget.JPEG2000.Codestream.PacketHeaderDataEncoder

public class PacketHeaderDataEncoder
extends java.lang.Object

This class records precinct-state information to be used by the PacketHeadersEncoder class to generate the packet headers.

Version:
1.0.1 2008/12/08
Author:
Group on Interactive Coding of Images (GICI)

Field Summary
 int[][][] firstLayer
          Is the layer in which a code block is first-time included.
 int lastEncodedLayer
          Indicates the number of the last layer that has already been encoded.
 int[][][] lBlock
          Code-block state variable.
 TagTreeEncoder[] TTInclusionInformation
          Tag Tree where is the first layer which a packet is included
 TagTreeEncoder[] TTZeroBitPlanes
          Tag Tree with the number of missing most significant bit planes for each codeblock
 
Constructor Summary
PacketHeaderDataEncoder(int[][][] zeroBitPlanes, int[][][] firstLayer)
          Constructor.
 
Method Summary
 void list(java.io.PrintStream out)
          Prints this Packet Header Data 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 TagTreeEncoder[] TTInclusionInformation
Tag Tree where is the first layer which a packet is included


TTZeroBitPlanes

public TagTreeEncoder[] 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


lastEncodedLayer

public int lastEncodedLayer
Indicates the number of the last layer that has already been encoded.


firstLayer

public int[][][] firstLayer
Is the layer in which a code block is first-time included.

Constructor Detail

PacketHeaderDataEncoder

public PacketHeaderDataEncoder(int[][][] zeroBitPlanes,
                               int[][][] firstLayer)
                        throws ErrorException
Constructor.

Parameters:
zeroBitPlanes - is the same as CADI.Server.LogicalTarget.JPEG2000.JP2LogicalTarget#zeroBitPlanes but this one only has the indexes [subband][yBlock][xBlock]
firstLayer - is the first layer in which the code-block is first included. Indexes mean [subband][yBlock][xBlock]
Throws:
ErrorException
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 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)