Package org.jpedal.jbig2.decoders
Class ArithmeticDecoder
java.lang.Object
org.jpedal.jbig2.decoders.ArithmeticDecoder
ArithmeticDecoder class.
-
Field Summary
Modifier and TypeFieldDescriptionfinal ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
final ArithmeticDecoderStats
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
decodeBit
(long context, ArithmeticDecoderStats stats) decodeBit.long
decodeIAID
(long codeLen, ArithmeticDecoderStats stats) decodeIAID.decodeInt
(ArithmeticDecoderStats stats) decodeInt.void
resetGenericStats
(int template, ArithmeticDecoderStats previousStats) resetGenericStats.void
resetIntStats
(int symbolCodeLength) resetIntStats.void
resetRefinementStats
(int template, ArithmeticDecoderStats previousStats) resetRefinementStats.void
start()
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
- aStreamReader
object.
-
-
Method Details
-
resetIntStats
public void resetIntStats(int symbolCodeLength) resetIntStats.
- Parameters:
symbolCodeLength
- aInteger
object.
-
resetGenericStats
resetGenericStats.
- Parameters:
template
- aInteger
object.previousStats
- aArithmeticDecoderStats
object.
-
resetRefinementStats
resetRefinementStats.
- Parameters:
template
- aInteger
object.previousStats
- aArithmeticDecoderStats
object.
-
start
start.
- Throws:
IOException
- if any.
-
decodeInt
decodeInt.
- Parameters:
stats
- aArithmeticDecoderStats
object.- Returns:
- a
DecodeIntResult
object. - Throws:
IOException
- if any.
-
decodeIAID
decodeIAID.
- Parameters:
codeLen
- a long.stats
- aArithmeticDecoderStats
object.- Returns:
- a long.
- Throws:
IOException
- if any.
-
decodeBit
decodeBit.
- Parameters:
context
- a long.stats
- aArithmeticDecoderStats
object.- Returns:
- a
Integer
object. - Throws:
IOException
- if any.
-