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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 RtpFeedback* callback, 72 RtpFeedback* callback,
73 int32_t id, 73 int32_t id,
74 int8_t payload_type, 74 int8_t payload_type,
75 const char payload_name[RTP_PAYLOAD_NAME_SIZE], 75 const char payload_name[RTP_PAYLOAD_NAME_SIZE],
76 const PayloadUnion& specific_payload) const = 0; 76 const PayloadUnion& specific_payload) const = 0;
77 77
78 // Checks if the payload type has changed, and returns whether we should 78 // Checks if the payload type has changed, and returns whether we should
79 // reset statistics and/or discard this packet. 79 // reset statistics and/or discard this packet.
80 virtual void CheckPayloadChanged(int8_t payload_type, 80 virtual void CheckPayloadChanged(int8_t payload_type,
81 PayloadUnion* specific_payload, 81 PayloadUnion* specific_payload,
82 bool* should_reset_statistics,
83 bool* should_discard_changes); 82 bool* should_discard_changes);
84 83
85 virtual int Energy(uint8_t array_of_energy[kRtpCsrcSize]) const; 84 virtual int Energy(uint8_t array_of_energy[kRtpCsrcSize]) const;
86 85
87 // Stores / retrieves the last media specific payload for later reference. 86 // Stores / retrieves the last media specific payload for later reference.
88 void GetLastMediaSpecificPayload(PayloadUnion* payload) const; 87 void GetLastMediaSpecificPayload(PayloadUnion* payload) const;
89 void SetLastMediaSpecificPayload(const PayloadUnion& payload); 88 void SetLastMediaSpecificPayload(const PayloadUnion& payload);
90 89
91 protected: 90 protected:
92 // The data callback is where we should send received payload data. 91 // The data callback is where we should send received payload data.
93 // See ParseRtpPacket. This class does not claim ownership of the callback. 92 // See ParseRtpPacket. This class does not claim ownership of the callback.
94 // Implementations must NOT hold any critical sections while calling the 93 // Implementations must NOT hold any critical sections while calling the
95 // callback. 94 // callback.
96 // 95 //
97 // Note: Implementations may call the callback for other reasons than calls 96 // Note: Implementations may call the callback for other reasons than calls
98 // to ParseRtpPacket, for instance if the implementation somehow recovers a 97 // to ParseRtpPacket, for instance if the implementation somehow recovers a
99 // packet. 98 // packet.
100 RTPReceiverStrategy(RtpData* data_callback); 99 RTPReceiverStrategy(RtpData* data_callback);
101 100
102 rtc::scoped_ptr<CriticalSectionWrapper> crit_sect_; 101 rtc::scoped_ptr<CriticalSectionWrapper> crit_sect_;
103 PayloadUnion last_payload_; 102 PayloadUnion last_payload_;
104 RtpData* data_callback_; 103 RtpData* data_callback_;
105 }; 104 };
106 } // namespace webrtc 105 } // namespace webrtc
107 106
108 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_STRATEGY_H_ 107 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_STRATEGY_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_receiver_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698