-
Notifications
You must be signed in to change notification settings - Fork 185
Bitstream Class Reference
The AV.Bitstream
class wraps an AV.Stream and adds methods to read data on an individual bit level. It is commonly used by decoders in Aurora.
Creates a AV.Bitstream
with the given AV.Stream.
The bit position within the current byte.
Returns a new Bitstream
backed by the same data at the same bit position.
Returns the current offset from the start of the stream in bits.
Returns whether or not the bitstream has the specified number of bits, as a boolean.
Advances the current bit offset by the specified number of bits. Advancing the bit stream also advances the backing Stream.
Byte aligns the bitstream to the next available byte.
Reads the specified number of bits from the bitstream, up to 40 bits, and advances the current bit position. If signed
is set to true
, the bits are interpreted as a signed integer, otherwise they are interpreted as unsigned.
Reads the specified number of bits from the bitstream, up to 40 bits, without advancing the bit position. If signed
is set to true
, the bits are interpreted as a signed integer, otherwise they are interpreted as unsigned.
Reads the specified number of bits from the bitstream in little endian word order, up to 40 bits, and advances the current bit position. If signed
is set to true
, the bits are interpreted as a signed integer, otherwise they are interpreted as unsigned.
Reads the specified number of bits from the bitstream in little endian word order, up to 40 bits, without advancing the bit position. If signed
is set to true
, the bits are interpreted as a signed integer, otherwise they are interpreted as unsigned.