Class BoolDecoder
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.webp.vp8.BoolDecoder
-
final class BoolDecoder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BoolDecoder(javax.imageio.stream.ImageInputStream frame, long offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
initBoolDecoder()
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()
java.lang.String
toString()
-
-
-
Method Detail
-
initBoolDecoder
private void initBoolDecoder() throws java.io.IOException
- Throws:
java.io.IOException
-
readBit
public int readBit() throws java.io.IOException
- Throws:
java.io.IOException
-
readBool
public int readBool(int probability) throws java.io.IOException
- Throws:
java.io.IOException
-
readLiteral
public int readLiteral(int numBits) throws java.io.IOException
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:
java.io.IOException
-
readTree
int readTree(int[] t, int[] p, int skipBranches) throws java.io.IOException
- Throws:
java.io.IOException
-
seek
public void seek() throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-