Class CX
java.lang.Object
org.apache.pdfbox.jbig2.decoder.arithmetic.CX
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 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
index
private int index -
cx
private final byte[] cx -
mps
private final byte[] mps
-
-
Constructor Details
-
CX
public CX(int size, int index) - Parameters:
size
- - Amount of context values.index
- - Start index.
-
-
Method Details
-
cx
protected int cx() -
setCx
protected void setCx(int value) -
mps
protected byte mps()- Returns:
- The decision. Possible values are
0
or1
.
-
toggleMps
protected void toggleMps()Flips the bit in actual "more predictable symbol" array element. -
getIndex
protected int getIndex() -
setIndex
public void setIndex(int index)
-