Top Description Fields Constructors Methods
org.apache.pdfbox.jbig2.decoder.arithmetic

public final Class CX

extends Object
Class Inheritance

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

Modifier and TypeField and Description
private final byte[]
private int
private final byte[]

Constructor Summary

AccessConstructor and Description
public
CX(int
- Amount of context values.
size
,
int
- Start index.
index
)

Method Summary

Modifier and TypeMethod and Description
protected int
cx()

protected int
protected byte

Returns:

The decision. Possible values are 0 or 1.
mps
()

protected void
setCx(int value)

public void
setIndex(int index)

protected void
toggleMps()

Flips the bit in actual "more predictable symbol" array element.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cxback to summary
private final byte[] cx
indexback to summary
private int index
mpsback to summary
private final byte[] mps

Constructor Detail

CXback to summary
public CX(int size, int index)
Parameters
size:int

- Amount of context values.

index:int

- Start index.

Method Detail

cxback to summary
protected int cx()
getIndexback to summary
protected int getIndex()
mpsback to summary
protected byte mps()
Returns:byte

The decision. Possible values are 0 or 1.

setCxback to summary
protected void setCx(int value)
setIndexback to summary
public void setIndex(int index)
toggleMpsback to summary
protected void toggleMps()

Flips the bit in actual "more predictable symbol" array element.