Bit position in the current byte
Current byte position
Data from which the bit reader will read
Size of data
in bytes
Frees a #GstBitReader instance, which was previously allocated by gst_bit_reader_new().
Read nbits
bits into val
and update the current position.
number of bits to read
Read nbits
bits into val
and update the current position.
number of bits to read
Read nbits
bits into val
and update the current position.
number of bits to read
Read nbits
bits into val
and update the current position.
number of bits to read
Returns the current position of a #GstBitReader instance in bits.
Returns the remaining number of bits of a #GstBitReader instance.
Returns the total number of bits of a #GstBitReader instance.
Initializes a #GstBitReader instance to read from data
. This function
can be called on already initialized instances.
data from which the bit reader should read
Read nbits
bits into val
but keep the current position.
number of bits to read
Read nbits
bits into val
but keep the current position.
number of bits to read
Read nbits
bits into val
but keep the current position.
number of bits to read
Read nbits
bits into val
but keep the current position.
number of bits to read
Sets the new position of a #GstBitReader instance to pos
in bits.
The new position in bits
Skips nbits
bits of the #GstBitReader instance.
the number of bits to skip
Skips until the next byte.
#GstBitReader provides a bit reader that can read any number of bits from a memory buffer. It provides functions for reading any number of bits into 8, 16, 32 and 64 bit variables.