Shaka Packager SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
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  std::unique_ptr<StreamInfo> Clone() const override;
42 
43  uint16_t width() const { return width_; }
44  uint16_t height() const { return height_; }
45 
46  private:
47  uint16_t width_;
48  uint16_t height_;
49 
50  // Allow copying. This is very light weight.
51 };
52 
53 } // namespace media
54 } // namespace shaka
55 
56 #endif // PACKAGER_MEDIA_BASE_TEXT_STREAM_INFO_H_
Abstract class holds stream information.
Definition: stream_info.h:58
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