Maven module :un.storage : codec-vp8 :
Class : un.storage.media.vp8.BoolReader
Extends/Implements : un.api.io.DataInputStream
Subclasses : -

Extend DataInputStream with Bool decoding.
Specification :
http://tools.ietf.org/html/rfc6386#section-7
author  Johann Sorel


Variables : range, value, bit_count
Functions : BoolReader, BoolReader, initBool, readBool, readFlag, readULiteral, readULiteralAndSign, readLiteral, readTree


public int range


/* always identical to encoder's range */
public int value


/* contains at least 8 significant bits */
public int bit_count



/* # of bits shifted out of
value, at most 7 */
public void BoolReader (ByteInputStream in)

public void BoolReader (ByteInputStream in, NumberEncoding encoding)

public void initBool ()

public int readBool (int prob)

public boolean readFlag ()


Read an unsigned literal coded used bool.
param  nbBits
return
public int readULiteral (int nbBits)


Read an unsigned literal on given number of bits.
Then read a single bit flag for the sign
param  nbBits
return
throws  IOException
public int readULiteralAndSign (int nbBits)


Read a signed literal coded used bool.
param  nbBits
return
public int readLiteral (int nbBits)


http://tools.ietf.org/html/rfc6386#section-8.1
param  t tree
param  p probability
return
throws  IOException
public int readTree (int[] t, int[] p)