Shaka Packager SDK
|
#include <webm_parser.h>
Public Member Functions | |
WebMListParser (int id, WebMParserClient *client) | |
void | Reset () |
Resets the state of the parser so it can start parsing a new list. | |
int | Parse (const uint8_t *buf, int size) |
bool | IsParsingComplete () const |
Parses a WebM list element and all of its children. This class supports incremental parsing of the list so Parse() can be called multiple times with pieces of the list. IsParsingComplete() will return true once the entire list has been parsed.
Definition at line 53 of file webm_parser.h.
shaka::media::WebMListParser::WebMListParser | ( | int | id, |
WebMParserClient * | client | ||
) |
id | Element ID of the list we intend to parse. |
client | Called as different elements in the list are parsed. |
Definition at line 731 of file webm_parser.cc.
bool shaka::media::WebMListParser::IsParsingComplete | ( | ) | const |
Definition at line 831 of file webm_parser.cc.
int shaka::media::WebMListParser::Parse | ( | const uint8_t * | buf, |
int | size | ||
) |
Parses list data contained in |buf|.
Definition at line 747 of file webm_parser.cc.