Class BoolDecoder
java.lang.Object
com.twelvemonkeys.imageio.plugins.webp.vp8.BoolDecoder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
int
readBit()
int
readBool
(int probability) int
readLiteral
(int numBits) Convenience method reads a "literal", that is, a "numBits" wide unsigned value whose bits come high- to low-order, with each bit encoded at probability 128 (i.e., 1/2).(package private) int
readTree
(int[] t, int[] p, int skipBranches) void
seek()
toString()
-
Field Details
-
bitCount
private int bitCount -
data
ImageInputStream data -
offset
private long offset -
range
private int range -
value
private int value
-
-
Constructor Details
-
BoolDecoder
BoolDecoder(ImageInputStream frame, long offset) throws IOException - Throws:
IOException
-
-
Method Details
-
initBoolDecoder
- Throws:
IOException
-
readBit
- Throws:
IOException
-
readBool
- Throws:
IOException
-
readLiteral
Convenience method reads a "literal", that is, a "numBits" wide unsigned value whose bits come high- to low-order, with each bit encoded at probability 128 (i.e., 1/2).- Throws:
IOException
-
readTree
- Throws:
IOException
-
seek
- Throws:
IOException
-
toString
-