CADI.Common.LogicalTarget.JPEG2000.Codestream
Class DataBinInfo

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

public class DataBinInfo
extends java.lang.Object

This class is a container to record all necessary information about the packets when codestream is indexed.

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

Field Summary
 long[] filePointers
          Contains the position for each image packet in the image file.
 long[][][][] filePointersCodingPasses
          Contains a file pointer for each coding pass in the image file.
 int[][][] firstLayer
          First layer in which the block is included.
 long inClassIdentifier
          It is a unique identifer.
 boolean isCodingPassesInfo
          Indicates
 long[] lengths
          Contains the length for each image packet in the image file.
 int[][][][] lengthsCodingPasses
          Contains the length of each coding pass belonging to the precinct.
 int[][][] zeroBitPlanes
          Number of zero bit planes for each block in a precinct-subband.
 
Constructor Summary
DataBinInfo()
          Constructor.
DataBinInfo(boolean isCodingPassesInfo)
          Constructor.
DataBinInfo(long inClassIdentifier)
          Constructor.
DataBinInfo(long inClassIdentifier, boolean isCodingPassesInfo)
          Constructor.
DataBinInfo(long inClassIdentifier, int layers)
          Constructor.
 
Method Summary
 void list(java.io.PrintStream out)
          Prints this Data Bin Info out to the specified output stream.
 void reset()
          Sets the attributes to their 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

inClassIdentifier

public long inClassIdentifier
It is a unique identifer.

See Also:
JPIPMessageHeader.inClassIdentifier

isCodingPassesInfo

public boolean isCodingPassesInfo
Indicates


filePointers

public long[] filePointers
Contains the position for each image packet in the image file.

This attribute is only available when the isCodingPassesInfo attribute is false


lengths

public long[] lengths
Contains the length for each image packet in the image file.

This attribute is only available when the isCodingPassesInfo attribute is false


filePointersCodingPasses

public long[][][][] filePointersCodingPasses
Contains a file pointer for each coding pass in the image file. Indexes means:
  subband   yBlock   xBlock   coding pass

This attribute is only available when the isCodingPassesInfo attribute is true


lengthsCodingPasses

public int[][][][] lengthsCodingPasses
Contains the length of each coding pass belonging to the precinct. Indexes are the same as in filePointersCodingPasses.

This attribute is only available when the isCodingPassesInfo attribute is true


zeroBitPlanes

public int[][][] zeroBitPlanes
Number of zero bit planes for each block in a precinct-subband. Each entry maps the precinct identifier with a three-dimensional array with the zero bit planes for each subband-block in the precinct. Indexes of the three-dimensional array mean:   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 has not empty/0 bit planes).


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).

Constructor Detail

DataBinInfo

public DataBinInfo()
Constructor.


DataBinInfo

public DataBinInfo(boolean isCodingPassesInfo)
Constructor.

Parameters:
isCodingPassesInfo - definition in isCodingPassesInfo.

DataBinInfo

public DataBinInfo(long inClassIdentifier)
Constructor.

Parameters:
inClassIdentifier - definition in inClassIdentifier.

DataBinInfo

public DataBinInfo(long inClassIdentifier,
                   boolean isCodingPassesInfo)
Constructor.

Parameters:
inClassIdentifier - definition in inClassIdentifier.
isCodingPassesInfo - definition in isCodingPassesInfo.

DataBinInfo

public DataBinInfo(long inClassIdentifier,
                   int layers)
Constructor.

Parameters:
inClassIdentifier - definition in inClassIdentifier.
layers - is the maximum number of layers.
Method Detail

reset

public void reset()
Sets the attributes to their 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 Data Bin Info 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)