|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Server.LogicalTarget.ServerLogicalTarget
CADI.Server.LogicalTarget.JPEG2000.JP2LogicalTarget
public class JP2LogicalTarget
This class is used to save information about the indexing of the JPC image file.
| Field Summary | |
|---|---|
private java.util.Hashtable<java.lang.Long,DataBinInfo> |
dataBins
It is an array list with information about |
private int |
fileFormatType
|
private int[][][][][][] |
imageStructure
Definition in GenerateImageStructure.imageStructure |
static int |
JP2
|
static int |
JPC
|
private JPCParameters |
jpcParameters
Contains the JPC image parameters. |
static int |
JPK
|
static int |
JPX
|
private long |
mainHeaderInitialPos
Contains the main header position within the image file. |
private int |
mainHeaderLength
Contains the main header length. |
private int |
MSBPlane
The Most Significant Bit Plane of the whole image. |
static int |
RATE_DISTORTION_METHOD_CoRD
|
static int |
RATE_DISTORTION_METHOD_CPI
|
static int |
RATE_DISTORTION_METHOD_FILE_ORDER
Allowed values for the rateDistortionMethod attribute. |
private int |
rateDistortionMethod
Indicates the rate-distortion method which is used to obtain the WOI for the client request. |
| Fields inherited from class CADI.Server.LogicalTarget.ServerLogicalTarget |
|---|
in, logicalTargetType, target, tid, TID_DEFAULT_LENGTH |
| Constructor Summary | |
|---|---|
JP2LogicalTarget(int codestreamType,
java.util.Hashtable<java.lang.Long,DataBinInfo> dataBins,
JPCParameters jpcParameters,
int rateDistortionMethod,
int[][][][][][] imageStructure)
Constructor. |
|
JP2LogicalTarget(int codestreamType,
java.util.Hashtable<java.lang.Long,DataBinInfo> dataBins,
JPCParameters jpcParameters,
long mainHeaderInitialPos,
int mainHeaderLength)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
generateTid()
It will generate a Target-ID for that logical target, i.e. a string that absolutely identifies the logical target. |
int |
getCodestreamType()
Returns the fileFormatType attribute. |
int |
getDataBinLength(long inClassIdentifier)
Returns the length of the data bin of which unique identifier is inClassIdentifier. |
long |
getFilePointerCodingPass(long inClassIdentifier,
int subband,
int yBlock,
int xBlock,
int codingPass)
|
long[][][][] |
getFilePointersCodingPasses(long inClassIdentifier)
|
int[][][][][][] |
getImageStructure()
|
JPCParameters |
getJPCParameters()
Returns the JPEG2000 parameters. |
int |
getLastCompleteLayer(long inClassIdentifier,
long dataBinLength)
Return the last complete layer that it can be whole recovered with dataBinLength bytes. |
int |
getLengthOfCodingPass(int z,
int rLevel,
int precinct,
int subband,
int yBlock,
int xBlock,
int codingPass)
|
int |
getLengthOfCodingPass(long inClassIdentifier,
int subband,
int yBlock,
int xBlock,
int codingPass)
|
int[][][][] |
getLengthsOfCodingPasses(int z,
int rLevel,
int precinct)
|
int[][][][] |
getLengthsOfCodingPasses(long inClassIdentifier)
|
long |
getMainHeaderInitialPos()
Returns the file pointer to the JPEG2000 main header. |
int |
getMainHeaderLength()
Returns the length of the JPEG2000 main header. |
int |
getMSBPlane()
Returns the MSBPlane attribute. |
int |
getMSBPlane(int z,
int rLevel,
int precinct,
int subband,
int yBlock,
int xBlock)
Definition in getMSBPlane(long, int, int, int). |
int |
getMSBPlane(long inClassIdentifier,
int subband,
int yBlock,
int xBlock)
This methdo returns the Most Significat Bit Plane (MSBP) for each block belonging to a tile-component-resolutionlevel-precinct-subband. |
int |
getPacketLength(long inClassIdentifier,
int layer)
Returns the length of a packet. |
int |
getPacketOffset(long inClassIdentifier,
int layer)
Returns the file pointer offset of a packet. |
int |
getPacketOffsetWithDataBin(long inClassIdentifier,
int layer)
Returns the offset of a packet in the data bin. |
int |
getRateDistortionMethod()
Returns the rate distoriton method which is being used. |
int[][][] |
getZeroBitPlanes(long inClassIdentifier)
Returns the #zeroBitPlanes attribute. |
void |
list(java.io.PrintStream out)
Prints the JPC logical target data out to the specified output stream. |
private void |
printData3(java.io.PrintStream out)
Prints the JPC logical target data out to the specified output stream. |
java.lang.String |
toString()
|
| Methods inherited from class CADI.Server.LogicalTarget.ServerLogicalTarget |
|---|
generateTid, getInputDataSource, getLogicalTargetType, getTarget, getTID, setInputDataSource, setLogicalTargetType, setTarget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int fileFormatType
public static final int JPC
public static final int JP2
public static final int JPK
public static final int JPX
private JPCParameters jpcParameters
JPCParametersprivate int rateDistortionMethod
public static final int RATE_DISTORTION_METHOD_FILE_ORDER
rateDistortionMethod attribute.
public static final int RATE_DISTORTION_METHOD_CPI
public static final int RATE_DISTORTION_METHOD_CoRD
private long mainHeaderInitialPos
private int mainHeaderLength
private java.util.Hashtable<java.lang.Long,DataBinInfo> dataBins
private int[][][][][][] imageStructure
GenerateImageStructure.imageStructure
private int MSBPlane
The least significant bit plane is the 0 and the content of this variable indicates the most significant one.
This attribute is only used whenn the RATE_DISTORTION_METHOD_CPI
or RATE_DISTORTION_METHOD_CORD rate-distortion
methods are used.
| Constructor Detail |
|---|
public JP2LogicalTarget(int codestreamType,
java.util.Hashtable<java.lang.Long,DataBinInfo> dataBins,
JPCParameters jpcParameters,
long mainHeaderInitialPos,
int mainHeaderLength)
codestreamType - definition in fileFormatType.dataBins - definition in dataBins.jpcParameters - definition in jpcParameters.mainHeaderInitialPos - definition in mainHeaderInitialPos.mainHeaderLength - definition in mainHeaderLength.
public JP2LogicalTarget(int codestreamType,
java.util.Hashtable<java.lang.Long,DataBinInfo> dataBins,
JPCParameters jpcParameters,
int rateDistortionMethod,
int[][][][][][] imageStructure)
This constructor must be used when the rate-distortion method is either
RATE_DISTORTION_METHOD_CPI or
RATE_DISTORTION_METHOD_CoRD.
codestreamType - definition in fileFormatType.dataBins - definition in dataBins.rateDistortionMethod - definition in rateDistortionMethod.jpcParameters - definition in jpcParameters.| Method Detail |
|---|
public int getCodestreamType()
fileFormatType attribute.
fileFormatType attribute.public JPCParameters getJPCParameters()
jpcParameterspublic int getRateDistortionMethod()
rateDistortionMethod.public long getMainHeaderInitialPos()
mainHeaderInitialPospublic int getMainHeaderLength()
mainHeaderLength
public int getPacketOffset(long inClassIdentifier,
int layer)
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.layer - the number of layer.
public int getPacketOffsetWithDataBin(long inClassIdentifier,
int layer)
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.layer - the layer which offset is requested
public int getPacketLength(long inClassIdentifier,
int layer)
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.layer - the number of the layer.
public int getDataBinLength(long inClassIdentifier)
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.
public int getLastCompleteLayer(long inClassIdentifier,
long dataBinLength)
inClassIdentifier - definition in JPIPMessageHeader.inClassIdentifier.dataBinLength - is the lenth of the data bin.
public int[][][][][][] getImageStructure()
public long[][][][] getFilePointersCodingPasses(long inClassIdentifier)
inClassIdentifier -
public long getFilePointerCodingPass(long inClassIdentifier,
int subband,
int yBlock,
int xBlock,
int codingPass)
inClassIdentifier - subband - yBlock - xBlock - codingPass -
public int[][][][] getLengthsOfCodingPasses(long inClassIdentifier)
inClassIdentifier -
public int getLengthOfCodingPass(long inClassIdentifier,
int subband,
int yBlock,
int xBlock,
int codingPass)
inClassIdentifier - subband - yBlock - xBlock - codingPass -
public int getLengthOfCodingPass(int z,
int rLevel,
int precinct,
int subband,
int yBlock,
int xBlock,
int codingPass)
z - rLevel - precinct - subband - yBlock - xBlock - codingPass -
public int[][][][] getLengthsOfCodingPasses(int z,
int rLevel,
int precinct)
z - rLevel - precinct -
public int[][][] getZeroBitPlanes(long inClassIdentifier)
#zeroBitPlanes attribute.
#zeroBitPlanes attribute.public int getMSBPlane()
MSBPlane attribute.
MSBPlane attribute.
public int getMSBPlane(long inClassIdentifier,
int subband,
int yBlock,
int xBlock)
inClassIdentifier - subband - 0 - HL, 1 - LH, 2 - HH (if resolutionLevel == 0 --> 0 - LL)yBlock - block row in the subbandxBlock - block column in the subband
public int getMSBPlane(int z,
int rLevel,
int precinct,
int subband,
int yBlock,
int xBlock)
getMSBPlane(long, int, int, int).
z - rLevel - precinct - subband - 0 - HL, 1 - LH, 2 - HH (if resolutionLevel == 0 --> 0 - LL)yBlock - block row in the subbandxBlock - block column in the subband
public java.lang.String toString()
toString in class ServerLogicalTargetpublic void list(java.io.PrintStream out)
list in class ServerLogicalTargetout - an output stream.protected void generateTid()
ServerLogicalTargetThis a generic function, but it is recommended classes that inherits from this one should implement their own methods.
NOTICE: This method must be called from the constructor of the class.
generateTid in class ServerLogicalTargetServerLogicalTarget.tidprivate void printData3(java.io.PrintStream out)
out - an output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||