|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.colloquial.arithcode.ArithCoder
A generic arithmetic coding subclass containing elements common to both arithmetic decoding and arithmetic coding.
| Field Summary | |
protected long |
_high
The high bound on the current interval for coding. |
protected long |
_low
The low bound on the current interval for coding. |
protected static int |
CODE_VALUE_BITS
Precision of coding, expressed in number of bits used for arithmetic before shifting out partial results. |
protected static long |
FIRST_QUARTER
1/4 of the largest possible value plus one. |
protected static long |
HALF
1/2 of the largest possible value; 2 * FIRST_QUARTER |
protected static long |
THIRD_QUARTER
3/4 of the largest possible value; 3 * FIRST_QUARTER |
protected static long |
TOP_VALUE
The largest possible interval value. |
| Constructor Summary | |
protected |
ArithCoder()
Construct a generic arithmetic coder. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected long _low
protected long _high
protected static final int CODE_VALUE_BITS
protected static final long TOP_VALUE
1s.
protected static final long FIRST_QUARTER
protected static final long HALF
2 * FIRST_QUARTER
protected static final long THIRD_QUARTER
3 * FIRST_QUARTER
| Constructor Detail |
protected ArithCoder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||