org.jpedal.jbig2.decoders
Class ArithmeticDecoder

java.lang.Object
  extended by org.jpedal.jbig2.decoders.ArithmeticDecoder

public class ArithmeticDecoder
extends java.lang.Object


Field Summary
 ArithmeticDecoderStats genericRegionStats
           
 ArithmeticDecoderStats iaaiStats
           
 ArithmeticDecoderStats iadhStats
           
 ArithmeticDecoderStats iadsStats
           
 ArithmeticDecoderStats iadtStats
           
 ArithmeticDecoderStats iadwStats
           
 ArithmeticDecoderStats iaexStats
           
 ArithmeticDecoderStats iafsStats
           
 ArithmeticDecoderStats iaidStats
           
 ArithmeticDecoderStats iaitStats
           
 ArithmeticDecoderStats iardhStats
           
 ArithmeticDecoderStats iardwStats
           
 ArithmeticDecoderStats iardxStats
           
 ArithmeticDecoderStats iardyStats
           
 ArithmeticDecoderStats iariStats
           
 ArithmeticDecoderStats refinementRegionStats
           
 
Constructor Summary
ArithmeticDecoder(StreamReader reader)
           
 
Method Summary
 int decodeBit(long context, ArithmeticDecoderStats stats)
           
 long decodeIAID(long codeLen, ArithmeticDecoderStats stats)
           
 DecodeIntResult decodeInt(ArithmeticDecoderStats stats)
           
 void resetGenericStats(int template, ArithmeticDecoderStats previousStats)
           
 void resetIntStats(int symbolCodeLength)
           
 void resetRefinementStats(int template, ArithmeticDecoderStats previousStats)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

genericRegionStats

public ArithmeticDecoderStats genericRegionStats

refinementRegionStats

public ArithmeticDecoderStats refinementRegionStats

iadhStats

public ArithmeticDecoderStats iadhStats

iadwStats

public ArithmeticDecoderStats iadwStats

iaexStats

public ArithmeticDecoderStats iaexStats

iaaiStats

public ArithmeticDecoderStats iaaiStats

iadtStats

public ArithmeticDecoderStats iadtStats

iaitStats

public ArithmeticDecoderStats iaitStats

iafsStats

public ArithmeticDecoderStats iafsStats

iadsStats

public ArithmeticDecoderStats iadsStats

iardxStats

public ArithmeticDecoderStats iardxStats

iardyStats

public ArithmeticDecoderStats iardyStats

iardwStats

public ArithmeticDecoderStats iardwStats

iardhStats

public ArithmeticDecoderStats iardhStats

iariStats

public ArithmeticDecoderStats iariStats

iaidStats

public ArithmeticDecoderStats iaidStats
Constructor Detail

ArithmeticDecoder

public ArithmeticDecoder(StreamReader reader)
Method Detail

resetIntStats

public void resetIntStats(int symbolCodeLength)

resetGenericStats

public void resetGenericStats(int template,
                              ArithmeticDecoderStats previousStats)

resetRefinementStats

public void resetRefinementStats(int template,
                                 ArithmeticDecoderStats previousStats)

start

public void start()
           throws java.io.IOException
Throws:
java.io.IOException

decodeInt

public DecodeIntResult decodeInt(ArithmeticDecoderStats stats)
                          throws java.io.IOException
Throws:
java.io.IOException

decodeIAID

public long decodeIAID(long codeLen,
                       ArithmeticDecoderStats stats)
                throws java.io.IOException
Throws:
java.io.IOException

decodeBit

public int decodeBit(long context,
                     ArithmeticDecoderStats stats)
              throws java.io.IOException
Throws:
java.io.IOException