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 voidinitBoolDecoder()intreadBit()intreadBool(int probability)intreadLiteral(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) intreadTree(int[] t, int[] p, int skipBranches)voidseek()java.lang.StringtoString()
-
-
-
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.IOExceptionConvenience 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:
toStringin classjava.lang.Object
-
-