Shaka Packager SDK
Loading...
Searching...
No Matches
packager
media
formats
webm
two_pass_single_segment_segmenter.h
1
// Copyright 2015 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_WEBM_TWO_PASS_SINGLE_SEGMENT_SEGMENTER_H_
8
#define PACKAGER_MEDIA_FORMATS_WEBM_TWO_PASS_SINGLE_SEGMENT_SEGMENTER_H_
9
10
#include <cstdint>
11
#include <memory>
12
#include <string>
13
14
#include <packager/macros/classes.h>
15
#include <packager/media/formats/webm/mkv_writer.h>
16
#include <packager/media/formats/webm/single_segment_segmenter.h>
17
#include <packager/status.h>
18
19
namespace
shaka
{
20
namespace
media {
21
22
struct
MuxerOptions;
23
24
namespace
webm {
25
28
class
TwoPassSingleSegmentSegmenter
:
public
SingleSegmentSegmenter
{
29
public
:
30
explicit
TwoPassSingleSegmentSegmenter
(
const
MuxerOptions
& options);
31
~TwoPassSingleSegmentSegmenter
()
override
;
32
33
// Segmenter implementation overrides.
34
Status DoInitialize()
override
;
35
Status DoFinalize()
override
;
36
37
private
:
42
bool
CopyFileWithClusterRewrite(File* source,
43
MkvWriter
* dest,
44
uint64_t last_size);
45
46
std::string temp_file_name_;
47
48
DISALLOW_COPY_AND_ASSIGN(
TwoPassSingleSegmentSegmenter
);
49
};
50
51
}
// namespace webm
52
}
// namespace media
53
}
// namespace shaka
54
55
#endif
// PACKAGER_MEDIA_FORMATS_WEBM_TWO_PASS_SINGLE_SEGMENT_SEGMENTER_H_
shaka::media::MkvWriter
An implementation of IMkvWriter using our File type.
Definition
mkv_writer.h:23
shaka::media::webm::SingleSegmentSegmenter
Definition
single_segment_segmenter.h:28
shaka::media::webm::TwoPassSingleSegmentSegmenter
Definition
two_pass_single_segment_segmenter.h:28
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