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 edash_packager {
10 namespace media {
11 
13  uint32_t time_scale,
14  uint64_t duration,
15  const std::string& codec_string,
16  const std::string& language,
17  const std::string& extra_data,
18  uint16_t width,
19  uint16_t height)
20  : StreamInfo(kStreamText,
21  track_id,
22  time_scale,
23  duration,
24  codec_string,
25  language,
26  reinterpret_cast<const uint8_t*>(extra_data.data()),
27  extra_data.size(),
28  false),
29  width_(width),
30  height_(height) {}
31 
32 TextStreamInfo::~TextStreamInfo() {}
33 
35  return true;
36 }
37 
38 } // namespace media
39 } // namespace edash_packager
Abstract class holds stream information.
Definition: stream_info.h:26
TextStreamInfo(int track_id, uint32_t time_scale, uint64_t duration, const std::string &codec_string, const std::string &language, const std::string &extra_data, uint16_t width, uint16_t height)