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

Side by Side Diff: webrtc/call/call.cc

Issue 2684243002: Count FlexFEC packets in Call UMA stats. (Closed)
Patch Set: Rebase. Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 // Deliver media packets to FlexFEC subsystem. 1216 // Deliver media packets to FlexFEC subsystem.
1217 auto it_bounds = flexfec_receive_ssrcs_media_.equal_range(ssrc); 1217 auto it_bounds = flexfec_receive_ssrcs_media_.equal_range(ssrc);
1218 for (auto it = it_bounds.first; it != it_bounds.second; ++it) 1218 for (auto it = it_bounds.first; it != it_bounds.second; ++it)
1219 it->second->OnRtpPacket(*parsed_packet); 1219 it->second->OnRtpPacket(*parsed_packet);
1220 1220
1221 event_log_->LogRtpHeader(kIncomingPacket, media_type, packet, length); 1221 event_log_->LogRtpHeader(kIncomingPacket, media_type, packet, length);
1222 return DELIVERY_OK; 1222 return DELIVERY_OK;
1223 } 1223 }
1224 } 1224 }
1225 if (media_type == MediaType::ANY || media_type == MediaType::VIDEO) { 1225 if (media_type == MediaType::ANY || media_type == MediaType::VIDEO) {
1226 received_bytes_per_second_counter_.Add(static_cast<int>(length));
stefan-webrtc 2017/02/21 12:06:37 Should this be a size_t counter?
brandtr 2017/02/22 08:27:59 Maybe? The container only supports int however: ht
1227 // TODO(brandtr): Update here when FlexFEC supports protecting audio.
1228 received_video_bytes_per_second_counter_.Add(static_cast<int>(length));
1226 auto it = flexfec_receive_ssrcs_protection_.find(ssrc); 1229 auto it = flexfec_receive_ssrcs_protection_.find(ssrc);
1227 if (it != flexfec_receive_ssrcs_protection_.end()) { 1230 if (it != flexfec_receive_ssrcs_protection_.end()) {
1228 it->second->OnRtpPacket(*parsed_packet); 1231 it->second->OnRtpPacket(*parsed_packet);
1229 event_log_->LogRtpHeader(kIncomingPacket, media_type, packet, length); 1232 event_log_->LogRtpHeader(kIncomingPacket, media_type, packet, length);
1230 return DELIVERY_OK; 1233 return DELIVERY_OK;
1231 } 1234 }
1232 } 1235 }
1233 return DELIVERY_UNKNOWN_SSRC; 1236 return DELIVERY_UNKNOWN_SSRC;
1234 } 1237 }
1235 1238
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 if (media_type != MediaType::AUDIO || 1288 if (media_type != MediaType::AUDIO ||
1286 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) { 1289 (use_send_side_bwe && header.extension.hasTransportSequenceNumber)) {
1287 congestion_controller_->OnReceivedPacket( 1290 congestion_controller_->OnReceivedPacket(
1288 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(), 1291 packet.arrival_time_ms(), packet.payload_size() + packet.padding_size(),
1289 header); 1292 header);
1290 } 1293 }
1291 } 1294 }
1292 1295
1293 } // namespace internal 1296 } // namespace internal
1294 } // namespace webrtc 1297 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698