|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Decoder
This interface defines the methods that a decoder must contain.
| Method Summary | |
|---|---|
boolean |
decodeBit()
Decode a bit without taking into account context probabilities in an artihmetic like coder. |
boolean |
decodeBit(int context)
Decode a bit taking into account context probabilities in an artihmetic like coder. |
void |
reset()
Reset the context probabilities of the decoder, if any. |
void |
restart()
Restart the internal variables of the decoder. |
void |
swapInputByteStream(ByteStream inputByteStream)
Swaps the current inputByteStream. |
| Method Detail |
|---|
boolean decodeBit(int context)
throws ErrorException
context - context the bit
ErrorException - when some problem with the manipulation of the ByteStream happens
boolean decodeBit()
throws ErrorException
ErrorException - when some problem with the manipulation of the ByteStream happensvoid swapInputByteStream(ByteStream inputByteStream)
inputByteStream - ByteStream from where the byte are got
void restart()
throws ErrorException
ErrorException - when some problem with the manipulation of the ByteStream happensvoid reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||