|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTER.TERdecoder.BPEDecoder.ACEntropyDecoder
public class ACEntropyDecoder
| Field Summary | |
|---|---|
(package private) int |
channel
|
(package private) int[] |
codeIdLength
Definition in EncodeGaggleAC.codeIdLength |
(package private) int[] |
currentLayer
|
(package private) ReadBufferedStream[] |
encodedStream
|
(package private) int |
entropyAC
Definition in EncodeGaggleAC.entropyAC |
(package private) int |
gaggle
|
(package private) int |
generation
|
(package private) int[] |
ids
Definition in EncodeGaggleAC.ids |
(package private) int[] |
noCodeId
Definition in EncodeGaggleAC.noCodeId |
(package private) byte[][][][][] |
packetStream
|
(package private) boolean |
parametersSet
To know if parameters are set. |
(package private) int |
segment
|
| Constructor Summary | |
|---|---|
ACEntropyDecoder(byte[][][][][] packetStream)
|
|
| Method Summary | |
|---|---|
private boolean |
getBit()
Gets a bit from the encoded bit stream |
int |
getBits(int length)
private int getBits(int length) throws Exception{ return encodedStream[generation].getBits(length); } |
private int |
getFourLengthSymbol()
Decodes the symbols with length 4 |
ReadBufferedStream |
getLayerParents()
|
byte |
getRecommededContext(int stage,
int length,
boolean impossiblePattern)
Definition in CodeBlockAC.getRecommededContext(int, int, boolean) |
private int |
getThreeLengthSymbol()
Decodes the symbols with length 3 |
private int |
getTwoLengthSymbol()
Decodes the symbols with length 2 |
int |
getWord(int generation,
int stage,
int length,
boolean impossiblePattern)
Decodes a word according with the parameters given by the user |
boolean |
moreBitPlanes(int generation,
int bitplane,
int[] BP)
|
void |
resetIDs()
|
void |
setParameters(int channel,
int segment,
int gaggle,
int resolutionLevels,
int entropyAC)
|
private int |
unMapSymbol(int symbol,
byte context)
Map symbols to words |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
ReadBufferedStream[] encodedStream
byte[][][][][] packetStream
int[] currentLayer
int entropyAC
EncodeGaggleAC.entropyAC
boolean parametersSet
True indicates that they are set otherwise false.
int[] ids
EncodeGaggleAC.ids
int[] noCodeId
EncodeGaggleAC.noCodeId
int[] codeIdLength
EncodeGaggleAC.codeIdLength
int generation
int channel
int segment
int gaggle
| Constructor Detail |
|---|
public ACEntropyDecoder(byte[][][][][] packetStream)
| Method Detail |
|---|
public void setParameters(int channel,
int segment,
int gaggle,
int resolutionLevels,
int entropyAC)
throws java.lang.Exception
java.lang.Exceptionpublic void resetIDs()
public int getWord(int generation,
int stage,
int length,
boolean impossiblePattern)
throws java.lang.Exception
stage - indicates if the word corresponds to the significance encoding, the sign encoding or the refinement.
length - indicates the length of the word to be decodedimpossiblePattern - indicates whether all zeros is a possible pattern
java.lang.Exception - when something goes wrong (tipically reaching the end of the bit stream) and decoding process must be stoped
private int getTwoLengthSymbol()
throws java.lang.Exception
java.lang.Exception - when the bit stream is finished before decoding the symbol
private int getThreeLengthSymbol()
throws java.lang.Exception
java.lang.Exception - when the bit stream is finished before decoding the symbol
private int getFourLengthSymbol()
throws java.lang.Exception
java.lang.Exception - when the bit stream is finished before decoding the symbol
public byte getRecommededContext(int stage,
int length,
boolean impossiblePattern)
CodeBlockAC.getRecommededContext(int, int, boolean)
private int unMapSymbol(int symbol,
byte context)
symbol - indicates the symbol to be mappedcontext - indicates the kind of word to be decoded, i.e. the lenght and the encoding pass
private boolean getBit()
throws java.lang.Exception
java.lang.Exception - when is not possible get a bit from the bit stream
public int getBits(int length)
throws java.lang.Exception
java.lang.Exception
public boolean moreBitPlanes(int generation,
int bitplane,
int[] BP)
public ReadBufferedStream getLayerParents()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||