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  Codec codec,
15  const std::string& codec_string,
16  const std::string& codec_config, uint16_t width,
17  uint16_t height, const std::string& language)
18  : StreamInfo(kStreamText, track_id, time_scale, duration, codec,
19  codec_string,
20  reinterpret_cast<const uint8_t*>(codec_config.data()),
21  codec_config.size(), language, false),
22  width_(width),
23  height_(height) {}
24 
25 TextStreamInfo::~TextStreamInfo() {}
26 
28  return true;
29 }
30 
31 } // namespace media
32 } // namespace shaka
Abstract class holds stream information.
Definition: stream_info.h:60
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