public class ClientJPEG2KBlock
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<int[]> |
lengths |
private int |
numCodingPasses |
private java.util.ArrayList<int[]> |
offsets |
private ClientJPEG2KPrecinct |
parent |
private int |
subband
|
private int |
zeroBitPlanes
Definition in
PacketHeaderDataDecoder.zeroBitPlanes . |
Constructor and Description |
---|
ClientJPEG2KBlock(ClientJPEG2KPrecinct parent,
int subband)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addOffsetsAndLengths(int[] offsets,
int[] lengths) |
int |
getLength(int codingPass) |
int |
getMostSignificantBitPlane()
Returns the most significant bit plane of the block.
|
int |
getNumCodingPasses()
Definition in
numCodingPasses . |
int |
getOffset(int codingPass) |
ClientJPEG2KPrecinct |
getParent() |
CPByteStream[] |
getPrecinctStream() |
CPByteStream |
getPrecinctStream(int cp) |
int |
getSubband()
Returns the subband.
|
int |
getZeroBitPlanes() |
void |
list(java.io.PrintStream out)
Prints this Block Decode out to the specified output stream.
|
void |
setZeroBitPlanes(int zeroBitPlanes) |
java.lang.String |
toString() |
private ClientJPEG2KPrecinct parent
private int subband
private int zeroBitPlanes
PacketHeaderDataDecoder.zeroBitPlanes
.private java.util.ArrayList<int[]> offsets
private java.util.ArrayList<int[]> lengths
private int numCodingPasses
public ClientJPEG2KBlock(ClientJPEG2KPrecinct parent, int subband)
public ClientJPEG2KPrecinct getParent()
public int getSubband()
public void setZeroBitPlanes(int zeroBitPlanes)
zeroBitPlanes
- public int getZeroBitPlanes()
public int getNumCodingPasses()
numCodingPasses
.public void addOffsetsAndLengths(int[] offsets, int[] lengths)
offsets
- lengths
- public int getLength(int codingPass)
codingPass
- public int getOffset(int codingPass)
codingPass
- public CPByteStream[] getPrecinctStream()
public CPByteStream getPrecinctStream(int cp)
cp
- public int getMostSignificantBitPlane()
public java.lang.String toString()
toString
in class java.lang.Object
public void list(java.io.PrintStream out)
out
- an output stream.
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)