DASH Media Packaging SDK
|
Public Member Functions | |
TextStreamInfo (int track_id, uint32_t time_scale, uint64_t duration, const std::string &codec_string, const std::string &codec_config, uint16_t width, uint16_t height, const std::string &language) | |
bool | IsValidConfig () const override |
uint16_t | width () const |
uint16_t | height () const |
Public Member Functions inherited from shaka::media::StreamInfo | |
StreamInfo (StreamType stream_type, int track_id, uint32_t time_scale, uint64_t duration, Codec codec, const std::string &codec_string, const uint8_t *codec_config, size_t codec_config_size, const std::string &language, bool is_encrypted) | |
virtual std::string | ToString () const |
StreamType | stream_type () const |
uint32_t | track_id () const |
uint32_t | time_scale () const |
uint64_t | duration () const |
Codec | codec () const |
const std::string & | codec_string () const |
const std::vector< uint8_t > & | codec_config () const |
const std::string & | language () const |
bool | is_encrypted () const |
void | set_duration (int duration) |
void | set_codec (Codec codec) |
void | set_codec_config (const std::vector< uint8_t > &data) |
void | set_codec_string (const std::string &codec_string) |
void | set_language (const std::string &language) |
void | set_is_encrypted (bool is_encrypted) |
Definition at line 17 of file text_stream_info.h.
shaka::media::TextStreamInfo::TextStreamInfo | ( | int | track_id, |
uint32_t | time_scale, | ||
uint64_t | duration, | ||
const std::string & | codec_string, | ||
const std::string & | codec_config, | ||
uint16_t | width, | ||
uint16_t | height, | ||
const std::string & | language | ||
) |
No encryption supported.
track_id | is the track ID of this stream. |
time_scale | is the time scale of this stream. |
duration | is the duration of this stream. |
codec_string | is the codec. |
codec_config | is configuration for this text stream. This could be the metadata that applies to all the samples of this stream. This may be empty. |
width | of the text. This may be 0. |
height | of the text. This may be 0. |
language | is the language of this stream. This may be empty. |
Definition at line 12 of file text_stream_info.cc.
|
overridevirtual |
Implements shaka::media::StreamInfo.
Definition at line 26 of file text_stream_info.cc.