public class BlockDecodeState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ClientJPEG2KCodestream |
codestream |
protected int[] |
componentIndexes
Is an one-dimensional array with the component indexes.
|
protected int |
discardLevels |
protected boolean |
error |
protected boolean |
finishedBlocks |
protected int[] |
fsiz |
protected float[][][][][][][] |
imageBlocks
This multidimensional array of ints contains the image divided into blocks.
|
protected java.lang.Object |
lock |
protected int |
rLevel |
protected int[] |
roff |
protected int[] |
rsiz |
protected int |
subband |
protected int |
xBlock |
protected int |
yBlock |
protected int |
zIndex |
Constructor and Description |
---|
BlockDecodeState(ClientJPEG2KCodestream codestream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
float[][][][][][][] |
getImageBlocks() |
void |
initialize(ViewWindowField viewWindow,
int[] componentIndexes,
int discardLevels) |
boolean |
isError() |
void |
list(java.io.PrintStream out)
Prints this Block Decode out to the specified output stream.
|
private void |
memoryAllocation()
Allocates the memory for the
imageBlocks attribue. |
java.lang.String |
toString() |
protected ClientJPEG2KCodestream codestream
protected int[] componentIndexes
protected float[][][][][][][] imageBlocks
Content is the image pixel coefficients.
protected int discardLevels
protected int[] fsiz
protected int[] roff
protected int[] rsiz
protected boolean error
protected final java.lang.Object lock
protected int zIndex
protected int rLevel
protected int subband
protected int yBlock
protected int xBlock
protected boolean finishedBlocks
public BlockDecodeState(ClientJPEG2KCodestream codestream)
codestream
- public void initialize(ViewWindowField viewWindow, int[] componentIndexes, int discardLevels) throws ErrorException
viewWindow
- componentIndexes
- precinctStreams
- discardLevels
- numThreads
- ErrorException
public boolean isError()
public float[][][][][][][] getImageBlocks()
imageBlocks
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.private void memoryAllocation() throws ErrorException, WarningException
imageBlocks
attribue.ErrorException
WarningException
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)