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

Unified Diff: webrtc/voice_engine/channel.h

Issue 2589743002: Make OverheadObserver::OnOverheadChanged count RTP headers only (Closed)
Patch Set: Add explicit cast. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/channel.h
diff --git a/webrtc/voice_engine/channel.h b/webrtc/voice_engine/channel.h
index 11e109e3c8c631b46d1261eced1bba665bcb73e6..fca682141d56beb13392cb01d4d642b0199f079d 100644
--- a/webrtc/voice_engine/channel.h
+++ b/webrtc/voice_engine/channel.h
@@ -415,7 +415,7 @@ class Channel
void SetRtcEventLog(RtcEventLog* event_log);
void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats);
- void SetTransportOverhead(int transport_overhead_per_packet);
+ void SetTransportOverhead(size_t transport_overhead_per_packet);
// From OverheadObserver in the RTP/RTCP module
void OnOverheadChanged(size_t overhead_bytes_per_packet) override;
@@ -443,6 +443,8 @@ class Channel
RTPExtensionType type,
unsigned char id);
+ void UpdateOverheadForEncoder();
+
int GetRtpTimestampRateHz() const;
int64_t GetRTT(bool allow_associate_channel) const;
@@ -529,6 +531,8 @@ class Channel
uint32_t _lastLocalTimeStamp;
int8_t _lastPayloadType;
bool _includeAudioLevelIndication;
+ size_t transport_overhead_per_packet_;
+ size_t rtp_overhead_per_packet_;
// VoENetwork
AudioFrame::SpeechType _outputSpeechType;
// VoEVideoSync
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698