| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 uint32_t ntp_frac, | 34 uint32_t ntp_frac, |
| 35 uint32_t rtp_timestamp, | 35 uint32_t rtp_timestamp, |
| 36 RtcpList* rtcp_list, | 36 RtcpList* rtcp_list, |
| 37 bool* new_rtcp_sr); | 37 bool* new_rtcp_sr); |
| 38 | 38 |
| 39 // Converts an RTP timestamp to the NTP domain in milliseconds using two | 39 // Converts an RTP timestamp to the NTP domain in milliseconds using two |
| 40 // (RTP timestamp, NTP timestamp) pairs. | 40 // (RTP timestamp, NTP timestamp) pairs. |
| 41 bool RtpToNtpMs(int64_t rtp_timestamp, const RtcpList& rtcp, | 41 bool RtpToNtpMs(int64_t rtp_timestamp, const RtcpList& rtcp, |
| 42 int64_t* timestamp_in_ms); | 42 int64_t* timestamp_in_ms); |
| 43 | 43 |
| 44 // Same as above and returns the frequency used in the conversion. |
| 45 bool RtpToNtpMsAndReturnFreq(int64_t rtp_timestamp, |
| 46 const RtcpList& rtcp, |
| 47 int64_t* timestamp_in_ms, |
| 48 double* estimated_frequency_khz); |
| 49 |
| 44 // Returns 1 there has been a forward wrap around, 0 if there has been no wrap | 50 // Returns 1 there has been a forward wrap around, 0 if there has been no wrap |
| 45 // around and -1 if there has been a backwards wrap around (i.e. reordering). | 51 // around and -1 if there has been a backwards wrap around (i.e. reordering). |
| 46 int CheckForWrapArounds(uint32_t rtp_timestamp, uint32_t rtcp_rtp_timestamp); | 52 int CheckForWrapArounds(uint32_t rtp_timestamp, uint32_t rtcp_rtp_timestamp); |
| 47 | 53 |
| 48 } // namespace webrtc | 54 } // namespace webrtc |
| 49 | 55 |
| 50 #endif // SYSTEM_WRAPPERS_INCLUDE_RTP_TO_NTP_H_ | 56 #endif // SYSTEM_WRAPPERS_INCLUDE_RTP_TO_NTP_H_ |
| OLD | NEW |