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/rtp_packet_history.h" | 11 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_history.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 #include <stdlib.h> | 14 #include <stdlib.h> |
15 #include <string.h> // memset | 15 #include <string.h> // memset |
16 #include <limits> | 16 #include <limits> |
17 #include <set> | 17 #include <set> |
18 | 18 |
19 #include "webrtc/base/checks.h" | 19 #include "webrtc/base/checks.h" |
20 #include "webrtc/base/logging.h" | 20 #include "webrtc/base/logging.h" |
21 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" | 21 #include "webrtc/modules/rtp_rtcp/source/rtp_utility.h" |
22 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 22 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
23 | 23 |
24 namespace webrtc { | 24 namespace webrtc { |
25 | 25 |
26 static const int kMinPacketRequestBytes = 50; | 26 static const int kMinPacketRequestBytes = 50; |
27 | 27 |
28 RTPPacketHistory::RTPPacketHistory(Clock* clock) | 28 RTPPacketHistory::RTPPacketHistory(Clock* clock) |
29 : clock_(clock), | 29 : clock_(clock), |
30 critsect_(CriticalSectionWrapper::CreateCriticalSection()), | 30 critsect_(CriticalSectionWrapper::CreateCriticalSection()), |
31 store_(false), | 31 store_(false), |
32 prev_index_(0) {} | 32 prev_index_(0) {} |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 min_diff = diff; | 290 min_diff = diff; |
291 best_index = static_cast<int>(i); | 291 best_index = static_cast<int>(i); |
292 } | 292 } |
293 } | 293 } |
294 return best_index; | 294 return best_index; |
295 } | 295 } |
296 | 296 |
297 RTPPacketHistory::StoredPacket::StoredPacket() {} | 297 RTPPacketHistory::StoredPacket::StoredPacket() {} |
298 | 298 |
299 } // namespace webrtc | 299 } // namespace webrtc |
OLD | NEW |