Shaka Packager SDK
Loading...
Searching...
No Matches
mp2t_common.h
1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef PACKAGER_MEDIA_FORMATS_MP2T_MP2T_COMMON_H_
6#define PACKAGER_MEDIA_FORMATS_MP2T_MP2T_COMMON_H_
7
8#include <cstdint>
9
10#include <absl/log/log.h>
11
12#define LOG_LEVEL_TS 5
13#define LOG_LEVEL_PES 4
14#define LOG_LEVEL_ES 3
15
16#define RCHECK(x) \
17 do { \
18 if (!(x)) { \
19 DLOG(WARNING) << "Failure while parsing Mpeg2TS: " << #x; \
20 return false; \
21 } \
22 } while (0)
23
24namespace shaka {
25namespace media {
26
27const int32_t kMpeg2Timescale = 90000;
28
29} // namespace media
30} // namespace shaka
31
32#endif // PACKAGER_MEDIA_FORMATS_MP2T_MP2T_COMMON_H_
All the methods that are virtual are virtual for mocking.