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

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

Issue 2503383002: Expose RtpCodecParameters to VoiceMediaInfo stats. (Closed)
Patch Set: Addressed comments, using int Created 4 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
« no previous file with comments | « webrtc/audio/audio_send_stream.cc ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 } else { 546 } else {
547 return 0; 547 return 0;
548 } 548 }
549 } 549 }
550 int64_t bytes_sent; 550 int64_t bytes_sent;
551 int packets_sent; 551 int packets_sent;
552 int packets_lost; 552 int packets_lost;
553 float fraction_lost; 553 float fraction_lost;
554 int64_t rtt_ms; 554 int64_t rtt_ms;
555 std::string codec_name; 555 std::string codec_name;
556 rtc::Optional<int> codec_payload_type;
556 std::vector<SsrcSenderInfo> local_stats; 557 std::vector<SsrcSenderInfo> local_stats;
557 std::vector<SsrcReceiverInfo> remote_stats; 558 std::vector<SsrcReceiverInfo> remote_stats;
558 }; 559 };
559 560
560 struct MediaReceiverInfo { 561 struct MediaReceiverInfo {
561 MediaReceiverInfo() 562 MediaReceiverInfo()
562 : bytes_rcvd(0), 563 : bytes_rcvd(0),
563 packets_rcvd(0), 564 packets_rcvd(0),
564 packets_lost(0), 565 packets_lost(0),
565 fraction_lost(0.0) { 566 fraction_lost(0.0) {
(...skipping 25 matching lines...) Expand all
591 } else { 592 } else {
592 return 0; 593 return 0;
593 } 594 }
594 } 595 }
595 596
596 int64_t bytes_rcvd; 597 int64_t bytes_rcvd;
597 int packets_rcvd; 598 int packets_rcvd;
598 int packets_lost; 599 int packets_lost;
599 float fraction_lost; 600 float fraction_lost;
600 std::string codec_name; 601 std::string codec_name;
602 rtc::Optional<int> codec_payload_type;
601 std::vector<SsrcReceiverInfo> local_stats; 603 std::vector<SsrcReceiverInfo> local_stats;
602 std::vector<SsrcSenderInfo> remote_stats; 604 std::vector<SsrcSenderInfo> remote_stats;
603 }; 605 };
604 606
605 struct VoiceSenderInfo : public MediaSenderInfo { 607 struct VoiceSenderInfo : public MediaSenderInfo {
606 VoiceSenderInfo() 608 VoiceSenderInfo()
607 : ext_seqnum(0), 609 : ext_seqnum(0),
608 jitter_ms(0), 610 jitter_ms(0),
609 audio_level(0), 611 audio_level(0),
610 aec_quality_min(0.0), 612 aec_quality_min(0.0),
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 preferred_bitrate(0), 693 preferred_bitrate(0),
692 adapt_reason(0), 694 adapt_reason(0),
693 adapt_changes(0), 695 adapt_changes(0),
694 avg_encode_ms(0), 696 avg_encode_ms(0),
695 encode_usage_percent(0), 697 encode_usage_percent(0),
696 frames_encoded(0) {} 698 frames_encoded(0) {}
697 699
698 std::vector<SsrcGroup> ssrc_groups; 700 std::vector<SsrcGroup> ssrc_groups;
699 // TODO(hbos): Move this to |VideoMediaInfo::send_codecs|? 701 // TODO(hbos): Move this to |VideoMediaInfo::send_codecs|?
700 std::string encoder_implementation_name; 702 std::string encoder_implementation_name;
701 // TODO(hbos): Move this to |MediaSenderInfo| when supported by
702 // |VoiceSenderInfo| as well (which also extends that class).
703 rtc::Optional<uint32_t> codec_payload_type;
704 int packets_cached; 703 int packets_cached;
705 int firs_rcvd; 704 int firs_rcvd;
706 int plis_rcvd; 705 int plis_rcvd;
707 int nacks_rcvd; 706 int nacks_rcvd;
708 int send_frame_width; 707 int send_frame_width;
709 int send_frame_height; 708 int send_frame_height;
710 int framerate_input; 709 int framerate_input;
711 int framerate_sent; 710 int framerate_sent;
712 int nominal_bitrate; 711 int nominal_bitrate;
713 int preferred_bitrate; 712 int preferred_bitrate;
(...skipping 25 matching lines...) Expand all
739 min_playout_delay_ms(0), 738 min_playout_delay_ms(0),
740 render_delay_ms(0), 739 render_delay_ms(0),
741 target_delay_ms(0), 740 target_delay_ms(0),
742 current_delay_ms(0), 741 current_delay_ms(0),
743 capture_start_ntp_time_ms(-1) { 742 capture_start_ntp_time_ms(-1) {
744 } 743 }
745 744
746 std::vector<SsrcGroup> ssrc_groups; 745 std::vector<SsrcGroup> ssrc_groups;
747 // TODO(hbos): Move this to |VideoMediaInfo::receive_codecs|? 746 // TODO(hbos): Move this to |VideoMediaInfo::receive_codecs|?
748 std::string decoder_implementation_name; 747 std::string decoder_implementation_name;
749 // TODO(hbos): Move this to |MediaReceiverInfo| when supported by
750 // |VoiceReceiverInfo| as well (which also extends that class).
751 rtc::Optional<uint32_t> codec_payload_type;
752 int packets_concealed; 748 int packets_concealed;
753 int firs_sent; 749 int firs_sent;
754 int plis_sent; 750 int plis_sent;
755 int nacks_sent; 751 int nacks_sent;
756 int frame_width; 752 int frame_width;
757 int frame_height; 753 int frame_height;
758 int framerate_rcvd; 754 int framerate_rcvd;
759 int framerate_decoded; 755 int framerate_decoded;
760 int framerate_output; 756 int framerate_output;
761 // Framerate as sent to the renderer. 757 // Framerate as sent to the renderer.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 int64_t bucket_delay; 820 int64_t bucket_delay;
825 }; 821 };
826 822
827 // Maps from payload type to |RtpCodecParameters|. 823 // Maps from payload type to |RtpCodecParameters|.
828 typedef std::map<int, webrtc::RtpCodecParameters> RtpCodecParametersMap; 824 typedef std::map<int, webrtc::RtpCodecParameters> RtpCodecParametersMap;
829 825
830 struct VoiceMediaInfo { 826 struct VoiceMediaInfo {
831 void Clear() { 827 void Clear() {
832 senders.clear(); 828 senders.clear();
833 receivers.clear(); 829 receivers.clear();
830 send_codecs.clear();
831 receive_codecs.clear();
834 } 832 }
835 std::vector<VoiceSenderInfo> senders; 833 std::vector<VoiceSenderInfo> senders;
836 std::vector<VoiceReceiverInfo> receivers; 834 std::vector<VoiceReceiverInfo> receivers;
835 RtpCodecParametersMap send_codecs;
836 RtpCodecParametersMap receive_codecs;
837 }; 837 };
838 838
839 struct VideoMediaInfo { 839 struct VideoMediaInfo {
840 void Clear() { 840 void Clear() {
841 senders.clear(); 841 senders.clear();
842 receivers.clear(); 842 receivers.clear();
843 bw_estimations.clear(); 843 bw_estimations.clear();
844 send_codecs.clear(); 844 send_codecs.clear();
845 receive_codecs.clear(); 845 receive_codecs.clear();
846 } 846 }
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 // Signal when the media channel is ready to send the stream. Arguments are: 1178 // Signal when the media channel is ready to send the stream. Arguments are:
1179 // writable(bool) 1179 // writable(bool)
1180 sigslot::signal1<bool> SignalReadyToSend; 1180 sigslot::signal1<bool> SignalReadyToSend;
1181 // Signal for notifying that the remote side has closed the DataChannel. 1181 // Signal for notifying that the remote side has closed the DataChannel.
1182 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; 1182 sigslot::signal1<uint32_t> SignalStreamClosedRemotely;
1183 }; 1183 };
1184 1184
1185 } // namespace cricket 1185 } // namespace cricket
1186 1186
1187 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ 1187 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/audio/audio_send_stream.cc ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698