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

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

Issue 1669623004: Use CallStats for RTT in Call, rather than VideoSendStream::GetRtt() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Addressed comments Created 4 years, 10 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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) override; 62 bool ReconfigureVideoEncoder(const VideoEncoderConfig& config) override;
63 Stats GetStats() override; 63 Stats GetStats() override;
64 64
65 // webrtc::CpuOveruseObserver implementation. 65 // webrtc::CpuOveruseObserver implementation.
66 void OveruseDetected() override; 66 void OveruseDetected() override;
67 void NormalUsage() override; 67 void NormalUsage() override;
68 68
69 typedef std::map<uint32_t, RtpState> RtpStateMap; 69 typedef std::map<uint32_t, RtpState> RtpStateMap;
70 RtpStateMap GetRtpStates() const; 70 RtpStateMap GetRtpStates() const;
71 71
72 int64_t GetRtt() const;
73 int GetPaddingNeededBps() const; 72 int GetPaddingNeededBps() const;
74 73
75 private: 74 private:
76 bool SetSendCodec(VideoCodec video_codec); 75 bool SetSendCodec(VideoCodec video_codec);
77 void ConfigureSsrcs(); 76 void ConfigureSsrcs();
78 77
79 SendStatisticsProxy stats_proxy_; 78 SendStatisticsProxy stats_proxy_;
80 TransportAdapter transport_adapter_; 79 TransportAdapter transport_adapter_;
81 EncodedFrameCallbackAdapter encoded_frame_proxy_; 80 EncodedFrameCallbackAdapter encoded_frame_proxy_;
82 const VideoSendStream::Config config_; 81 const VideoSendStream::Config config_;
(...skipping 16 matching lines...) Expand all
99 98
100 // Used as a workaround to indicate that we should be using the configured 99 // Used as a workaround to indicate that we should be using the configured
101 // start bitrate initially, instead of the one reported by VideoEngine (which 100 // start bitrate initially, instead of the one reported by VideoEngine (which
102 // defaults to too high). 101 // defaults to too high).
103 bool use_config_bitrate_; 102 bool use_config_bitrate_;
104 }; 103 };
105 } // namespace internal 104 } // namespace internal
106 } // namespace webrtc 105 } // namespace webrtc
107 106
108 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ 107 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698