public class JPKMainHeaderDecoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int[] |
BDBlockHeights
Definition in
CADI.Common.LogicalTarget.JPEG2000.Parameters.CODParameters#blockHeights |
private int |
BDBlockHeights_BITS |
private int[] |
BDBlockWidths
Definition in
CADI.Common.LogicalTarget.JPEG2000.Parameters.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
CADI.Client.ClientLogicalTarget.JPEG2000.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
CADI.Common.LogicalTarget.JPEG2000.Parameters.QCDParameters#QExponents |
private int |
QExponents_BITS |
private int |
QGuardBits
Definition in
CADI.Common.LogicalTarget.JPEG2000.Parameters.QCDParameters#QGuardBits |
private int |
QGuardBits_BITS |
private int[][][] |
QMantisas
Definition in
CADI.Common.LogicalTarget.JPEG2000.Parameters.QCDParameters#QMantisas |
private int |
QMantisas_BITS |
private int[] |
QTypes
Definition in
CADI.Common.LogicalTarget.JPEG2000.Parameters.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
CADI.Common.LogicalTarget.JPEG2000.Parameters.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 and Description |
---|
JPKMainHeaderDecoder(BufferedDataInputStream in)
Constructor of JPKDeheading.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
CADI.Common.LogicalTarget.JPEG2000.Parameters.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
CADI.Common.LogicalTarget.JPEG2000.Parameters.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
CADI.Common.LogicalTarget.JPEG2000.Parameters.QCDParameters#QExponents
private final int QExponents_BITS
private int[][][] QMantisas
CADI.Common.LogicalTarget.JPEG2000.Parameters.QCDParameters#QMantisas
private final int QMantisas_BITS
private int QGuardBits
CADI.Common.LogicalTarget.JPEG2000.Parameters.QCDParameters#QGuardBits
private final int QGuardBits_BITS
private int[] BDBlockWidths
CADI.Common.LogicalTarget.JPEG2000.Parameters.CODParameters#blockWidths
private final int BDBlockWidths_BITS
private int[] BDBlockHeights
CADI.Common.LogicalTarget.JPEG2000.Parameters.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
CADI.Client.ClientLogicalTarget.JPEG2000.JPEG2KLogicalTarget#in
private BitStream JPKHeading
Content is a buffer of bits.
public JPKMainHeaderDecoder(BufferedDataInputStream in)
in
- definition in in
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 occursprivate int readInteger(int numBits) throws ErrorException
numBits
- the number of bits of the integerErrorException
- when some wrong bitstream or I/O operation occursprivate float readFloat() throws ErrorException
ErrorException
- when some wrong bitstream or I/O operation occursprivate int readByte() throws ErrorException
ErrorException
- when some wrong bitstream or I/O operation occurs
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)