public class PrecinctPacketIndexTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.Long,FragmentArrayIndex> |
faix |
private java.util.HashMap<java.lang.Long,long[][][][]> |
fpCodingPasses
Contains a file pointer for each coding pass in the precinct-subband-codeblok.
|
private java.util.HashMap<java.lang.Long,int[][][][]> |
lenCodingPasses
Contains the length of each coding pass belonging to the precinct-subband-codeblock.
|
Manifest |
manf |
private boolean |
useCodingPasses |
private java.util.HashMap<java.lang.Long,int[][][]> |
zeroBitPlanes
Number of zero bit planes for each block in a precinct-subband.
|
Constructor and Description |
---|
PrecinctPacketIndexTable()
Constructor.
|
PrecinctPacketIndexTable(Manifest manf,
java.util.HashMap<java.lang.Long,FragmentArrayIndex> faix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getFilePointer(long inClassIdentifier,
int layer) |
long |
getFilePointer(long inClassIdentifier,
int subband,
int yBlock,
int xBlock,
int cp) |
int |
getLength(long inClassIdentifier) |
long |
getLength(long inClassIdentifier,
int layer) |
int |
getLength(long inClassIdentifier,
int subband,
int yBlock,
int xBlock,
int cp) |
int[][][][] |
getLengths(long inClassIdentifier)
NOTE: METHOD TO BE DEPRECATED
|
int |
getOffset(long inClassIdentifier,
int layer) |
int[][][] |
getZeroBitPlanes(long inClassIdentifier) |
int |
getZeroBitPlanes(long inClassIdentifier,
int sb,
int yBlock,
int xBlock) |
void |
initializeIndexTable(int version,
long inClassIdentifier,
boolean useCodingPasses,
JPEG2KPrecinct precinctObj) |
void |
initializeIndexTable(int version,
long inClassIdentifier,
int numLayers) |
void |
initializeIndexTable(long inClassIdentifier,
int numLayers) |
boolean |
isInitializedIndexTable(long inClassIdentifier) |
void |
list(java.io.PrintStream out)
Prints the Precinct Packet Index Table data out to the specified output stream.
|
void |
reset()
Sets the attributes to their initial values.
|
void |
setFilePointer(long inClassIdentifier,
int layer,
int filePointer) |
void |
setFilePointer(long inClassIdentifier,
int subband,
int yBlock,
int xBlock,
long[] pointers) |
void |
setFilePointer(long inClassIdentifier,
int layer,
long filePointer) |
void |
setLength(long inClassIdentifier,
int layer,
int length) |
void |
setLength(long inClassIdentifier,
int subband,
int yBlock,
int xBlock,
int[] lengths) |
void |
setLength(long inClassIdentifier,
int layer,
long length) |
void |
setZeroBitPlanes(long inClassIdentifier,
int[][][] zeroBitPlanes) |
java.lang.String |
toString() |
public Manifest manf
private java.util.HashMap<java.lang.Long,FragmentArrayIndex> faix
private boolean useCodingPasses
private java.util.HashMap<java.lang.Long,long[][][][]> fpCodingPasses
This attribute is only available when the #isCodingPassesInfo
attribute is true
private java.util.HashMap<java.lang.Long,int[][][][]> lenCodingPasses
#filePointersCodingPasses
.
This attribute is only available when the #isCodingPassesInfo
attribute is true
private java.util.HashMap<java.lang.Long,int[][][]> zeroBitPlanes
Only positive values allowed (0 value is possible too. If 0 --> block has not empty/0 bit planes).
public PrecinctPacketIndexTable()
public PrecinctPacketIndexTable(Manifest manf, java.util.HashMap<java.lang.Long,FragmentArrayIndex> faix)
bh
- definition in #bh
.public void initializeIndexTable(long inClassIdentifier, int numLayers)
public void initializeIndexTable(int version, long inClassIdentifier, int numLayers)
public void initializeIndexTable(int version, long inClassIdentifier, boolean useCodingPasses, JPEG2KPrecinct precinctObj)
public boolean isInitializedIndexTable(long inClassIdentifier)
public void setFilePointer(long inClassIdentifier, int layer, int filePointer)
public void setFilePointer(long inClassIdentifier, int layer, long filePointer)
public void setLength(long inClassIdentifier, int layer, int length)
public void setLength(long inClassIdentifier, int layer, long length)
public long getFilePointer(long inClassIdentifier, int layer)
public int getOffset(long inClassIdentifier, int layer)
public long getLength(long inClassIdentifier, int layer)
public int getLength(long inClassIdentifier)
public void setFilePointer(long inClassIdentifier, int subband, int yBlock, int xBlock, long[] pointers)
public long getFilePointer(long inClassIdentifier, int subband, int yBlock, int xBlock, int cp)
public void setLength(long inClassIdentifier, int subband, int yBlock, int xBlock, int[] lengths)
public int getLength(long inClassIdentifier, int subband, int yBlock, int xBlock, int cp)
public int[][][][] getLengths(long inClassIdentifier)
inClassIdentifier
- public void setZeroBitPlanes(long inClassIdentifier, int[][][] zeroBitPlanes)
public int[][][] getZeroBitPlanes(long inClassIdentifier)
public int getZeroBitPlanes(long inClassIdentifier, int sb, int yBlock, int xBlock)
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
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)