Class CX


  • public final class CX
    extends java.lang.Object
    CX represents the context used by arithmetic decoding and arithmetic integer decoding. It selects the probability estimate and statistics used during decoding procedure.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] cx  
      private int index  
      private byte[] mps  
    • Constructor Summary

      Constructors 
      Constructor Description
      CX​(int size, int index)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int cx()  
      protected int getIndex()  
      protected byte mps()  
      protected void setCx​(int value)  
      void setIndex​(int index)  
      protected void toggleMps()
      Flips the bit in actual "more predictable symbol" array element.
      • Methods inherited from class java.lang.Object

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

      • index

        private int index
      • cx

        private final byte[] cx
      • mps

        private final byte[] mps
    • Constructor Detail

      • CX

        public CX​(int size,
                  int index)
        Parameters:
        size - - Amount of context values.
        index - - Start index.
    • Method Detail

      • cx

        protected int cx()
      • setCx

        protected void setCx​(int value)
      • mps

        protected byte mps()
        Returns:
        The decision. Possible values are 0 or 1.
      • toggleMps

        protected void toggleMps()
        Flips the bit in actual "more predictable symbol" array element.
      • getIndex

        protected int getIndex()
      • setIndex

        public void setIndex​(int index)