DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
text_stream_info.h
1 // Copyright 2015 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #ifndef PACKAGER_MEDIA_BASE_TEXT_STREAM_INFO_H_
8 #define PACKAGER_MEDIA_BASE_TEXT_STREAM_INFO_H_
9 
10 #include "packager/media/base/stream_info.h"
11 
12 #include <string>
13 
14 namespace shaka {
15 namespace media {
16 
17 class TextStreamInfo : public StreamInfo {
18  public:
30  TextStreamInfo(int track_id, uint32_t time_scale, uint64_t duration,
31  const std::string& codec_string,
32  const std::string& codec_config, uint16_t width,
33  uint16_t height, const std::string& language);
34 
35  ~TextStreamInfo() override;
36 
37  bool IsValidConfig() const override;
38 
39  uint16_t width() const { return width_; }
40  uint16_t height() const { return height_; }
41 
42  private:
43  uint16_t width_;
44  uint16_t height_;
45 
46  // Allow copying. This is very light weight.
47 };
48 
49 } // namespace media
50 } // namespace shaka
51 
52 #endif // PACKAGER_MEDIA_BASE_TEXT_STREAM_INFO_H_
Abstract class holds stream information.
Definition: stream_info.h:57
TextStreamInfo(int track_id, uint32_t time_scale, uint64_t duration, const std::string &codec_string, const std::string &codec_config, uint16_t width, uint16_t height, const std::string &language)
bool IsValidConfig() const override