DASH Media Packaging SDK
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerator
media
base
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
edash_packager {
15
namespace
media {
16
17
class
TextStreamInfo
:
public
StreamInfo
{
18
public
:
30
TextStreamInfo
(
int
track_id,
31
uint32_t time_scale,
32
uint64_t duration,
33
const
std::string& codec_string,
34
const
std::string& language,
35
const
std::string& extra_data,
36
uint16_t width,
37
uint16_t height);
38
39
bool
IsValidConfig
()
const override
;
40
41
uint16_t width()
const
{
return
width_; }
42
uint16_t height()
const
{
return
height_; }
43
44
protected
:
45
~
TextStreamInfo
()
override
;
46
47
private
:
48
uint16_t width_;
49
uint16_t height_;
50
51
// Allow copying. This is very light weight.
52
};
53
54
}
// namespace media
55
}
// namespace edash_packager
56
57
#endif // PACKAGER_MEDIA_BASE_TEXT_STREAM_INFO_H_
edash_packager::media::TextStreamInfo::IsValidConfig
bool IsValidConfig() const override
Definition:
text_stream_info.cc:34
edash_packager::media::StreamInfo
Abstract class holds stream information.
Definition:
stream_info.h:26
edash_packager::media::TextStreamInfo
Definition:
text_stream_info.h:17
edash_packager::media::TextStreamInfo::TextStreamInfo
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)
Definition:
text_stream_info.cc:12
Generated on Tue Jan 5 2016 23:58:06 for DASH Media Packaging SDK by
1.8.6