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:
31  TextStreamInfo(int track_id, uint32_t time_scale, uint64_t duration,
32  Codec codec,
33  const std::string& codec_string,
34  const std::string& codec_config, uint16_t width,
35  uint16_t height, const std::string& language);
36 
37  ~TextStreamInfo() override;
38 
39  bool IsValidConfig() const override;
40 
41  uint16_t width() const { return width_; }
42  uint16_t height() const { return height_; }
43 
44  private:
45  uint16_t width_;
46  uint16_t height_;
47 
48  // Allow copying. This is very light weight.
49 };
50 
51 } // namespace media
52 } // namespace shaka
53 
54 #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, 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