|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArithmeticCoder
This interface defines the methods that a coder must contain.
Method Summary | |
---|---|
void |
codeBit(boolean bit)
Code a bit without taking into account context probabilities in an artihmetic like coder. |
void |
codeBit(boolean bit,
int context)
Code a bit taking into account context probabilities in an artihmetic like coder. |
void |
reset()
Reset the context probabilities of the coder, if any. |
void |
restart()
Restart the internal variables of the coder. |
void |
swapOutputByteStream(ByteStream outputByteStream)
Swaps the current outputByteStream. |
void |
terminate()
Finishes the outputByteStream, if needed. |
Method Detail |
---|
void codeBit(boolean bit, int context)
bit
- bit to encodecontext
- context the bit
WarningException
- when some problem with the manipulation of the ByteStream happensvoid codeBit(boolean bit)
bit
- bit to encode
WarningException
- when some problem with the manipulation of the ByteStream happensvoid swapOutputByteStream(ByteStream outputByteStream)
outputByteStream
- ByteStream where the byte are flushedvoid terminate() throws WarningException
WarningException
- when some problem with the manipulation of the ByteStream happensvoid restart()
void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |