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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.cc

Issue 2629563003: Added a new echo likelihood stat that reports the maximum value from a previous time period. (Closed)
Patch Set: Small bugfix. Created 3 years, 11 months 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) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 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 2597 matching lines...) Expand 10 before | Expand all | Expand 10 after
2608 sinfo.ext_seqnum = stats.ext_seqnum; 2608 sinfo.ext_seqnum = stats.ext_seqnum;
2609 sinfo.jitter_ms = stats.jitter_ms; 2609 sinfo.jitter_ms = stats.jitter_ms;
2610 sinfo.rtt_ms = stats.rtt_ms; 2610 sinfo.rtt_ms = stats.rtt_ms;
2611 sinfo.audio_level = stats.audio_level; 2611 sinfo.audio_level = stats.audio_level;
2612 sinfo.aec_quality_min = stats.aec_quality_min; 2612 sinfo.aec_quality_min = stats.aec_quality_min;
2613 sinfo.echo_delay_median_ms = stats.echo_delay_median_ms; 2613 sinfo.echo_delay_median_ms = stats.echo_delay_median_ms;
2614 sinfo.echo_delay_std_ms = stats.echo_delay_std_ms; 2614 sinfo.echo_delay_std_ms = stats.echo_delay_std_ms;
2615 sinfo.echo_return_loss = stats.echo_return_loss; 2615 sinfo.echo_return_loss = stats.echo_return_loss;
2616 sinfo.echo_return_loss_enhancement = stats.echo_return_loss_enhancement; 2616 sinfo.echo_return_loss_enhancement = stats.echo_return_loss_enhancement;
2617 sinfo.residual_echo_likelihood = stats.residual_echo_likelihood; 2617 sinfo.residual_echo_likelihood = stats.residual_echo_likelihood;
2618 sinfo.residual_echo_likelihood_recent_max =
2619 stats.residual_echo_likelihood_recent_max;
2618 sinfo.typing_noise_detected = (send_ ? stats.typing_noise_detected : false); 2620 sinfo.typing_noise_detected = (send_ ? stats.typing_noise_detected : false);
2619 info->senders.push_back(sinfo); 2621 info->senders.push_back(sinfo);
2620 } 2622 }
2621 2623
2622 // Get SSRC and stats for each receiver. 2624 // Get SSRC and stats for each receiver.
2623 RTC_DCHECK_EQ(info->receivers.size(), 0U); 2625 RTC_DCHECK_EQ(info->receivers.size(), 0U);
2624 for (const auto& stream : recv_streams_) { 2626 for (const auto& stream : recv_streams_) {
2625 webrtc::AudioReceiveStream::Stats stats = stream.second->GetStats(); 2627 webrtc::AudioReceiveStream::Stats stats = stream.second->GetStats();
2626 VoiceReceiverInfo rinfo; 2628 VoiceReceiverInfo rinfo;
2627 rinfo.add_ssrc(stats.remote_ssrc); 2629 rinfo.add_ssrc(stats.remote_ssrc);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
2711 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 2713 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
2712 const auto it = send_streams_.find(ssrc); 2714 const auto it = send_streams_.find(ssrc);
2713 if (it != send_streams_.end()) { 2715 if (it != send_streams_.end()) {
2714 return it->second->channel(); 2716 return it->second->channel();
2715 } 2717 }
2716 return -1; 2718 return -1;
2717 } 2719 }
2718 } // namespace cricket 2720 } // namespace cricket
2719 2721
2720 #endif // HAVE_WEBRTC_VOICE 2722 #endif // HAVE_WEBRTC_VOICE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698