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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.h

Issue 1213603002: Remove ResetStatistics from RTP feedback. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: comment + rebase 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const char payload_name[RTP_PAYLOAD_NAME_SIZE], 86 const char payload_name[RTP_PAYLOAD_NAME_SIZE],
87 size_t payload_name_length, 87 size_t payload_name_length,
88 uint32_t frequency, 88 uint32_t frequency,
89 uint8_t channels, 89 uint8_t channels,
90 uint32_t rate) const; 90 uint32_t rate) const;
91 91
92 // We need to look out for special payload types here and sometimes reset 92 // We need to look out for special payload types here and sometimes reset
93 // statistics. In addition we sometimes need to tweak the frequency. 93 // statistics. In addition we sometimes need to tweak the frequency.
94 void CheckPayloadChanged(int8_t payload_type, 94 void CheckPayloadChanged(int8_t payload_type,
95 PayloadUnion* specific_payload, 95 PayloadUnion* specific_payload,
96 bool* should_reset_statistics,
97 bool* should_discard_changes) override; 96 bool* should_discard_changes) override;
98 97
99 int Energy(uint8_t array_of_energy[kRtpCsrcSize]) const override; 98 int Energy(uint8_t array_of_energy[kRtpCsrcSize]) const override;
100 99
101 private: 100 private:
102 101
103 int32_t ParseAudioCodecSpecific( 102 int32_t ParseAudioCodecSpecific(
104 WebRtcRTPHeader* rtp_header, 103 WebRtcRTPHeader* rtp_header,
105 const uint8_t* payload_data, 104 const uint8_t* payload_data,
106 size_t payload_length, 105 size_t payload_length,
(...skipping 20 matching lines...) Expand all
127 bool last_received_g722_; 126 bool last_received_g722_;
128 127
129 uint8_t num_energy_; 128 uint8_t num_energy_;
130 uint8_t current_remote_energy_[kRtpCsrcSize]; 129 uint8_t current_remote_energy_[kRtpCsrcSize];
131 130
132 RtpAudioFeedback* cb_audio_feedback_; 131 RtpAudioFeedback* cb_audio_feedback_;
133 }; 132 };
134 } // namespace webrtc 133 } // namespace webrtc
135 134
136 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_AUDIO_H_ 135 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_AUDIO_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/receive_statistics_unittest.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_receiver_audio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698