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

Side by Side Diff: webrtc/video/send_statistics_proxy.h

Issue 1972083002: Move logic for calculating needed bitrate overhead used by NACK and FEC to VideoSender. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed Åsas comments. Created 4 years, 6 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/modules/video_coding/video_sender.cc ('k') | webrtc/video/send_statistics_proxy.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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // how stats are collected. 63 // how stats are collected.
64 void SetContentType(VideoEncoderConfig::ContentType content_type); 64 void SetContentType(VideoEncoderConfig::ContentType content_type);
65 65
66 // Implements VideoEncoderRateObserver. 66 // Implements VideoEncoderRateObserver.
67 void OnSetRates(uint32_t bitrate_bps, int framerate) override; 67 void OnSetRates(uint32_t bitrate_bps, int framerate) override;
68 68
69 // Implements CpuOveruseMetricsObserver. 69 // Implements CpuOveruseMetricsObserver.
70 void OnEncodedFrameTimeMeasured(int encode_time_ms, 70 void OnEncodedFrameTimeMeasured(int encode_time_ms,
71 const CpuOveruseMetrics& metrics) override; 71 const CpuOveruseMetrics& metrics) override;
72 72
73 int GetSendFrameRate() const;
74
73 protected: 75 protected:
74 // From RtcpStatisticsCallback. 76 // From RtcpStatisticsCallback.
75 void StatisticsUpdated(const RtcpStatistics& statistics, 77 void StatisticsUpdated(const RtcpStatistics& statistics,
76 uint32_t ssrc) override; 78 uint32_t ssrc) override;
77 void CNameChanged(const char* cname, uint32_t ssrc) override; 79 void CNameChanged(const char* cname, uint32_t ssrc) override;
78 // From RtcpPacketTypeCounterObserver. 80 // From RtcpPacketTypeCounterObserver.
79 void RtcpPacketTypesCounterUpdated( 81 void RtcpPacketTypesCounterUpdated(
80 uint32_t ssrc, 82 uint32_t ssrc,
81 const RtcpPacketTypeCounter& packet_counter) override; 83 const RtcpPacketTypeCounter& packet_counter) override;
82 // From StreamDataCountersCallback. 84 // From StreamDataCountersCallback.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const VideoSendStream::Stats start_stats_; 181 const VideoSendStream::Stats start_stats_;
180 std::map<int, QpCounters> 182 std::map<int, QpCounters>
181 qp_counters_; // QP counters mapped by spatial idx. 183 qp_counters_; // QP counters mapped by spatial idx.
182 }; 184 };
183 185
184 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_); 186 std::unique_ptr<UmaSamplesContainer> uma_container_ GUARDED_BY(crit_);
185 }; 187 };
186 188
187 } // namespace webrtc 189 } // namespace webrtc
188 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ 190 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/video_sender.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698