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

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2.h

Issue 2916793003: Revert of Wire up BWE stats through WebrtcSession so that they are filled in both for audio and video calls. (Closed)
Patch Set: Created 3 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/media/base/mediachannel.h ('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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 bool enable, 153 bool enable,
154 const VideoOptions* options, 154 const VideoOptions* options,
155 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) override; 155 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) override;
156 bool AddSendStream(const StreamParams& sp) override; 156 bool AddSendStream(const StreamParams& sp) override;
157 bool RemoveSendStream(uint32_t ssrc) override; 157 bool RemoveSendStream(uint32_t ssrc) override;
158 bool AddRecvStream(const StreamParams& sp) override; 158 bool AddRecvStream(const StreamParams& sp) override;
159 bool AddRecvStream(const StreamParams& sp, bool default_stream); 159 bool AddRecvStream(const StreamParams& sp, bool default_stream);
160 bool RemoveRecvStream(uint32_t ssrc) override; 160 bool RemoveRecvStream(uint32_t ssrc) override;
161 bool SetSink(uint32_t ssrc, 161 bool SetSink(uint32_t ssrc,
162 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override; 162 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override;
163 void FillBitrateInfo(BandwidthEstimationInfo* bwe_info) override;
164 bool GetStats(VideoMediaInfo* info) override; 163 bool GetStats(VideoMediaInfo* info) override;
165 164
166 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet, 165 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet,
167 const rtc::PacketTime& packet_time) override; 166 const rtc::PacketTime& packet_time) override;
168 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, 167 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet,
169 const rtc::PacketTime& packet_time) override; 168 const rtc::PacketTime& packet_time) override;
170 void OnReadyToSend(bool ready) override; 169 void OnReadyToSend(bool ready) override;
171 void OnNetworkRouteChanged(const std::string& transport_name, 170 void OnNetworkRouteChanged(const std::string& transport_name,
172 const rtc::NetworkRoute& network_route) override; 171 const rtc::NetworkRoute& network_route) override;
173 void OnTransportOverheadChanged(int transport_overhead_per_packet) override; 172 void OnTransportOverheadChanged(int transport_overhead_per_packet) override;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 void RemoveSink(rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override; 277 void RemoveSink(rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override;
279 278
280 bool SetVideoSend(bool mute, 279 bool SetVideoSend(bool mute,
281 const VideoOptions* options, 280 const VideoOptions* options,
282 rtc::VideoSourceInterface<webrtc::VideoFrame>* source); 281 rtc::VideoSourceInterface<webrtc::VideoFrame>* source);
283 282
284 void SetSend(bool send); 283 void SetSend(bool send);
285 284
286 const std::vector<uint32_t>& GetSsrcs() const; 285 const std::vector<uint32_t>& GetSsrcs() const;
287 VideoSenderInfo GetVideoSenderInfo(bool log_stats); 286 VideoSenderInfo GetVideoSenderInfo(bool log_stats);
288 void FillBitrateInfo(BandwidthEstimationInfo* bwe_info); 287 void FillBandwidthEstimationInfo(BandwidthEstimationInfo* bwe_info);
289 288
290 private: 289 private:
291 // Parameters needed to reconstruct the underlying stream. 290 // Parameters needed to reconstruct the underlying stream.
292 // webrtc::VideoSendStream doesn't support setting a lot of options on the 291 // webrtc::VideoSendStream doesn't support setting a lot of options on the
293 // fly, so when those need to be changed we tear down and reconstruct with 292 // fly, so when those need to be changed we tear down and reconstruct with
294 // similar parameters depending on which options changed etc. 293 // similar parameters depending on which options changed etc.
295 struct VideoSendStreamParameters { 294 struct VideoSendStreamParameters {
296 VideoSendStreamParameters( 295 VideoSendStreamParameters(
297 webrtc::VideoSendStream::Config config, 296 webrtc::VideoSendStream::Config config,
298 const VideoOptions& options, 297 const VideoOptions& options,
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // send_params/recv_params, rtp_extensions, options, etc. 518 // send_params/recv_params, rtp_extensions, options, etc.
520 VideoSendParameters send_params_; 519 VideoSendParameters send_params_;
521 VideoOptions default_send_options_; 520 VideoOptions default_send_options_;
522 VideoRecvParameters recv_params_; 521 VideoRecvParameters recv_params_;
523 int64_t last_stats_log_ms_; 522 int64_t last_stats_log_ms_;
524 }; 523 };
525 524
526 } // namespace cricket 525 } // namespace cricket
527 526
528 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 527 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698