Shaka Packager SDK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
shaka::media::WebMInfoParser Class Reference

Parser for WebM Info element. More...

#include <webm_info_parser.h>

Inheritance diagram for shaka::media::WebMInfoParser:
shaka::media::WebMParserClient

Public Member Functions

int Parse (const uint8_t *buf, int size)
 
int64_t timecode_scale () const
 
double duration () const
 
std::chrono::system_clock::time_point date_utc () const
 

Additional Inherited Members

- Protected Member Functions inherited from shaka::media::WebMParserClient
 DISALLOW_COPY_AND_ASSIGN (WebMParserClient)
 

Detailed Description

Parser for WebM Info element.

Definition at line 17 of file webm_info_parser.h.

Constructor & Destructor Documentation

◆ WebMInfoParser()

shaka::media::WebMInfoParser::WebMInfoParser ( )

Definition at line 21 of file webm_info_parser.cc.

◆ ~WebMInfoParser()

shaka::media::WebMInfoParser::~WebMInfoParser ( )
override

Definition at line 26 of file webm_info_parser.cc.

Member Function Documentation

◆ date_utc()

std::chrono::system_clock::time_point shaka::media::WebMInfoParser::date_utc ( ) const
inline

Definition at line 30 of file webm_info_parser.h.

◆ duration()

double shaka::media::WebMInfoParser::duration ( ) const
inline

Definition at line 29 of file webm_info_parser.h.

◆ Parse()

int shaka::media::WebMInfoParser::Parse ( const uint8_t *  buf,
int  size 
)

Parses a WebM Info element in |buf|.

Returns
-1 if the parse fails.
0 if more data is needed.
The number of bytes parsed on success.

Definition at line 28 of file webm_info_parser.cc.

◆ timecode_scale()

int64_t shaka::media::WebMInfoParser::timecode_scale ( ) const
inline

Definition at line 28 of file webm_info_parser.h.


The documentation for this class was generated from the following files: