Shaka Packager SDK
Loading...
Searching...
No Matches
muxer_util.h
1// Copyright 2014 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// Muxer utility functions.
8
9#ifndef PACKAGER_MEDIA_BASE_MUXER_UTIL_H_
10#define PACKAGER_MEDIA_BASE_MUXER_UTIL_H_
11
12#include <cstdint>
13#include <string>
14
15#include <packager/status.h>
16
17namespace shaka {
18namespace media {
19
20class StreamInfo;
21
26// ISO/IEC 23009-1:2012 5.3.9.4.4.
27Status ValidateSegmentTemplate(const std::string& segment_template);
28
36std::string GetSegmentName(const std::string& segment_template,
37 int64_t segment_start_time,
38 uint32_t segment_number,
39 uint32_t bandwidth);
40
41} // namespace media
42} // namespace shaka
43
44#endif // PACKAGER_MEDIA_BASE_MUXER_UTIL_H_
All the methods that are virtual are virtual for mocking.