Class ArithmeticDecoder
java.lang.Object
org.apache.pdfbox.jbig2.decoder.arithmetic.ArithmeticDecoder
This class represents the arithmetic decoder, described in ISO/IEC 14492:2001 in E.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private long
private int
private final ImageInputStream
private static final int[][]
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
byteIn()
int
(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
-
Field Details
-
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
-
-
Constructor Details
-
ArithmeticDecoder
- Throws:
IOException
-
-
Method Details
-
init
- Throws:
IOException
-
decode
- Throws:
IOException
-
byteIn
- Throws:
IOException
-
renormalize
- Throws:
IOException
-
mpsExchange
-
lpsExchange
-
getA
int getA() -
getC
long getC()
-