DASH Media Packaging SDK
|
Holds video stream information. More...
#include <video_stream_info.h>
Public Member Functions | |
VideoStreamInfo (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, uint16_t width, uint16_t height, uint32_t pixel_width, uint32_t pixel_height, int16_t trick_play_rate, uint8_t nalu_length_size, const std::string &language, bool is_encrypted) | |
uint16_t | width () const |
uint16_t | height () const |
uint32_t | pixel_width () const |
uint32_t | pixel_height () const |
uint8_t | nalu_length_size () const |
int16_t | trick_play_rate () const |
const std::vector< uint8_t > & | eme_init_data () const |
void | set_width (uint32_t width) |
void | set_height (uint32_t height) |
void | set_pixel_width (uint32_t pixel_width) |
void | set_pixel_height (uint32_t pixel_height) |
void | set_eme_init_data (const uint8_t *eme_init_data, size_t eme_init_data_size) |
StreamInfo implementation overrides. | |
bool | IsValidConfig () const override |
std::string | ToString () const override |
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) | |
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) |
Holds video stream information.
Definition at line 16 of file video_stream_info.h.
shaka::media::VideoStreamInfo::VideoStreamInfo | ( | 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, | ||
uint16_t | width, | ||
uint16_t | height, | ||
uint32_t | pixel_width, | ||
uint32_t | pixel_height, | ||
int16_t | trick_play_rate, | ||
uint8_t | nalu_length_size, | ||
const std::string & | language, | ||
bool | is_encrypted | ||
) |
Construct an initialized video stream info object.
pixel_width | is the width of the pixel. 0 if unknown. |
pixel_height | is the height of the pixels. 0 if unknown. |
Definition at line 49 of file video_stream_info.cc.
|
overridevirtual |
Implements shaka::media::StreamInfo.
Definition at line 67 of file video_stream_info.cc.
|
inline |
|
inline |
|
overridevirtual |
Reimplemented from shaka::media::StreamInfo.
Definition at line 74 of file video_stream_info.cc.