7 #ifndef MEDIA_BASE_VIDEO_STREAM_INFO_H_
8 #define MEDIA_BASE_VIDEO_STREAM_INFO_H_
10 #include "packager/media/base/stream_info.h"
12 namespace edash_packager {
16 kUnknownVideoCodec = 0,
40 const std::string& codec_string,
41 const std::string& language,
46 int16_t trick_play_rate,
47 uint8_t nalu_length_size,
48 const uint8_t* extra_data,
49 size_t extra_data_size,
55 virtual std::string
ToString()
const OVERRIDE;
58 VideoCodec codec()
const {
return codec_; }
59 uint16_t width()
const {
return width_; }
60 uint16_t height()
const {
return height_; }
67 uint8_t nalu_length_size()
const {
return nalu_length_size_; }
68 int16_t trick_play_rate()
const {
return trick_play_rate_; }
70 void set_width(uint32_t width) { width_ = width; }
71 void set_height(uint32_t height) { height_ = height; }
72 void set_pixel_width(uint32_t pixel_width) { pixel_width_ =
pixel_width; }
73 void set_pixel_height(uint32_t pixel_height) { pixel_height_ =
pixel_height; }
79 uint8_t compatible_profiles,
91 uint32_t pixel_width_;
92 uint32_t pixel_height_;
93 int16_t trick_play_rate_;
98 uint8_t nalu_length_size_;
108 #endif // MEDIA_BASE_VIDEO_STREAM_INFO_H_