Shaka Packager 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, H26xStreamFormat h26x_stream_format, 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, uint8_t transfer_characteristics, uint32_t trick_play_factor, uint8_t nalu_length_size, const std::string &language, bool is_encrypted) | |
const std::vector< uint8_t > & | extra_config () const |
H26xStreamFormat | h26x_stream_format () const |
uint16_t | width () const |
uint16_t | height () const |
uint32_t | pixel_width () const |
uint32_t | pixel_height () const |
uint8_t | transfer_characteristics () const |
uint8_t | nalu_length_size () const |
uint32_t | trick_play_factor () const |
uint32_t | playback_rate () const |
const std::vector< uint8_t > & | eme_init_data () const |
void | set_extra_config (const std::vector< uint8_t > &extra_config) |
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_transfer_characteristics (uint8_t transfer_characteristics) |
void | set_trick_play_factor (uint32_t trick_play_factor) |
void | set_playback_rate (uint32_t playback_rate) |
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 |
std::unique_ptr< StreamInfo > | Clone () 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 |
bool | has_clear_lead () const |
const EncryptionConfig & | encryption_config () const |
void | set_duration (uint64_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) |
Holds video stream information.
Definition at line 23 of file video_stream_info.h.
shaka::media::VideoStreamInfo::VideoStreamInfo | ( | int | track_id, |
uint32_t | time_scale, | ||
uint64_t | duration, | ||
Codec | codec, | ||
H26xStreamFormat | h26x_stream_format, | ||
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, | ||
uint8_t | transfer_characteristics, | ||
uint32_t | trick_play_factor, | ||
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 41 of file video_stream_info.cc.
|
overridevirtual |
Implements shaka::media::StreamInfo.
Definition at line 95 of file video_stream_info.cc.
|
overridevirtual |
Implements shaka::media::StreamInfo.
Definition at line 79 of file video_stream_info.cc.
|
inline |
|
inline |
|
overridevirtual |
Reimplemented from shaka::media::StreamInfo.
Definition at line 86 of file video_stream_info.cc.