Shaka Packager SDK
Loading...
Searching...
No Matches
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 <cstdint>
11
12
#include <packager/media/base/text_muxer.h>
13
#include <packager/media/formats/ttml/ttml_generator.h>
14
15
namespace
shaka
{
16
namespace
media {
17
namespace
ttml {
18
19
class
TtmlMuxer
:
public
TextMuxer
{
20
public
:
21
explicit
TtmlMuxer
(
const
MuxerOptions
& options);
22
~TtmlMuxer
()
override
;
23
24
private
:
25
Status InitializeStream(
TextStreamInfo
* stream)
override
;
26
Status AddTextSampleInternal(
const
TextSample
& sample)
override
;
27
Status WriteToFile(
const
std::string& filename, uint64_t* size)
override
;
28
29
TtmlGenerator
generator_;
30
};
31
32
}
// namespace ttml
33
}
// namespace media
34
}
// namespace shaka
35
36
#endif
// PACKAGER_MEDIA_FORMATS_TTML_TTML_MUXER_H_
shaka::media::TextMuxer
Definition
text_muxer.h:22
shaka::media::TextSample
Definition
text_sample.h:118
shaka::media::TextStreamInfo
Definition
text_stream_info.h:50
shaka::media::ttml::TtmlGenerator
Definition
ttml_generator.h:24
shaka::media::ttml::TtmlMuxer
Definition
ttml_muxer.h:19
shaka
All the methods that are virtual are virtual for mocking.
Definition
crypto_flags.cc:70
shaka::media::MuxerOptions
This structure contains the list of configuration options for Muxer.
Definition
muxer_options.h:19
Generated on Thu Mar 5 2026 03:54:55 for Shaka Packager SDK by
1.9.8