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 |
11 #ifndef WEBRTC_VIDEO_VIE_CHANNEL_H_ | 11 #ifndef WEBRTC_VIDEO_VIE_CHANNEL_H_ |
12 #define WEBRTC_VIDEO_VIE_CHANNEL_H_ | 12 #define WEBRTC_VIDEO_VIE_CHANNEL_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
15 #include <map> | 15 #include <map> |
| 16 #include <memory> |
16 #include <vector> | 17 #include <vector> |
17 | 18 |
18 #include "webrtc/base/criticalsection.h" | 19 #include "webrtc/base/criticalsection.h" |
19 #include "webrtc/base/platform_thread.h" | 20 #include "webrtc/base/platform_thread.h" |
20 #include "webrtc/base/scoped_ptr.h" | |
21 #include "webrtc/base/scoped_ref_ptr.h" | 21 #include "webrtc/base/scoped_ref_ptr.h" |
22 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" | 22 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat
or.h" |
23 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 23 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
25 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 25 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
26 #include "webrtc/system_wrappers/include/tick_util.h" | 26 #include "webrtc/system_wrappers/include/tick_util.h" |
27 #include "webrtc/typedefs.h" | 27 #include "webrtc/typedefs.h" |
28 #include "webrtc/video/vie_receiver.h" | 28 #include "webrtc/video/vie_receiver.h" |
29 #include "webrtc/video/vie_sync_module.h" | 29 #include "webrtc/video/vie_sync_module.h" |
30 | 30 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 | 277 |
278 const bool sender_; | 278 const bool sender_; |
279 | 279 |
280 ProcessThread* const module_process_thread_; | 280 ProcessThread* const module_process_thread_; |
281 PayloadRouter* const send_payload_router_; | 281 PayloadRouter* const send_payload_router_; |
282 | 282 |
283 // Used for all registered callbacks except rendering. | 283 // Used for all registered callbacks except rendering. |
284 rtc::CriticalSection crit_; | 284 rtc::CriticalSection crit_; |
285 | 285 |
286 // Owned modules/classes. | 286 // Owned modules/classes. |
287 rtc::scoped_ptr<ViEChannelProtectionCallback> vcm_protection_callback_; | 287 std::unique_ptr<ViEChannelProtectionCallback> vcm_protection_callback_; |
288 | 288 |
289 VideoCodingModule* const vcm_; | 289 VideoCodingModule* const vcm_; |
290 ViEReceiver vie_receiver_; | 290 ViEReceiver vie_receiver_; |
291 | 291 |
292 // Helper to report call statistics. | 292 // Helper to report call statistics. |
293 rtc::scoped_ptr<ChannelStatsObserver> stats_observer_; | 293 std::unique_ptr<ChannelStatsObserver> stats_observer_; |
294 | 294 |
295 // Not owned. | 295 // Not owned. |
296 ReceiveStatisticsProxy* receive_stats_callback_ GUARDED_BY(crit_); | 296 ReceiveStatisticsProxy* receive_stats_callback_ GUARDED_BY(crit_); |
297 FrameCounts receive_frame_counts_ GUARDED_BY(crit_); | 297 FrameCounts receive_frame_counts_ GUARDED_BY(crit_); |
298 IncomingVideoStream* incoming_video_stream_ GUARDED_BY(crit_); | 298 IncomingVideoStream* incoming_video_stream_ GUARDED_BY(crit_); |
299 RtcpIntraFrameObserver* const intra_frame_observer_; | 299 RtcpIntraFrameObserver* const intra_frame_observer_; |
300 RtcpRttStats* const rtt_stats_; | 300 RtcpRttStats* const rtt_stats_; |
301 PacedSender* const paced_sender_; | 301 PacedSender* const paced_sender_; |
302 PacketRouter* const packet_router_; | 302 PacketRouter* const packet_router_; |
303 | 303 |
304 const rtc::scoped_ptr<RtcpBandwidthObserver> bandwidth_observer_; | 304 const std::unique_ptr<RtcpBandwidthObserver> bandwidth_observer_; |
305 TransportFeedbackObserver* const transport_feedback_observer_; | 305 TransportFeedbackObserver* const transport_feedback_observer_; |
306 | 306 |
307 int max_nack_reordering_threshold_; | 307 int max_nack_reordering_threshold_; |
308 I420FrameCallback* pre_render_callback_ GUARDED_BY(crit_); | 308 I420FrameCallback* pre_render_callback_ GUARDED_BY(crit_); |
309 | 309 |
310 int64_t last_rtt_ms_ GUARDED_BY(crit_); | 310 int64_t last_rtt_ms_ GUARDED_BY(crit_); |
311 | 311 |
312 // RtpRtcp modules, declared last as they use other members on construction. | 312 // RtpRtcp modules, declared last as they use other members on construction. |
313 const std::vector<RtpRtcp*> rtp_rtcp_modules_; | 313 const std::vector<RtpRtcp*> rtp_rtcp_modules_; |
314 }; | 314 }; |
315 | 315 |
316 } // namespace webrtc | 316 } // namespace webrtc |
317 | 317 |
318 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_ | 318 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_ |
OLD | NEW |