DASH Media Packaging SDK
|
Parser for WebM Tracks element. More...
#include <webm_tracks_parser.h>
Public Types | |
typedef std::map< int, TextTrackConfig > | TextTracks |
Public Member Functions | |
WebMTracksParser (bool ignore_text_tracks) | |
int | Parse (const uint8_t *buf, int size) |
int64_t | audio_track_num () const |
int64_t | video_track_num () const |
int64_t | GetAudioDefaultDuration (const double timecode_scale_in_us) const |
int64_t | GetVideoDefaultDuration (const double timecode_scale_in_us) const |
const std::set< int64_t > & | ignored_tracks () const |
const std::string & | audio_encryption_key_id () const |
std::shared_ptr< AudioStreamInfo > | audio_stream_info () |
const std::string & | video_encryption_key_id () const |
std::shared_ptr< VideoStreamInfo > | video_stream_info () |
const TextTracks & | text_tracks () const |
const VPCodecConfigurationRecord & | vp_config () const |
Additional Inherited Members | |
Protected Member Functions inherited from shaka::media::WebMParserClient | |
DISALLOW_COPY_AND_ASSIGN (WebMParserClient) | |
Parser for WebM Tracks element.
Definition at line 27 of file webm_tracks_parser.h.
int64_t shaka::media::WebMTracksParser::GetAudioDefaultDuration | ( | const double | timecode_scale_in_us | ) | const |
If TrackEntry DefaultDuration field existed for the associated audio or video track, returns that value converted from ns to base::TimeDelta with precision not greater than |timecode_scale_in_us|. Defaults to kNoTimestamp.
Definition at line 90 of file webm_tracks_parser.cc.
int shaka::media::WebMTracksParser::Parse | ( | const uint8_t * | buf, |
int | size | ||
) |
Parses a WebM Tracks element in |buf|.
Definition at line 65 of file webm_tracks_parser.cc.