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

Side by Side Diff: webrtc/media/base/mediachannel.h

Issue 1804133003: Delete unused VideoCapturer statistics. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Address nits. Update both copies of AVFoundationVideoCapturer.' Created 4 years, 9 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 | « webrtc/api/objc/avfoundationvideocapturer.mm ('k') | webrtc/media/base/videocapturer.h » ('j') | 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) 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 int64_t bytes_sent; 513 int64_t bytes_sent;
514 int packets_sent; 514 int packets_sent;
515 int packets_lost; 515 int packets_lost;
516 float fraction_lost; 516 float fraction_lost;
517 int64_t rtt_ms; 517 int64_t rtt_ms;
518 std::string codec_name; 518 std::string codec_name;
519 std::vector<SsrcSenderInfo> local_stats; 519 std::vector<SsrcSenderInfo> local_stats;
520 std::vector<SsrcReceiverInfo> remote_stats; 520 std::vector<SsrcReceiverInfo> remote_stats;
521 }; 521 };
522 522
523 template<class T>
524 struct VariableInfo {
525 VariableInfo()
526 : min_val(),
527 mean(0.0),
528 max_val(),
529 variance(0.0) {
530 }
531 T min_val;
532 double mean;
533 T max_val;
534 double variance;
535 };
536
537 struct MediaReceiverInfo { 523 struct MediaReceiverInfo {
538 MediaReceiverInfo() 524 MediaReceiverInfo()
539 : bytes_rcvd(0), 525 : bytes_rcvd(0),
540 packets_rcvd(0), 526 packets_rcvd(0),
541 packets_lost(0), 527 packets_lost(0),
542 fraction_lost(0.0) { 528 fraction_lost(0.0) {
543 } 529 }
544 void add_ssrc(const SsrcReceiverInfo& stat) { 530 void add_ssrc(const SsrcReceiverInfo& stat) {
545 local_stats.push_back(stat); 531 local_stats.push_back(stat);
546 } 532 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 int send_frame_width; 667 int send_frame_width;
682 int send_frame_height; 668 int send_frame_height;
683 int framerate_input; 669 int framerate_input;
684 int framerate_sent; 670 int framerate_sent;
685 int nominal_bitrate; 671 int nominal_bitrate;
686 int preferred_bitrate; 672 int preferred_bitrate;
687 int adapt_reason; 673 int adapt_reason;
688 int adapt_changes; 674 int adapt_changes;
689 int avg_encode_ms; 675 int avg_encode_ms;
690 int encode_usage_percent; 676 int encode_usage_percent;
691 VariableInfo<int> adapt_frame_drops;
692 VariableInfo<int> effects_frame_drops;
693 VariableInfo<double> capturer_frame_time;
694 }; 677 };
695 678
696 struct VideoReceiverInfo : public MediaReceiverInfo { 679 struct VideoReceiverInfo : public MediaReceiverInfo {
697 VideoReceiverInfo() 680 VideoReceiverInfo()
698 : packets_concealed(0), 681 : packets_concealed(0),
699 firs_sent(0), 682 firs_sent(0),
700 plis_sent(0), 683 plis_sent(0),
701 nacks_sent(0), 684 nacks_sent(0),
702 frame_width(0), 685 frame_width(0),
703 frame_height(0), 686 frame_height(0),
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 // Signal when the media channel is ready to send the stream. Arguments are: 1088 // Signal when the media channel is ready to send the stream. Arguments are:
1106 // writable(bool) 1089 // writable(bool)
1107 sigslot::signal1<bool> SignalReadyToSend; 1090 sigslot::signal1<bool> SignalReadyToSend;
1108 // Signal for notifying that the remote side has closed the DataChannel. 1091 // Signal for notifying that the remote side has closed the DataChannel.
1109 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; 1092 sigslot::signal1<uint32_t> SignalStreamClosedRemotely;
1110 }; 1093 };
1111 1094
1112 } // namespace cricket 1095 } // namespace cricket
1113 1096
1114 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ 1097 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/api/objc/avfoundationvideocapturer.mm ('k') | webrtc/media/base/videocapturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698