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 */ |
(...skipping 15 matching lines...) Expand all Loading... |
26 uint32_t ssrc; | 26 uint32_t ssrc; |
27 uint32_t last_rr; | 27 uint32_t last_rr; |
28 uint32_t delay_since_last_rr; | 28 uint32_t delay_since_last_rr; |
29 }; | 29 }; |
30 | 30 |
31 // DLRR Report Block: Delay since the Last Receiver Report (RFC 3611). | 31 // DLRR Report Block: Delay since the Last Receiver Report (RFC 3611). |
32 class Dlrr { | 32 class Dlrr { |
33 public: | 33 public: |
34 static const uint8_t kBlockType = 5; | 34 static const uint8_t kBlockType = 5; |
35 | 35 |
36 Dlrr() {} | 36 Dlrr(); |
37 Dlrr(const Dlrr& other) = default; | 37 Dlrr(const Dlrr& other); |
38 ~Dlrr() {} | 38 ~Dlrr(); |
39 | 39 |
40 Dlrr& operator=(const Dlrr& other) = default; | 40 Dlrr& operator=(const Dlrr& other) = default; |
41 | 41 |
42 // Dlrr without items treated same as no dlrr block. | 42 // Dlrr without items treated same as no dlrr block. |
43 explicit operator bool() const { return !sub_blocks_.empty(); } | 43 explicit operator bool() const { return !sub_blocks_.empty(); } |
44 | 44 |
45 // Second parameter is value read from block header, | 45 // Second parameter is value read from block header, |
46 // i.e. size of block in 32bits excluding block header itself. | 46 // i.e. size of block in 32bits excluding block header itself. |
47 bool Parse(const uint8_t* buffer, uint16_t block_length_32bits); | 47 bool Parse(const uint8_t* buffer, uint16_t block_length_32bits); |
48 | 48 |
(...skipping 11 matching lines...) Expand all 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 |