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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 &stats_proxy_, | 398 &stats_proxy_, |
399 &overuse_detector_) { | 399 &overuse_detector_) { |
400 LOG(LS_INFO) << "VideoSendStream: " << config_.ToString(); | 400 LOG(LS_INFO) << "VideoSendStream: " << config_.ToString(); |
401 | 401 |
402 RTC_DCHECK(!config_.rtp.ssrcs.empty()); | 402 RTC_DCHECK(!config_.rtp.ssrcs.empty()); |
403 RTC_DCHECK(module_process_thread_); | 403 RTC_DCHECK(module_process_thread_); |
404 RTC_DCHECK(call_stats_); | 404 RTC_DCHECK(call_stats_); |
405 RTC_DCHECK(congestion_controller_); | 405 RTC_DCHECK(congestion_controller_); |
406 RTC_DCHECK(remb_); | 406 RTC_DCHECK(remb_); |
407 | 407 |
408 RTC_CHECK(vie_encoder_.Init()); | |
409 encoder_feedback_.Init(config_.rtp.ssrcs, &vie_encoder_); | 408 encoder_feedback_.Init(config_.rtp.ssrcs, &vie_encoder_); |
410 | 409 |
411 // RTP/RTCP initialization. | 410 // RTP/RTCP initialization. |
412 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { | 411 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { |
413 module_process_thread_->RegisterModule(rtp_rtcp); | 412 module_process_thread_->RegisterModule(rtp_rtcp); |
414 congestion_controller_->packet_router()->AddRtpModule(rtp_rtcp); | 413 congestion_controller_->packet_router()->AddRtpModule(rtp_rtcp); |
415 } | 414 } |
416 | 415 |
417 video_sender_->RegisterProtectionCallback(this); | 416 video_sender_->RegisterProtectionCallback(this); |
418 | 417 |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 &module_nack_rate); | 766 &module_nack_rate); |
768 *sent_video_rate_bps += module_video_rate; | 767 *sent_video_rate_bps += module_video_rate; |
769 *sent_nack_rate_bps += module_nack_rate; | 768 *sent_nack_rate_bps += module_nack_rate; |
770 *sent_fec_rate_bps += module_fec_rate; | 769 *sent_fec_rate_bps += module_fec_rate; |
771 } | 770 } |
772 return 0; | 771 return 0; |
773 } | 772 } |
774 | 773 |
775 } // namespace internal | 774 } // namespace internal |
776 } // namespace webrtc | 775 } // namespace webrtc |
OLD | NEW |