|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Client.ClientLogicalTarget.JPEG2000.BlockDecode
public class BlockDecode
This class receives image file sizes information and precincts structures and builds new ones without precincts.
Usage example:
construct
run
[get functions]
| Field Summary | |
|---|---|
private int[] |
blockHeights
Definition in CODParameters.blockHeights |
private int[][] |
blocksPerPrecinctHeights
Definition in GenerateImageStructure.blocksPerPrecinctHeights |
private int[][] |
blocksPerPrecinctWidths
Definition in GenerateImageStructure.blocksPerPrecinctWidths |
private int[] |
blockWidths
Definition in CODParameters.blockWidths |
private int[] |
componentIndexes
Is an one-dimensional array with the component indexes. |
private int[][][][][][][] |
imageBlocks
This multidimensional array of ints contains the image divided into blocks. |
private int[][] |
precinctHeights
Definition in CODParameters.precinctHeights |
private java.util.Hashtable<java.lang.Long,ByteStream[][][][]> |
precinctsByteStreams
Definition in JPEG2KLogicalTarget.precinctsByteStreams |
private int[][] |
precinctWidths
Definition in CODParameters.precinctWidths |
private int[][][] |
QExponents
Definition in QCDParameters.QExponents |
private int |
QGuardBits
Definition in QCDParameters.QGuardBits |
private int |
resolutionLevelAchieved
Is the suitable resolution level to be decoded. |
private int[] |
WTLevels
Definition in CODParameters.WTTypes |
private int |
xSize
Definition in SIZParameters.xSize |
private int |
ySize
Definition in SIZParameters.ySize |
private java.util.Hashtable<java.lang.Long,int[][][]> |
zeroBitPlanes
Definition in JPEG2KLogicalTarget.zeroBitPlanes |
| Constructor Summary | |
|---|---|
BlockDecode(SIZParameters sizParameters,
CODParameters codParameters,
QCDParameters qcdParameters,
int[] componentIndexes,
int[][] blocksPerPrecinctWidths,
int[][] blocksPerPrecinctHeights,
java.util.Hashtable<java.lang.Long,ByteStream[][][][]> precinctsByteStreams,
java.util.Hashtable<java.lang.Long,int[][][]> zeroBitPlanes,
int resolutionLevelAchieved)
Constructor that receives image sizes information. |
|
| Method Summary | |
|---|---|
private void |
dataStructuresFilling()
|
int[][][][][][][] |
getImageBlocks()
|
void |
list(java.io.PrintStream out)
Prints this Block Decode out to the specified output stream. |
private void |
memoryAllocation()
|
void |
run()
Performs the block building. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int[] componentIndexes
private int ySize
SIZParameters.ySize
private int xSize
SIZParameters.xSize
private int[] WTLevels
CODParameters.WTTypes
private int[] blockWidths
CODParameters.blockWidths
private int[] blockHeights
CODParameters.blockHeights
private int[][] blocksPerPrecinctWidths
GenerateImageStructure.blocksPerPrecinctWidths
private int[][] blocksPerPrecinctHeights
GenerateImageStructure.blocksPerPrecinctHeights
private java.util.Hashtable<java.lang.Long,ByteStream[][][][]> precinctsByteStreams
JPEG2KLogicalTarget.precinctsByteStreams
private java.util.Hashtable<java.lang.Long,int[][][]> zeroBitPlanes
JPEG2KLogicalTarget.zeroBitPlanes
private int[][][] QExponents
QCDParameters.QExponents
private int QGuardBits
QCDParameters.QGuardBits
private int[][][][][][][] imageBlocks
Content is the image pixel coefficients.
private int resolutionLevelAchieved
private int[][] precinctWidths
CODParameters.precinctWidths
private int[][] precinctHeights
CODParameters.precinctHeights
| Constructor Detail |
|---|
public BlockDecode(SIZParameters sizParameters,
CODParameters codParameters,
QCDParameters qcdParameters,
int[] componentIndexes,
int[][] blocksPerPrecinctWidths,
int[][] blocksPerPrecinctHeights,
java.util.Hashtable<java.lang.Long,ByteStream[][][][]> precinctsByteStreams,
java.util.Hashtable<java.lang.Long,int[][][]> zeroBitPlanes,
int resolutionLevelAchieved)
sizParameters - definition in SIZParameters.codParameters - definition in CODParameters.qcdParameters - definition in QCDParameters.componentIndexes - definition in componentIndexesblocksPerPrecinctWidths - definition in blocksPerPrecinctWidthsblocksPerPrecinctHeights - definition in blocksPerPrecinctHeightsprecinctsByteStreams - definition in precinctsByteStreamsresolutionLevelAchieved - definition in| Method Detail |
|---|
public void run()
throws ErrorException
ErrorExceptionpublic int[][][][][][][] getImageBlocks()
imageBlockspublic java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.private void memoryAllocation()
private void dataStructuresFilling()
throws WarningException,
ErrorException
ErrorException
WarningException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||