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

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

Issue 2121273003: Add more logging about the bwe state and VideoSendStream state. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixes. 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
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 static const int kMaxLayers = 3; 132 static const int kMaxLayers = 3;
133 std::unique_ptr<IvfFileWriter> file_writers_[kMaxLayers]; 133 std::unique_ptr<IvfFileWriter> file_writers_[kMaxLayers];
134 134
135 rtc::PlatformThread encoder_thread_; 135 rtc::PlatformThread encoder_thread_;
136 rtc::Event encoder_wakeup_event_; 136 rtc::Event encoder_wakeup_event_;
137 volatile int stop_encoder_thread_; 137 volatile int stop_encoder_thread_;
138 rtc::CriticalSection encoder_settings_crit_; 138 rtc::CriticalSection encoder_settings_crit_;
139 std::unique_ptr<EncoderSettings> pending_encoder_settings_ 139 std::unique_ptr<EncoderSettings> pending_encoder_settings_
140 GUARDED_BY(encoder_settings_crit_); 140 GUARDED_BY(encoder_settings_crit_);
141 uint32_t encoder_max_bitrate_bps_ GUARDED_BY(encoder_settings_crit_); 141 uint32_t encoder_max_bitrate_bps_ GUARDED_BY(encoder_settings_crit_);
142 uint32_t encoder_target_rate_bps_ GUARDED_BY(encoder_settings_crit_);
142 143
143 enum class State { 144 enum class State {
144 kStopped, // VideoSendStream::Start has not yet been called. 145 kStopped, // VideoSendStream::Start has not yet been called.
145 kStarted, // VideoSendStream::Start has been called. 146 kStarted, // VideoSendStream::Start has been called.
146 // VideoSendStream::Start has been called but the encoder have timed out. 147 // VideoSendStream::Start has been called but the encoder have timed out.
147 kEncoderTimedOut, 148 kEncoderTimedOut,
148 }; 149 };
149 rtc::Optional<State> pending_state_change_ GUARDED_BY(encoder_settings_crit_); 150 rtc::Optional<State> pending_state_change_ GUARDED_BY(encoder_settings_crit_);
150 151
151 // Only used on the encoder thread. 152 // Only used on the encoder thread.
(...skipping 12 matching lines...) Expand all
164 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; 165 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_;
165 // RtpRtcp modules, declared here as they use other members on construction. 166 // RtpRtcp modules, declared here as they use other members on construction.
166 const std::vector<RtpRtcp*> rtp_rtcp_modules_; 167 const std::vector<RtpRtcp*> rtp_rtcp_modules_;
167 PayloadRouter payload_router_; 168 PayloadRouter payload_router_;
168 VideoCaptureInput input_; 169 VideoCaptureInput input_;
169 }; 170 };
170 } // namespace internal 171 } // namespace internal
171 } // namespace webrtc 172 } // namespace webrtc
172 173
173 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_ 174 #endif // WEBRTC_VIDEO_VIDEO_SEND_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/modules/congestion_controller/congestion_controller.cc ('k') | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698