class Vp9RawBitsReader

Defined at line 23 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.h

A class to read raw bits stream. See VP9 spec, "RAW-BITS DECODING" section

for detail.

Public Methods

void Vp9RawBitsReader ()

Defined at line 18 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.cc

void ~Vp9RawBitsReader ()

Defined at line 20 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.cc

void Initialize (const uint8_t * data, size_t size)

|data| is the input buffer with |size| bytes.

Defined at line 22 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.cc

void Vp9RawBitsReader (const Vp9RawBitsReader & )

Defined at line 27 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.h

Vp9RawBitsReader & operator= (const Vp9RawBitsReader & )

Defined at line 28 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.h

bool IsValid ()

Returns true if none of the reads since the last Initialize() call has

gone beyond the end of available data.

Defined at line 37 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.h

size_t GetBytesRead ()

Returns how many bytes were read since the last Initialize() call.

Partial bytes will be counted as one byte. For example, it will return 1

if 3 bits were read.

Defined at line 54 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.cc

bool ReadBool ()

Reads one bit.

If the read goes beyond the end of buffer, the return value is undefined.

Defined at line 28 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.cc

int ReadLiteral (int bits)

Reads a literal with |bits| bits.

If the read goes beyond the end of buffer, the return value is undefined.

Defined at line 38 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.cc

int ReadSignedLiteral (int bits)

Reads a signed literal with |bits| bits (not including the sign bit).

If the read goes beyond the end of buffer, the return value is undefined.

Defined at line 49 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.cc

bool ConsumeTrailingBits ()

Consumes trailing bits up to next byte boundary. Returns true if no

trailing bits or they are all zero.

Defined at line 59 of file ../../src/media/third_party/chromium_media/media/filters/vp9_raw_bits_reader.cc