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

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

Issue 2035383002: Implementing auto pausing of video streams. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Removed comment. 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/video/video_send_stream_tests.cc ('k') | webrtc/video/vie_encoder.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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Implements VideoSendStatisticsCallback. 99 // Implements VideoSendStatisticsCallback.
100 void SendStatistics(uint32_t bit_rate, 100 void SendStatistics(uint32_t bit_rate,
101 uint32_t frame_rate, 101 uint32_t frame_rate,
102 const std::string& encoder_name) override; 102 const std::string& encoder_name) override;
103 103
104 // virtual to test EncoderStateFeedback with mocks. 104 // virtual to test EncoderStateFeedback with mocks.
105 virtual void OnReceivedIntraFrameRequest(size_t stream_index); 105 virtual void OnReceivedIntraFrameRequest(size_t stream_index);
106 virtual void OnReceivedSLI(uint8_t picture_id); 106 virtual void OnReceivedSLI(uint8_t picture_id);
107 virtual void OnReceivedRPSI(uint64_t picture_id); 107 virtual void OnReceivedRPSI(uint64_t picture_id);
108 108
109 // Note that this method might return a value higher than the current BWE and
110 // it's up to the caller to possibly limit the value.
109 int GetPaddingNeededBps() const; 111 int GetPaddingNeededBps() const;
110 112
111 void OnBitrateUpdated(uint32_t bitrate_bps, 113 void OnBitrateUpdated(uint32_t bitrate_bps,
112 uint8_t fraction_lost, 114 uint8_t fraction_lost,
113 int64_t round_trip_time_ms); 115 int64_t round_trip_time_ms);
114 116
115 private: 117 private:
116 bool EncoderPaused() const EXCLUSIVE_LOCKS_REQUIRED(data_cs_); 118 bool EncoderPaused() const EXCLUSIVE_LOCKS_REQUIRED(data_cs_);
117 void TraceFrameDropStart() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); 119 void TraceFrameDropStart() EXCLUSIVE_LOCKS_REQUIRED(data_cs_);
118 void TraceFrameDropEnd() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); 120 void TraceFrameDropEnd() EXCLUSIVE_LOCKS_REQUIRED(data_cs_);
(...skipping 25 matching lines...) Expand all
144 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); 146 uint8_t picture_id_sli_ GUARDED_BY(data_cs_);
145 bool has_received_rpsi_ GUARDED_BY(data_cs_); 147 bool has_received_rpsi_ GUARDED_BY(data_cs_);
146 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); 148 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_);
147 149
148 bool video_suspended_ GUARDED_BY(data_cs_); 150 bool video_suspended_ GUARDED_BY(data_cs_);
149 }; 151 };
150 152
151 } // namespace webrtc 153 } // namespace webrtc
152 154
153 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ 155 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_send_stream_tests.cc ('k') | webrtc/video/vie_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698