OLD | NEW |
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // Called by BitrateObserver. | 155 // Called by BitrateObserver. |
156 void OnNetworkChanged(uint32_t bitrate_bps, | 156 void OnNetworkChanged(uint32_t bitrate_bps, |
157 uint8_t fraction_lost, | 157 uint8_t fraction_lost, |
158 int64_t round_trip_time_ms); | 158 int64_t round_trip_time_ms); |
159 | 159 |
160 private: | 160 private: |
161 bool EncoderPaused() const EXCLUSIVE_LOCKS_REQUIRED(data_cs_); | 161 bool EncoderPaused() const EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
162 void TraceFrameDropStart() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); | 162 void TraceFrameDropStart() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
163 void TraceFrameDropEnd() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); | 163 void TraceFrameDropEnd() EXCLUSIVE_LOCKS_REQUIRED(data_cs_); |
164 | 164 |
165 void UpdateHistograms(); | |
166 | |
167 const int channel_id_; | 165 const int channel_id_; |
168 const uint32_t number_of_cores_; | 166 const uint32_t number_of_cores_; |
169 | 167 |
170 const rtc::scoped_ptr<VideoProcessingModule> vpm_; | 168 const rtc::scoped_ptr<VideoProcessingModule> vpm_; |
171 const rtc::scoped_ptr<QMVideoSettingsCallback> qm_callback_; | 169 const rtc::scoped_ptr<QMVideoSettingsCallback> qm_callback_; |
172 const rtc::scoped_ptr<VideoCodingModule> vcm_; | 170 const rtc::scoped_ptr<VideoCodingModule> vcm_; |
173 rtc::scoped_refptr<PayloadRouter> send_payload_router_; | 171 rtc::scoped_refptr<PayloadRouter> send_payload_router_; |
174 | 172 |
175 rtc::scoped_ptr<CriticalSectionWrapper> data_cs_; | 173 rtc::scoped_ptr<CriticalSectionWrapper> data_cs_; |
176 rtc::scoped_ptr<BitrateObserver> bitrate_observer_; | 174 rtc::scoped_ptr<BitrateObserver> bitrate_observer_; |
(...skipping 22 matching lines...) Expand all Loading... |
199 | 197 |
200 ProcessThread* module_process_thread_; | 198 ProcessThread* module_process_thread_; |
201 | 199 |
202 bool has_received_sli_ GUARDED_BY(data_cs_); | 200 bool has_received_sli_ GUARDED_BY(data_cs_); |
203 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); | 201 uint8_t picture_id_sli_ GUARDED_BY(data_cs_); |
204 bool has_received_rpsi_ GUARDED_BY(data_cs_); | 202 bool has_received_rpsi_ GUARDED_BY(data_cs_); |
205 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); | 203 uint64_t picture_id_rpsi_ GUARDED_BY(data_cs_); |
206 std::map<uint32_t, int> ssrc_streams_ GUARDED_BY(data_cs_); | 204 std::map<uint32_t, int> ssrc_streams_ GUARDED_BY(data_cs_); |
207 | 205 |
208 bool video_suspended_ GUARDED_BY(data_cs_); | 206 bool video_suspended_ GUARDED_BY(data_cs_); |
209 const int64_t start_ms_; | |
210 }; | 207 }; |
211 | 208 |
212 } // namespace webrtc | 209 } // namespace webrtc |
213 | 210 |
214 #endif // WEBRTC_VIDEO_ENGINE_VIE_ENCODER_H_ | 211 #endif // WEBRTC_VIDEO_ENGINE_VIE_ENCODER_H_ |
OLD | NEW |