7 #ifndef MEDIA_BASE_VIDEO_STREAM_INFO_H_
8 #define MEDIA_BASE_VIDEO_STREAM_INFO_H_
10 #include "packager/media/base/stream_info.h"
22 Codec codec,
const std::string& codec_string,
23 const uint8_t* codec_config,
size_t codec_config_size,
24 uint16_t width, uint16_t height, uint32_t
pixel_width,
26 uint8_t nalu_length_size,
const std::string& language,
32 std::string
ToString()
const override;
35 uint16_t width()
const {
return width_; }
36 uint16_t height()
const {
return height_; }
43 uint8_t nalu_length_size()
const {
return nalu_length_size_; }
44 int16_t trick_play_rate()
const {
return trick_play_rate_; }
46 void set_width(uint32_t width) { width_ = width; }
47 void set_height(uint32_t height) { height_ = height; }
48 void set_pixel_width(uint32_t pixel_width) { pixel_width_ =
pixel_width; }
49 void set_pixel_height(uint32_t pixel_height) { pixel_height_ =
pixel_height; }
59 uint32_t pixel_width_;
60 uint32_t pixel_height_;
61 int16_t trick_play_rate_;
66 uint8_t nalu_length_size_;
76 #endif // MEDIA_BASE_VIDEO_STREAM_INFO_H_