DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
text_stream_info.cc
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 #include "packager/media/base/text_stream_info.h"
8 
9 namespace shaka {
10 namespace media {
11 
12 TextStreamInfo::TextStreamInfo(int track_id, uint32_t time_scale,
13  uint64_t duration,
14  const std::string& codec_string,
15  const std::string& codec_config, uint16_t width,
16  uint16_t height, const std::string& language)
17  : StreamInfo(kStreamText, track_id, time_scale, duration, kCodecText,
18  codec_string,
19  reinterpret_cast<const uint8_t*>(codec_config.data()),
20  codec_config.size(), language, false),
21  width_(width),
22  height_(height) {}
23 
24 TextStreamInfo::~TextStreamInfo() {}
25 
27  return true;
28 }
29 
30 } // namespace media
31 } // namespace shaka
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