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 |
11 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtcp_receiver.h" |
12 | 12 |
13 #include <string.h> | 13 #include <string.h> |
14 | 14 |
15 #include <limits> | 15 #include <limits> |
16 #include <map> | 16 #include <map> |
17 #include <memory> | 17 #include <memory> |
18 #include <utility> | 18 #include <utility> |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "webrtc/base/checks.h" | |
22 #include "webrtc/base/logging.h" | |
23 #include "webrtc/base/trace_event.h" | |
24 #include "webrtc/common_types.h" | 21 #include "webrtc/common_types.h" |
25 #include "webrtc/common_video/include/video_bitrate_allocator.h" | 22 #include "webrtc/common_video/include/video_bitrate_allocator.h" |
26 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" | 23 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/bye.h" |
27 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h" | 24 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/common_header.h" |
28 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/compound_packet.h" |
29 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/extended_reports.h" |
30 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/fir.h" | 27 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/fir.h" |
31 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/nack.h" | 28 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/nack.h" |
32 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/pli.h" | 29 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/pli.h" |
33 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/rapid_resync_request.h" | 30 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/rapid_resync_request.h" |
34 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.h" | 31 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.h" |
35 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/remb.h" | 32 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/remb.h" |
36 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/sdes.h" | 33 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/sdes.h" |
37 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.h" | 34 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.h" |
38 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.h" | 35 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbn.h" |
39 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbr.h" | 36 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/tmmbr.h" |
40 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" | 37 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/transport_feedback.h" |
41 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h" | 38 #include "webrtc/modules/rtp_rtcp/source/rtp_rtcp_config.h" |
42 #include "webrtc/modules/rtp_rtcp/source/time_util.h" | 39 #include "webrtc/modules/rtp_rtcp/source/time_util.h" |
43 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" | 40 #include "webrtc/modules/rtp_rtcp/source/tmmbr_help.h" |
| 41 #include "webrtc/rtc_base/checks.h" |
| 42 #include "webrtc/rtc_base/logging.h" |
| 43 #include "webrtc/rtc_base/trace_event.h" |
44 #include "webrtc/system_wrappers/include/ntp_time.h" | 44 #include "webrtc/system_wrappers/include/ntp_time.h" |
45 | 45 |
46 namespace webrtc { | 46 namespace webrtc { |
47 namespace { | 47 namespace { |
48 | 48 |
49 using rtcp::CommonHeader; | 49 using rtcp::CommonHeader; |
50 using rtcp::ReportBlock; | 50 using rtcp::ReportBlock; |
51 | 51 |
52 // The number of RTCP time intervals needed to trigger a timeout. | 52 // The number of RTCP time intervals needed to trigger a timeout. |
53 const int kRrTimeoutIntervals = 3; | 53 const int kRrTimeoutIntervals = 3; |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 } else { | 1049 } else { |
1050 candidates.push_back(it->second.tmmbr_item); | 1050 candidates.push_back(it->second.tmmbr_item); |
1051 ++it; | 1051 ++it; |
1052 } | 1052 } |
1053 } | 1053 } |
1054 } | 1054 } |
1055 return candidates; | 1055 return candidates; |
1056 } | 1056 } |
1057 | 1057 |
1058 } // namespace webrtc | 1058 } // namespace webrtc |
OLD | NEW |