webrtc/system_wrappers
Chen Xing 6094953ed1 Add helper functions to convert between integer milliseconds and fixed-point seconds.
This change adds the following helper functions to convert between "integer milliseconds"-style timestamps and durations, and "UQ32.32 and Q32.32"-style NTP timestamps and durations:
- Int64MsToQ32x32
- UInt64MsToUQ32x32
- Q32x32ToInt64Ms
- UQ32x32ToUInt64Ms

The Q-format NTP timestamps and durations are used by some RTP/RTCP packets.

Bug: webrtc:10739
Change-Id: I89123d2dba7370f26e239d722a4975bf5ac6e668
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/148444
Commit-Queue: Chen Xing <chxg@google.com>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28878}
2019-08-16 14:49:46 +00:00
..
include Add helper functions to convert between integer milliseconds and fixed-point seconds. 2019-08-16 14:49:46 +00:00
source Add helper functions to convert between integer milliseconds and fixed-point seconds. 2019-08-16 14:49:46 +00:00
BUILD.gn Sanity-check field trial string at initialization. 2019-06-11 14:11:06 +00:00
DEPS Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
OWNERS Relieve perkj@ of some OWNER duties 2018-10-18 09:41:22 +00:00