public interface FastArithmeticCoderI
| Modifier and Type | Method and Description |
|---|---|
int |
encode(int x,
it.unimi.dsi.io.OutputBitStream obs)
Encodes a symbol.
|
int |
flush(it.unimi.dsi.io.OutputBitStream obs)
Flushes the last bits.
|
void |
reset() |
void reset()
int encode(int x,
it.unimi.dsi.io.OutputBitStream obs)
throws IOException
x - a bit.obs - the output stream.IOException - if obs does.int flush(it.unimi.dsi.io.OutputBitStream obs) throws IOException
This method must be called when coding is over. It guarantees that enough bits are output to make the decoding of the last symbol nonambiguous, whichever bits follow in the stream.
obs - the output stream.IOException - if obs does.Copyright © 2018 Campagne Laboratory. All rights reserved.