OLD | NEW |
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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 &stats_proxy_, | 401 &stats_proxy_, |
402 &overuse_detector_) { | 402 &overuse_detector_) { |
403 LOG(LS_INFO) << "VideoSendStream: " << config_.ToString(); | 403 LOG(LS_INFO) << "VideoSendStream: " << config_.ToString(); |
404 | 404 |
405 RTC_DCHECK(!config_.rtp.ssrcs.empty()); | 405 RTC_DCHECK(!config_.rtp.ssrcs.empty()); |
406 RTC_DCHECK(module_process_thread_); | 406 RTC_DCHECK(module_process_thread_); |
407 RTC_DCHECK(call_stats_); | 407 RTC_DCHECK(call_stats_); |
408 RTC_DCHECK(congestion_controller_); | 408 RTC_DCHECK(congestion_controller_); |
409 RTC_DCHECK(remb_); | 409 RTC_DCHECK(remb_); |
410 | 410 |
411 RTC_CHECK(vie_encoder_.Init()); | |
412 encoder_feedback_.Init(config_.rtp.ssrcs, &vie_encoder_); | 411 encoder_feedback_.Init(config_.rtp.ssrcs, &vie_encoder_); |
413 | 412 |
414 // RTP/RTCP initialization. | 413 // RTP/RTCP initialization. |
415 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { | 414 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { |
416 module_process_thread_->RegisterModule(rtp_rtcp); | 415 module_process_thread_->RegisterModule(rtp_rtcp); |
417 congestion_controller_->packet_router()->AddRtpModule(rtp_rtcp); | 416 congestion_controller_->packet_router()->AddRtpModule(rtp_rtcp); |
418 } | 417 } |
419 | 418 |
420 video_sender_->RegisterProtectionCallback(this); | 419 video_sender_->RegisterProtectionCallback(this); |
421 | 420 |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 &module_nack_rate); | 756 &module_nack_rate); |
758 *sent_video_rate_bps += module_video_rate; | 757 *sent_video_rate_bps += module_video_rate; |
759 *sent_nack_rate_bps += module_nack_rate; | 758 *sent_nack_rate_bps += module_nack_rate; |
760 *sent_fec_rate_bps += module_fec_rate; | 759 *sent_fec_rate_bps += module_fec_rate; |
761 } | 760 } |
762 return 0; | 761 return 0; |
763 } | 762 } |
764 | 763 |
765 } // namespace internal | 764 } // namespace internal |
766 } // namespace webrtc | 765 } // namespace webrtc |
OLD | NEW |