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

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

Issue 2117493002: Auto pause video streams based on encoder target bitrate. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 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
« no previous file with comments | « webrtc/video/video_quality_test.cc ('k') | webrtc/video/video_send_stream.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // webrtc::CpuOveruseObserver implementation. 80 // webrtc::CpuOveruseObserver implementation.
81 void OveruseDetected() override; 81 void OveruseDetected() override;
82 void NormalUsage() override; 82 void NormalUsage() override;
83 83
84 typedef std::map<uint32_t, RtpState> RtpStateMap; 84 typedef std::map<uint32_t, RtpState> RtpStateMap;
85 RtpStateMap GetRtpStates() const; 85 RtpStateMap GetRtpStates() const;
86 86
87 int GetPaddingNeededBps() const; 87 int GetPaddingNeededBps() const;
88 88
89 // Implements BitrateAllocatorObserver. 89 // Implements BitrateAllocatorObserver.
90 void OnBitrateUpdated(uint32_t bitrate_bps, 90 uint32_t OnBitrateUpdated(uint32_t bitrate_bps,
91 uint8_t fraction_loss, 91 uint8_t fraction_loss,
92 int64_t rtt) override; 92 int64_t rtt) override;
93 93
94 protected: 94 protected:
95 // Implements webrtc::VCMProtectionCallback. 95 // Implements webrtc::VCMProtectionCallback.
96 int ProtectionRequest(const FecProtectionParams* delta_params, 96 int ProtectionRequest(const FecProtectionParams* delta_params,
97 const FecProtectionParams* key_params, 97 const FecProtectionParams* key_params,
98 uint32_t* sent_video_rate_bps, 98 uint32_t* sent_video_rate_bps,
99 uint32_t* sent_nack_rate_bps, 99 uint32_t* sent_nack_rate_bps,
100 uint32_t* sent_fec_rate_bps) override; 100 uint32_t* sent_fec_rate_bps) override;
101 101
102 private: 102 private:
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; 163 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_;
164 // RtpRtcp modules, declared here as they use other members on construction. 164 // RtpRtcp modules, declared here as they use other members on construction.
165 const std::vector<RtpRtcp*> rtp_rtcp_modules_; 165 const std::vector<RtpRtcp*> rtp_rtcp_modules_;
166 PayloadRouter payload_router_; 166 PayloadRouter payload_router_;
167 VideoCaptureInput input_; 167 VideoCaptureInput input_;
168 }; 168 };
169 } // namespace internal 169 } // namespace internal
170 } // namespace webrtc 170 } // namespace webrtc
171 171
172 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ 172 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_quality_test.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698