Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: webrtc/modules/audio_coding/neteq/rtcp.cc

Issue 1417683006: modules: more interface -> include renames (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix last incorrectly wrapped pragma message Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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/audio_coding/neteq/rtcp.h" 11 #include "webrtc/modules/audio_coding/neteq/rtcp.h"
12 12
13 #include <string.h> 13 #include <string.h>
14 14
15 #include <algorithm> 15 #include <algorithm>
16 16
17 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h" 17 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar y.h"
18 #include "webrtc/modules/interface/module_common_types.h" 18 #include "webrtc/modules/include/module_common_types.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 21
22 void Rtcp::Init(uint16_t start_sequence_number) { 22 void Rtcp::Init(uint16_t start_sequence_number) {
23 cycles_ = 0; 23 cycles_ = 0;
24 max_seq_no_ = start_sequence_number; 24 max_seq_no_ = start_sequence_number;
25 base_seq_no_ = start_sequence_number; 25 base_seq_no_ = start_sequence_number;
26 received_packets_ = 0; 26 received_packets_ = 0;
27 received_packets_prior_ = 0; 27 received_packets_prior_ = 0;
28 expected_prior_ = 0; 28 expected_prior_ = 0;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 if (expected_since_last == 0 || lost <= 0 || received_packets_ == 0) { 87 if (expected_since_last == 0 || lost <= 0 || received_packets_ == 0) {
88 stats->fraction_lost = 0; 88 stats->fraction_lost = 0;
89 } else { 89 } else {
90 stats->fraction_lost = std::min(0xFFU, (lost << 8) / expected_since_last); 90 stats->fraction_lost = std::min(0xFFU, (lost << 8) / expected_since_last);
91 } 91 }
92 92
93 stats->jitter = jitter_ >> 4; // Scaling from Q4. 93 stats->jitter = jitter_ >> 4; // Scaling from Q4.
94 } 94 }
95 95
96 } // namespace webrtc 96 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/packet.h ('k') | webrtc/modules/audio_coding/neteq/test/NETEQTEST_RTPpacket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698