Function gstreamer_rtp::functions::rtcp_unix_to_ntp

source ·
pub fn rtcp_unix_to_ntp(unixtime: u64) -> u64
Expand description

Converts a UNIX timestamp in nanoseconds to an NTP time. The caller should pass a value with nanoseconds since 1970. The NTP time will, in the upper 32 bits, contain the number of seconds since 1900 and, in the lower 32 bits, the fractional seconds. The resulting value can be used as an ntptime for constructing SR RTCP packets.

§unixtime

an UNIX timestamp in nanoseconds

§Returns

the NTP time for unixtime.