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

Side by Side Diff: webrtc/modules/rtp_rtcp/interface/rtp_rtcp_defines.h

Issue 1198853004: Add statistics gathering for packet loss. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Another hopeful Mac build fix Created 5 years, 5 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) 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
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 class NullRtpAudioFeedback : public RtpAudioFeedback { 347 class NullRtpAudioFeedback : public RtpAudioFeedback {
348 public: 348 public:
349 virtual ~NullRtpAudioFeedback() {} 349 virtual ~NullRtpAudioFeedback() {}
350 350
351 void OnPlayTelephoneEvent(const int32_t id, 351 void OnPlayTelephoneEvent(const int32_t id,
352 const uint8_t event, 352 const uint8_t event,
353 const uint16_t lengthMs, 353 const uint16_t lengthMs,
354 const uint8_t volume) override {} 354 const uint8_t volume) override {}
355 }; 355 };
356 356
357 // Statistics about packet loss for a single directional connection. All values
358 // are totals since the connection initiated.
359 struct RtpPacketLossStats {
360 // The number of packets lost in events where no adjacent packets were also
361 // lost.
362 uint64_t single_packet_loss_count;
363 // The number of events in which more than one adjacent packet was lost.
364 uint64_t multiple_packet_loss_event_count;
365 // The number of packets lost in events where more than one adjacent packet
366 // was lost.
367 uint64_t multiple_packet_loss_packet_count;
368 };
369
357 } // namespace webrtc 370 } // namespace webrtc
358 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_ 371 #endif // WEBRTC_MODULES_RTP_RTCP_INTERFACE_RTP_RTCP_DEFINES_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h ('k') | webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698