7#ifndef PACKAGER_MEDIA_BASE_TIMESTAMP_UTIL_H_
8#define PACKAGER_MEDIA_BASE_TIMESTAMP_UTIL_H_
16constexpr int64_t kPtsWrapAround =
18constexpr int64_t kPtsHalfWrapAround =
38int64_t SignedPtsDiff(int64_t a, int64_t b);
46bool PtsIsBefore(int64_t a, int64_t b);
54bool PtsIsBeforeOrEqual(int64_t a, int64_t b);
78 int64_t
Unwrap(int64_t wrapped_pts);
88 bool initialized_ =
false;
89 int64_t last_wrapped_ = 0;
90 int64_t unwrapped_offset_ = 0;
All the methods that are virtual are virtual for mocking.