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  bool IsValidConfig() const override;
36 
37  uint16_t width() const { return width_; }
38  uint16_t height() const { return height_; }
39 
40  protected:
41  ~TextStreamInfo() override;
42 
43  private:
44  uint16_t width_;
45  uint16_t height_;
46 
47  // Allow copying. This is very light weight.
48 };
49 
50 } // namespace media
51 } // namespace shaka
52 
53 #endif // PACKAGER_MEDIA_BASE_TEXT_STREAM_INFO_H_
Abstract class holds stream information.
Definition: stream_info.h:53
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