Class CX
- java.lang.Object
-
- org.apache.pdfbox.jbig2.decoder.arithmetic.CX
-
public final class CX extends java.lang.ObjectCX represents the context used by arithmetic decoding and arithmetic integer decoding. It selects the probability estimate and statistics used during decoding procedure.
-
-
Constructor Summary
Constructors Constructor Description CX(int size, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcx()protected intgetIndex()protected bytemps()protected voidsetCx(int value)voidsetIndex(int index)protected voidtoggleMps()Flips the bit in actual "more predictable symbol" array element.
-
-
-
Method Detail
-
cx
protected int cx()
-
setCx
protected void setCx(int value)
-
mps
protected byte mps()
- Returns:
- The decision. Possible values are
0or1.
-
toggleMps
protected void toggleMps()
Flips the bit in actual "more predictable symbol" array element.
-
getIndex
protected int getIndex()
-
setIndex
public void setIndex(int index)
-
-