|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Common.LogicalTarget.JPEG2000.Codestream.JPKMainHeaderDecoder
public class JPKMainHeaderDecoder
This class reads a JPK heading from a file. Then, get functions can be used
to retrieve read values. This class receives an input stream and advance
read up to heading end. Usage example:
construct
run
get functions
| Field Summary | |
|---|---|
private int[] |
BDBlockHeights
Definition in CODParameters.blockHeights |
private int |
BDBlockHeights_BITS
|
private int[] |
BDBlockWidths
Definition in CODParameters.blockWidths |
private int |
BDBlockWidths_BITS
|
private int[][] |
BDResolutionPrecinctHeights
Definition in CODParameters.precinctHeights |
private int |
BDResolutionPrecinctHeights_BITS
|
private int[][] |
BDResolutionPrecinctWidths
Definition in CODParameters.precinctWidths |
private int |
BDResolutionPrecinctWidths_BITS
|
private int |
BitStreamType
Bitstream type. |
private int |
BitStreamType_BITS
|
private int[] |
CTComponents
Definition in CADI.Common.LogicalTarget.JPEG2000.Parameters.CODParameters#CTComponents |
private int |
CTComponents_BITS
|
private int |
CTType
Definition in CADI.Common.LogicalTarget.JPEG2000.Parameters.CODParameters#CTType |
private int |
CTType_BITS
|
private int[] |
DBitPlaneEncodingSA
Definition in JPKParameters.bitPlaneEncodingSA |
private int |
DBitPlaneEncodingSA_BITS
|
private int |
DPCMRestartIndex
Definition in JPKParameters.DPCMRestartIndex |
private int |
DPCMRestartIndex_BITS
|
private int[] |
DWaveletSA
Definition in JPKParameters.waveletSA |
private int |
DWaveletSA_BITS
|
private boolean[] |
FWPacketHeaders
Definition in CODParameters.useSOP and
CODParameters.useEPH. |
private int |
FWProgressionOrder
Definition in CODParameters.progressionOrder |
private int |
FWProgressionOrder_BITS
|
private BufferedDataInputStream |
in
Definition in JPEG2KLogicalTarget.in |
private JPCParameters |
jpcParameters
Is an object where the main header are saved. |
private BitStream |
JPKHeading
Temporal bitstream where the values are saved from the file. |
private int |
LCAchievedNumLayers
Definition in CODParameters.numLayers |
private int |
LCAchievedNumLayers_BITS
|
private boolean[] |
LSComponents
Definition in JPKParameters.LSComponents |
private boolean[] |
LSSignedComponents
Definition in SIZParameters.signed |
private int[] |
LSSubsValues
Definition in JPKParameters.LSSubsValues |
private int |
LSSubsValues_BITS
|
private int |
LSType
Definition in JPKParameters.LSType |
private int |
LSType_BITS
|
private long |
mainHeaderInitialPos
Is the file pointer to the first byte of the main header. |
private int |
mainHeaderLength
Is the length of the main header. |
private int[] |
QComponentsBits
Definition in SIZParameters.precision |
private int |
QComponentsBits_BITS
|
private int |
QDynamicRange
Definition in JPKParameters.QDynamicRange |
private int |
QDynamicRange_BITS
|
private int[][][] |
QExponents
Definition in QCDParameters.QExponents |
private int |
QExponents_BITS
|
private int |
QGuardBits
Definition in QCDParameters.QGuardBits |
private int |
QGuardBits_BITS
|
private int[][][] |
QMantisas
Definition in QCDParameters.QMantisas |
private int |
QMantisas_BITS
|
private int[] |
QTypes
Definition in QCDParameters.QTypes |
private int |
QTypes_BITS
|
private int[] |
RBitplanesScaling
Definition in JPKParameters.RBitplanesScaling |
private int |
RBitplanesScaling_BITS
|
private float[] |
RMMultValues
Definition in JPKParameters.RMMultValues |
private int[] |
RroisParameters
Definition in JPKParameters.RroisParameters |
private int |
RroisParameters_BITS
|
private int |
RroiType
Definition in JPKParameters.RroiType |
private int |
RroiType_BITS
|
private int |
WSL
Definition in JPKParameters.WSL |
private int |
WSL_BITS
|
private int |
WST
Definition in JPKParameters.WST |
private int |
WST_BITS
|
private int |
WT3D
Definition in JPKParameters.WT3D |
private int |
WT3D_BITS
|
private int[] |
WTLevels
Definition in CODParameters.WTLevels |
private int |
WTLevels_BITS
|
private int[] |
WTTypes
Definition in CODParameters.WTTypes |
private int |
WTTypes_BITS
|
private int |
xSize
Definition in SIZParameters.xSize |
private int |
xSize_BITS
|
private int |
ySize
Definition in SIZParameters.ySize |
private int |
ySize_BITS
|
private int |
zSize
Definition in SIZParameters.zSize |
private int |
zSize_BITS
|
| Constructor Summary | |
|---|---|
JPKMainHeaderDecoder(BufferedDataInputStream in)
Constructor of JPKDeheading. |
|
| Method Summary | |
|---|---|
JPCParameters |
getJPCParameters()
Returns the jpcParameters attribute. |
long |
getMainHeaderInitialPos()
Returns the mainHeaderInitialPos attribute. |
int |
getMainHeaderLength()
Returns the mainHeaderLength attribute. |
private boolean |
readBoolean()
Reads a boolean from the file and returns its value. |
private int |
readByte()
Reads a byte from the file and returns its value. |
private float |
readFloat()
Reads a float from the file and returns its value. |
private int |
readInteger(int numBits)
Reads an integer from the file and returns its value. |
void |
run()
Reads the JPK heading. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private JPCParameters jpcParameters
private long mainHeaderInitialPos
private int mainHeaderLength
private int zSize
SIZParameters.zSize
private final int zSize_BITS
private int ySize
SIZParameters.ySize
private final int ySize_BITS
private int xSize
SIZParameters.xSize
private final int xSize_BITS
private int LSType
JPKParameters.LSType
private final int LSType_BITS
private boolean[] LSComponents
JPKParameters.LSComponents
private int[] LSSubsValues
JPKParameters.LSSubsValues
private final int LSSubsValues_BITS
private boolean[] LSSignedComponents
SIZParameters.signed
private float[] RMMultValues
JPKParameters.RMMultValues
private int CTType
CADI.Common.LogicalTarget.JPEG2000.Parameters.CODParameters#CTType
private final int CTType_BITS
private int[] CTComponents
CADI.Common.LogicalTarget.JPEG2000.Parameters.CODParameters#CTComponents
private final int CTComponents_BITS
private int[] WTTypes
CODParameters.WTTypes
private final int WTTypes_BITS
private int[] WTLevels
CODParameters.WTLevels
private final int WTLevels_BITS
private int WT3D
JPKParameters.WT3D
private final int WT3D_BITS
private int WSL
JPKParameters.WSL
private final int WSL_BITS
private int WST
JPKParameters.WST
private final int WST_BITS
private int[] QTypes
QCDParameters.QTypes
private final int QTypes_BITS
private int QDynamicRange
JPKParameters.QDynamicRange
private final int QDynamicRange_BITS
private int[] QComponentsBits
SIZParameters.precision
private final int QComponentsBits_BITS
private int[][][] QExponents
QCDParameters.QExponents
private final int QExponents_BITS
private int[][][] QMantisas
QCDParameters.QMantisas
private final int QMantisas_BITS
private int QGuardBits
QCDParameters.QGuardBits
private final int QGuardBits_BITS
private int[] BDBlockWidths
CODParameters.blockWidths
private final int BDBlockWidths_BITS
private int[] BDBlockHeights
CODParameters.blockHeights
private final int BDBlockHeights_BITS
private int[][] BDResolutionPrecinctWidths
CODParameters.precinctWidths
private final int BDResolutionPrecinctWidths_BITS
private int[][] BDResolutionPrecinctHeights
CODParameters.precinctHeights
private final int BDResolutionPrecinctHeights_BITS
private int LCAchievedNumLayers
CODParameters.numLayers
private final int LCAchievedNumLayers_BITS
private int BitStreamType
Bitstreams can be:
private final int BitStreamType_BITS
private int FWProgressionOrder
CODParameters.progressionOrder
private final int FWProgressionOrder_BITS
private boolean[] FWPacketHeaders
CODParameters.useSOP and
CODParameters.useEPH.
private int[] DWaveletSA
JPKParameters.waveletSA
private final int DWaveletSA_BITS
private int[] DBitPlaneEncodingSA
JPKParameters.bitPlaneEncodingSA
private final int DBitPlaneEncodingSA_BITS
private int RroiType
JPKParameters.RroiType
private final int RroiType_BITS
private int[] RroisParameters
JPKParameters.RroisParameters
private final int RroisParameters_BITS
private int[] RBitplanesScaling
JPKParameters.RBitplanesScaling
private final int RBitplanesScaling_BITS
private int DPCMRestartIndex
JPKParameters.DPCMRestartIndex
private final int DPCMRestartIndex_BITS
private BufferedDataInputStream in
JPEG2KLogicalTarget.in
private BitStream JPKHeading
Content is a buffer of bits.
| Constructor Detail |
|---|
public JPKMainHeaderDecoder(BufferedDataInputStream in)
in - definition in in| Method Detail |
|---|
public void run()
throws ErrorException
ErrorException - when some I/O error occurspublic JPCParameters getJPCParameters()
jpcParameters attribute.
jpcParameters attributepublic long getMainHeaderInitialPos()
mainHeaderInitialPos attribute.
mainHeaderInitialPos attribute.public int getMainHeaderLength()
mainHeaderLength attribute.
mainHeaderLength attribute.
private boolean readBoolean()
throws ErrorException
ErrorException - when some wrong bitstream or I/O operation occurs
private int readInteger(int numBits)
throws ErrorException
numBits - the number of bits of the integer
ErrorException - when some wrong bitstream or I/O operation occurs
private float readFloat()
throws ErrorException
ErrorException - when some wrong bitstream or I/O operation occurs
private int readByte()
throws ErrorException
ErrorException - when some wrong bitstream or I/O operation occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||