DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
shaka::media::WebMVideoClient Class Reference

Helper class used to parse a Video element inside a TrackEntry element. More...

#include <webm_video_client.h>

Inheritance diagram for shaka::media::WebMVideoClient:
shaka::media::WebMParserClient

Public Member Functions

void Reset ()
 Reset this object's state so it can process a new video track element.
 
std::shared_ptr< VideoStreamInfoGetVideoStreamInfo (int64_t track_num, const std::string &codec_id, bool is_encrypted)
 
const VPCodecConfigurationRecordGetVpCodecConfig (const std::vector< uint8_t > &codec_private)
 
- Public Member Functions inherited from shaka::media::WebMParserClient
virtual bool OnString (int id, const std::string &str)
 

Additional Inherited Members

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

Detailed Description

Helper class used to parse a Video element inside a TrackEntry element.

Definition at line 21 of file webm_video_client.h.

Member Function Documentation

std::shared_ptr< VideoStreamInfo > shaka::media::WebMVideoClient::GetVideoStreamInfo ( int64_t  track_num,
const std::string &  codec_id,
bool  is_encrypted 
)

Create a VideoStreamInfo with the data in |track_num|, |codec_id|, |is_encrypted| and the fields parsed from the last video track element this object was used to parse.

Returns
A VideoStreamInfo if successful.
An empty pointer if there was unexpected values in the provided parameters or video track element fields.

Definition at line 56 of file webm_video_client.cc.

const VPCodecConfigurationRecord & shaka::media::WebMVideoClient::GetVpCodecConfig ( const std::vector< uint8_t > &  codec_private)

Extracts VPCodecConfigurationRecord parsed from codec private data and Colour element.

Definition at line 122 of file webm_video_client.cc.


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