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

Public Member Functions

 TextStreamInfo (int track_id, uint32_t time_scale, uint64_t duration, const std::string &codec_string, const std::string &language, const std::string &codec_config, uint16_t width, uint16_t height)
 
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, const std::string &codec_string, const std::string &language, const uint8_t *codec_config, size_t codec_config_size, 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
 
const std::string & codec_string () const
 
const std::string & language () const
 
bool is_encrypted () const
 
const std::vector< uint8_t > & codec_config () const
 
void set_duration (int duration)
 
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)
 

Detailed Description

Definition at line 17 of file text_stream_info.h.

Constructor & Destructor Documentation

shaka::media::TextStreamInfo::TextStreamInfo ( int  track_id,
uint32_t  time_scale,
uint64_t  duration,
const std::string &  codec_string,
const std::string &  language,
const std::string &  codec_config,
uint16_t  width,
uint16_t  height 
)

No encryption supported.

Parameters
track_idis the track ID of this stream.
time_scaleis the time scale of this stream.
durationis the duration of this stream.
codec_stringis the codec.
languageis the language of this stream. This may be empty.
codec_configis configuration for this text stream. This could be the metadata that applies to all the samples of this stream. This may be empty.
widthof the text. This may be 0.
heightof the text. This may be 0.

Definition at line 12 of file text_stream_info.cc.

Member Function Documentation

bool shaka::media::TextStreamInfo::IsValidConfig ( ) const
overridevirtual
Returns
true if this object has appropriate configuration values, false otherwise.

Implements shaka::media::StreamInfo.

Definition at line 34 of file text_stream_info.cc.


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