Shaka Packager SDK
packager
media
formats
ttml
ttml_muxer.h
1
// Copyright 2020 Google LLC. 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_FORMATS_TTML_TTML_MUXER_H_
8
#define PACKAGER_MEDIA_FORMATS_TTML_TTML_MUXER_H_
9
10
#include "packager/media/base/text_muxer.h"
11
#include "packager/media/formats/ttml/ttml_generator.h"
12
13
namespace
shaka
{
14
namespace
media {
15
namespace
ttml {
16
17
class
TtmlMuxer
:
public
TextMuxer
{
18
public
:
19
explicit
TtmlMuxer
(
const
MuxerOptions
& options);
20
~
TtmlMuxer
()
override
;
21
22
private
:
23
Status
InitializeStream(
TextStreamInfo
* stream)
override
;
24
Status
AddTextSampleInternal(
const
TextSample
& sample)
override
;
25
Status
WriteToFile(
const
std::string& filename, uint64_t* size)
override
;
26
27
TtmlGenerator
generator_;
28
};
29
30
}
// namespace ttml
31
}
// namespace media
32
}
// namespace shaka
33
34
#endif
// PACKAGER_MEDIA_FORMATS_TTML_TTML_MUXER_H_
shaka::Status
Definition:
status.h:110
shaka::media::TextMuxer
Definition:
text_muxer.h:20
shaka::media::TextSample
Definition:
text_sample.h:115
shaka::media::TextStreamInfo
Definition:
text_stream_info.h:49
shaka::media::ttml::TtmlGenerator
Definition:
ttml_generator.h:22
shaka::media::ttml::TtmlMuxer
Definition:
ttml_muxer.h:17
shaka
All the methods that are virtual are virtual for mocking.
Definition:
gflags_hex_bytes.cc:11
shaka::media::MuxerOptions
This structure contains the list of configuration options for Muxer.
Definition:
muxer_options.h:20
Generated on Fri Apr 9 2021 21:00:12 for Shaka Packager SDK by
1.9.1