Package org.jpedal.jbig2.decoders
Class ArithmeticDecoder
java.lang.Object
org.jpedal.jbig2.decoders.ArithmeticDecoder
ArithmeticDecoder class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStatsfinal ArithmeticDecoderStats -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdecodeBit(long context, ArithmeticDecoderStats stats) decodeBit.longdecodeIAID(long codeLen, ArithmeticDecoderStats stats) decodeIAID.decodeInt(ArithmeticDecoderStats stats) decodeInt.voidresetGenericStats(int template, ArithmeticDecoderStats previousStats) resetGenericStats.voidresetIntStats(int symbolCodeLength) resetIntStats.voidresetRefinementStats(int template, ArithmeticDecoderStats previousStats) resetRefinementStats.voidstart()start.
-
Field Details
-
iadhStats
-
iadwStats
-
iaexStats
-
iaaiStats
-
iadtStats
-
iaitStats
-
iafsStats
-
iadsStats
-
iardxStats
-
iardyStats
-
iardwStats
-
iardhStats
-
iariStats
-
genericRegionStats
-
refinementRegionStats
-
iaidStats
-
-
Constructor Details
-
ArithmeticDecoder
Constructor for ArithmeticDecoder.
- Parameters:
reader- aStreamReaderobject.
-
-
Method Details
-
resetIntStats
public void resetIntStats(int symbolCodeLength) resetIntStats.
- Parameters:
symbolCodeLength- aIntegerobject.
-
resetGenericStats
resetGenericStats.
- Parameters:
template- aIntegerobject.previousStats- aArithmeticDecoderStatsobject.
-
resetRefinementStats
resetRefinementStats.
- Parameters:
template- aIntegerobject.previousStats- aArithmeticDecoderStatsobject.
-
start
start.
- Throws:
IOException- if any.
-
decodeInt
decodeInt.
- Parameters:
stats- aArithmeticDecoderStatsobject.- Returns:
- a
DecodeIntResultobject. - Throws:
IOException- if any.
-
decodeIAID
decodeIAID.
- Parameters:
codeLen- a long.stats- aArithmeticDecoderStatsobject.- Returns:
- a long.
- Throws:
IOException- if any.
-
decodeBit
decodeBit.
- Parameters:
context- a long.stats- aArithmeticDecoderStatsobject.- Returns:
- a
Integerobject. - Throws:
IOException- if any.
-