public final class FastArithmeticCoderPlus extends Object implements FastArithmeticCoderI
FastArithmeticDecoderPlus| Constructor and Description |
|---|
FastArithmeticCoderPlus(int numSymbols) |
| 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() |
public void reset()
reset in interface FastArithmeticCoderIpublic int encode(int x,
it.unimi.dsi.io.OutputBitStream obs)
throws IOException
FastArithmeticCoderIencode in interface FastArithmeticCoderIx - a bit.obs - the output stream.IOException - if obs does.public int flush(it.unimi.dsi.io.OutputBitStream obs)
throws IOException
FastArithmeticCoderIThis 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.
flush in interface FastArithmeticCoderIobs - the output stream.IOException - if obs does.Copyright © 2017 Campagne Laboratory. All rights reserved.