12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef RTC_BASE_TIMESTAMP_ALIGNER_H_
- #define RTC_BASE_TIMESTAMP_ALIGNER_H_
- #include <stdint.h>
- #include "rtc_base/constructor_magic.h"
- #include "rtc_base/system/rtc_export.h"
- namespace rtc {
- class RTC_EXPORT TimestampAligner {
- public:
- TimestampAligner();
- ~TimestampAligner();
- public:
-
-
-
-
-
-
-
- int64_t TranslateTimestamp(int64_t capturer_time_us, int64_t system_time_us);
-
-
-
- int64_t TranslateTimestamp(int64_t capturer_time_us) const;
- protected:
-
-
- int64_t UpdateOffset(int64_t capturer_time_us, int64_t system_time_us);
-
-
-
-
- int64_t ClipTimestamp(int64_t filtered_time_us, int64_t system_time_us);
- private:
-
- int frames_seen_;
-
- int64_t offset_us_;
-
-
-
-
- int64_t clip_bias_us_;
-
- int64_t prev_translated_time_us_;
-
-
- int64_t prev_time_offset_us_;
- RTC_DISALLOW_COPY_AND_ASSIGN(TimestampAligner);
- };
- }
- #endif
|