7 #ifndef PACKAGER_MEDIA_BASE_TEXT_STREAM_INFO_H_ 8 #define PACKAGER_MEDIA_BASE_TEXT_STREAM_INFO_H_ 10 #include "packager/media/base/stream_info.h" 31 TextStreamInfo(
int track_id, uint32_t time_scale, uint64_t duration,
33 const std::string& codec_string,
34 const std::string& codec_config, uint16_t width,
35 uint16_t height,
const std::string& language);
41 std::unique_ptr<StreamInfo>
Clone()
const override;
43 uint16_t width()
const {
return width_; }
44 uint16_t height()
const {
return height_; }
56 #endif // PACKAGER_MEDIA_BASE_TEXT_STREAM_INFO_H_
All the methods that are virtual are virtual for mocking.
TextStreamInfo(int track_id, uint32_t time_scale, uint64_t duration, Codec codec, const std::string &codec_string, const std::string &codec_config, uint16_t width, uint16_t height, const std::string &language)
bool IsValidConfig() const override
std::unique_ptr< StreamInfo > Clone() const override