Chromium Code Reviews| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 public VCMDecoderTimingCallback, | 60 public VCMDecoderTimingCallback, |
| 61 public VCMPacketRequestCallback, | 61 public VCMPacketRequestCallback, |
| 62 public RtpFeedback { | 62 public RtpFeedback { |
| 63 public: | 63 public: |
| 64 friend class ChannelStatsObserver; | 64 friend class ChannelStatsObserver; |
| 65 friend class ViEChannelProtectionCallback; | 65 friend class ViEChannelProtectionCallback; |
| 66 | 66 |
| 67 ViEChannel(Transport* transport, | 67 ViEChannel(Transport* transport, |
| 68 ProcessThread* module_process_thread, | 68 ProcessThread* module_process_thread, |
| 69 PayloadRouter* send_payload_router, | 69 PayloadRouter* send_payload_router, |
| 70 VideoCodingModule* vcm, | |
| 71 RtcpIntraFrameObserver* intra_frame_observer, | 70 RtcpIntraFrameObserver* intra_frame_observer, |
| 72 RtcpBandwidthObserver* bandwidth_observer, | 71 RtcpBandwidthObserver* bandwidth_observer, |
| 73 TransportFeedbackObserver* transport_feedback_observer, | 72 TransportFeedbackObserver* transport_feedback_observer, |
| 74 RemoteBitrateEstimator* remote_bitrate_estimator, | 73 RemoteBitrateEstimator* remote_bitrate_estimator, |
| 75 RtcpRttStats* rtt_stats, | 74 RtcpRttStats* rtt_stats, |
| 76 PacedSender* paced_sender, | 75 PacedSender* paced_sender, |
| 77 PacketRouter* packet_router, | 76 PacketRouter* packet_router, |
| 78 size_t max_rtp_streams, | 77 size_t max_rtp_streams, |
| 79 bool sender); | 78 bool sender); |
| 80 ~ViEChannel(); | 79 ~ViEChannel(); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override; | 160 void OnIncomingCSRCChanged(const uint32_t CSRC, const bool added) override; |
| 162 | 161 |
| 163 int32_t StartSend(); | 162 int32_t StartSend(); |
| 164 int32_t StopSend(); | 163 int32_t StopSend(); |
| 165 | 164 |
| 166 // Sets the maximum transfer unit size for the network link, i.e. including | 165 // Sets the maximum transfer unit size for the network link, i.e. including |
| 167 // IP, UDP and RTP headers. | 166 // IP, UDP and RTP headers. |
| 168 int32_t SetMTU(uint16_t mtu); | 167 int32_t SetMTU(uint16_t mtu); |
| 169 | 168 |
| 170 // Gets the modules used by the channel. | 169 // Gets the modules used by the channel. |
| 170 VideoCodingModule* vcm(); | |
| 171 RtpRtcp* rtp_rtcp(); | 171 RtpRtcp* rtp_rtcp(); |
| 172 ViEReceiver* vie_receiver(); | 172 ViEReceiver* vie_receiver(); |
| 173 VCMProtectionCallback* vcm_protection_callback(); | 173 VCMProtectionCallback* vcm_protection_callback(); |
| 174 | 174 |
| 175 | 175 |
| 176 CallStatsObserver* GetStatsObserver(); | 176 CallStatsObserver* GetStatsObserver(); |
| 177 | 177 |
| 178 // Implements VCMReceiveCallback. | 178 // Implements VCMReceiveCallback. |
| 179 virtual int32_t FrameToRender(VideoFrame& video_frame); // NOLINT | 179 virtual int32_t FrameToRender(VideoFrame& video_frame); // NOLINT |
| 180 | 180 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 350 | 350 |
| 351 ProcessThread* const module_process_thread_; | 351 ProcessThread* const module_process_thread_; |
| 352 PayloadRouter* const send_payload_router_; | 352 PayloadRouter* const send_payload_router_; |
| 353 | 353 |
| 354 // Used for all registered callbacks except rendering. | 354 // Used for all registered callbacks except rendering. |
| 355 rtc::CriticalSection crit_; | 355 rtc::CriticalSection crit_; |
| 356 | 356 |
| 357 // Owned modules/classes. | 357 // Owned modules/classes. |
| 358 rtc::scoped_ptr<ViEChannelProtectionCallback> vcm_protection_callback_; | 358 rtc::scoped_ptr<ViEChannelProtectionCallback> vcm_protection_callback_; |
| 359 | 359 |
| 360 VideoCodingModule* const vcm_; | 360 const rtc::scoped_ptr<VideoCodingModule> vcm_; |
|
danilchap
2016/02/15 12:25:09
std::unique_ptr instead of rtc::scoped_ptr is now
pbos-webrtc
2016/02/15 13:04:24
Will replace them all when they've been used more
| |
| 361 ViEReceiver vie_receiver_; | 361 ViEReceiver vie_receiver_; |
| 362 ViESyncModule vie_sync_; | 362 ViESyncModule vie_sync_; |
| 363 | 363 |
| 364 // Helper to report call statistics. | 364 // Helper to report call statistics. |
| 365 rtc::scoped_ptr<ChannelStatsObserver> stats_observer_; | 365 rtc::scoped_ptr<ChannelStatsObserver> stats_observer_; |
| 366 | 366 |
| 367 // Not owned. | 367 // Not owned. |
| 368 ReceiveStatisticsProxy* receive_stats_callback_ GUARDED_BY(crit_); | 368 ReceiveStatisticsProxy* receive_stats_callback_ GUARDED_BY(crit_); |
| 369 FrameCounts receive_frame_counts_ GUARDED_BY(crit_); | 369 FrameCounts receive_frame_counts_ GUARDED_BY(crit_); |
| 370 IncomingVideoStream* incoming_video_stream_ GUARDED_BY(crit_); | 370 IncomingVideoStream* incoming_video_stream_ GUARDED_BY(crit_); |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 388 size_t num_rtts_ GUARDED_BY(crit_); | 388 size_t num_rtts_ GUARDED_BY(crit_); |
| 389 | 389 |
| 390 // RtpRtcp modules, declared last as they use other members on construction. | 390 // RtpRtcp modules, declared last as they use other members on construction. |
| 391 const std::vector<RtpRtcp*> rtp_rtcp_modules_; | 391 const std::vector<RtpRtcp*> rtp_rtcp_modules_; |
| 392 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); | 392 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); |
| 393 }; | 393 }; |
| 394 | 394 |
| 395 } // namespace webrtc | 395 } // namespace webrtc |
| 396 | 396 |
| 397 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_ | 397 #endif // WEBRTC_VIDEO_VIE_CHANNEL_H_ |
| OLD | NEW |