public interface Decoder
Modifier and Type | Method and Description |
---|---|
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(CPByteStream inputByteStream)
Swaps the current inputByteStream.
|
boolean decodeBit(int context) throws ErrorException
context
- context the bitErrorException
- when some problem with the manipulation of the ByteStream happensboolean decodeBit() throws ErrorException
ErrorException
- when some problem with the manipulation of the ByteStream happensvoid swapInputByteStream(CPByteStream inputByteStream)
inputByteStream
- ByteStream from where the byte are gotvoid restart() throws ErrorException
ErrorException
- when some problem with the manipulation of the ByteStream happensvoid reset()
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)