Class ArithmeticDecoder


  • public class ArithmeticDecoder
    extends java.lang.Object
    This class represents the arithmetic decoder, described in ISO/IEC 14492:2001 in E.3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int a  
      private int b  
      private long c  
      private int ct  
      private javax.imageio.stream.ImageInputStream iis  
      private static int[][] QE  
      private long streamPos0  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArithmeticDecoder​(javax.imageio.stream.ImageInputStream iis)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void byteIn()  
      int decode​(CX cx)  
      (package private) int getA()  
      (package private) long getC()  
      private void init()  
      private int lpsExchange​(CX cx, int icx, int qeValue)  
      private int mpsExchange​(CX cx, int icx)  
      private void renormalize()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • QE

        private static final int[][] QE
      • a

        private int a
      • c

        private long c
      • ct

        private int ct
      • b

        private int b
      • streamPos0

        private long streamPos0
      • iis

        private final javax.imageio.stream.ImageInputStream iis
    • Constructor Detail

      • ArithmeticDecoder

        public ArithmeticDecoder​(javax.imageio.stream.ImageInputStream iis)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • init

        private void init()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • decode

        public int decode​(CX cx)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • byteIn

        private void byteIn()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • renormalize

        private void renormalize()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • mpsExchange

        private int mpsExchange​(CX cx,
                                int icx)
      • lpsExchange

        private int lpsExchange​(CX cx,
                                int icx,
                                int qeValue)
      • getA

        int getA()
      • getC

        long getC()