|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntropyCodec
Abstract entropy codec interface.
| Field Summary |
|---|
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Method Summary | |
|---|---|
boolean |
available()
Are they any input symbols (bits) available? |
void |
close()
Codec close. |
long |
compressed()
Actual codec compressed position in bits (total amount in all contexts). |
void |
flush()
Codec flush. |
int |
get()
Decodes one symbol (using the current context). |
int |
get(WheelOfFortune wheel)
|
long |
getBits(int length)
Reads the given amount of "raw" bits (by-passes the entropy decoder). |
int |
getMaxSymbol()
Retrieves maximal symbol value for the actual context. |
void |
open(boolean output,
int ctx)
Codec initialization. |
long |
position()
Actual codec external position in symbols (total amount in all contexts). |
void |
put(int symbol)
Encodes the given symbol (in the current context). |
void |
put(WheelOfFortune wheel,
int s)
|
void |
putBits(long bits,
int length)
Writes the given "raw" bits (by-passes the entropy encoder). |
int |
setContext(int ctx)
Sets the given context as current. |
void |
setMaxSymbol(int max)
Sets maximal symbol value for the actual context and all subsequently created ones. |
| Methods inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
commit, get, set |
| Method Detail |
|---|
void open(boolean output,
int ctx)
throws java.io.IOException
output - Open for output?ctx - Initial context.
java.io.IOExceptionBitStream,
setContext(int)
int setContext(int ctx)
throws java.io.IOException
ctx - Id of the new context.
java.io.IOExceptionint getMaxSymbol()
void setMaxSymbol(int max)
open(boolean, int)!
max - New maximal symbol value.
void flush()
throws java.io.IOException
java.io.IOExceptionopen(boolean, int),
close()
void close()
throws java.io.IOException
java.io.IOExceptionopen(boolean, int),
flush()
long position()
throws java.io.IOException
java.io.IOExceptioncompressed()
long compressed()
throws java.io.IOException
java.io.IOExceptionposition()
boolean available()
throws java.io.IOException
java.io.IOExceptionposition(),
compressed()
void put(int symbol)
throws java.io.IOException
symbol - Symbol to encode.
java.io.IOExceptionputBits(long, int),
get()
void put(WheelOfFortune wheel,
int s)
throws java.io.IOException
java.io.IOException
void putBits(long bits,
int length)
throws java.io.IOException
bits - Bits to be written ("MSB first" order).length - Number of bits to write.
java.io.IOExceptionput(int),
getBits(int)
int get()
throws java.io.IOException
-1 if no symbol is available).
java.io.IOExceptiongetBits(int),
put(int),
available()
int get(WheelOfFortune wheel)
throws java.io.IOException
java.io.IOException
long getBits(int length)
throws java.io.IOException
length - Number of bits to read.
-1 if no bits are available).
java.io.IOExceptionget(),
putBits(long, int),
available()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||