| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 */ |
| 11 | 11 |
| 12 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_DLRR_H_ | 12 #ifndef WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_DLRR_H_ |
| 13 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_DLRR_H_ | 13 #define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_DLRR_H_ |
| 14 | 14 |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "webrtc/rtc_base/basictypes.h" | 17 #include "webrtc/base/basictypes.h" |
| 18 | 18 |
| 19 namespace webrtc { | 19 namespace webrtc { |
| 20 namespace rtcp { | 20 namespace rtcp { |
| 21 struct ReceiveTimeInfo { | 21 struct ReceiveTimeInfo { |
| 22 // RFC 3611 4.5 | 22 // RFC 3611 4.5 |
| 23 ReceiveTimeInfo() : ssrc(0), last_rr(0), delay_since_last_rr(0) {} | 23 ReceiveTimeInfo() : ssrc(0), last_rr(0), delay_since_last_rr(0) {} |
| 24 ReceiveTimeInfo(uint32_t ssrc, uint32_t last_rr, uint32_t delay) | 24 ReceiveTimeInfo(uint32_t ssrc, uint32_t last_rr, uint32_t delay) |
| 25 : ssrc(ssrc), last_rr(last_rr), delay_since_last_rr(delay) {} | 25 : ssrc(ssrc), last_rr(last_rr), delay_since_last_rr(delay) {} |
| 26 uint32_t ssrc; | 26 uint32_t ssrc; |
| 27 uint32_t last_rr; | 27 uint32_t last_rr; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 static const size_t kBlockHeaderLength = 4; | 62 static const size_t kBlockHeaderLength = 4; |
| 63 static const size_t kSubBlockLength = 12; | 63 static const size_t kSubBlockLength = 12; |
| 64 | 64 |
| 65 std::vector<ReceiveTimeInfo> sub_blocks_; | 65 std::vector<ReceiveTimeInfo> sub_blocks_; |
| 66 }; | 66 }; |
| 67 } // namespace rtcp | 67 } // namespace rtcp |
| 68 } // namespace webrtc | 68 } // namespace webrtc |
| 69 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_DLRR_H_ | 69 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_PACKET_DLRR_H_ |
| OLD | NEW |