|
| | TextStreamInfo (int track_id, int32_t time_scale, int64_t duration, Codec codec, const std::string &codec_string, const std::string &codec_config, uint16_t width, uint16_t height, const std::string &language) |
| |
| bool | IsValidConfig () const override |
| |
| std::string | ToString () const override |
| |
| std::unique_ptr< StreamInfo > | Clone () const override |
| |
| uint16_t | width () const |
| |
| uint16_t | height () const |
| |
| const std::map< std::string, TextRegion > & | regions () const |
| |
| void | AddRegion (const std::string &id, const TextRegion ®ion) |
| |
| const std::string & | css_styles () const |
| |
| void | set_css_styles (const std::string &styles) |
| |
| void | AddSubStream (uint16_t index, TextSubStreamInfo info) |
| |
| const std::map< uint16_t, TextSubStreamInfo > & | sub_streams () const |
| |
| | StreamInfo (StreamType stream_type, int track_id, int32_t time_scale, int64_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) |
| |
| StreamType | stream_type () const |
| |
| uint32_t | track_id () const |
| |
| int32_t | time_scale () const |
| |
| int64_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 |
| |
| bool | has_clear_lead () const |
| |
| const EncryptionConfig & | encryption_config () const |
| |
| void | set_duration (int64_t 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) |
| |
| void | set_has_clear_lead (bool has_clear_lead) |
| |
| void | set_encryption_config (const EncryptionConfig &encryption_config) |
| |
Definition at line 49 of file text_stream_info.h.
◆ TextStreamInfo()
| shaka::media::TextStreamInfo::TextStreamInfo |
( |
int |
track_id, |
|
|
int32_t |
time_scale, |
|
|
int64_t |
duration, |
|
|
Codec |
codec, |
|
|
const std::string & |
codec_string, |
|
|
const std::string & |
codec_config, |
|
|
uint16_t |
width, |
|
|
uint16_t |
height, |
|
|
const std::string & |
language |
|
) |
| |
No encryption supported.
- Parameters
-
| 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 | is the media codec. |
| codec_string | is the codec in string format. |
| 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 14 of file text_stream_info.cc.
◆ ~TextStreamInfo()
| shaka::media::TextStreamInfo::~TextStreamInfo |
( |
| ) |
|
|
override |
◆ AddRegion()
| void shaka::media::TextStreamInfo::AddRegion |
( |
const std::string & |
id, |
|
|
const TextRegion & |
region |
|
) |
| |
|
inline |
◆ AddSubStream()
| void shaka::media::TextStreamInfo::AddSubStream |
( |
uint16_t |
index, |
|
|
TextSubStreamInfo |
info |
|
) |
| |
|
inline |
◆ Clone()
| std::unique_ptr< StreamInfo > shaka::media::TextStreamInfo::Clone |
( |
| ) |
const |
|
overridevirtual |
- Returns
- A new copy of this stream info. The copy will be of the same type as the original. This should be used when a copy is needed without explicitly knowing the stream info type.
Implements shaka::media::StreamInfo.
Definition at line 54 of file text_stream_info.cc.
◆ css_styles()
| const std::string & shaka::media::TextStreamInfo::css_styles |
( |
| ) |
const |
|
inline |
◆ height()
| uint16_t shaka::media::TextStreamInfo::height |
( |
| ) |
const |
|
inline |
◆ IsValidConfig()
| bool shaka::media::TextStreamInfo::IsValidConfig |
( |
| ) |
const |
|
overridevirtual |
◆ regions()
| const std::map< std::string, TextRegion > & shaka::media::TextStreamInfo::regions |
( |
| ) |
const |
|
inline |
◆ set_css_styles()
| void shaka::media::TextStreamInfo::set_css_styles |
( |
const std::string & |
styles | ) |
|
|
inline |
◆ sub_streams()
| const std::map< uint16_t, TextSubStreamInfo > & shaka::media::TextStreamInfo::sub_streams |
( |
| ) |
const |
|
inline |
◆ ToString()
| std::string shaka::media::TextStreamInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
◆ width()
| uint16_t shaka::media::TextStreamInfo::width |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: