| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 VieRemb* remb) | 152 VieRemb* remb) |
| 153 : transport_adapter_(config.rtcp_send_transport), | 153 : transport_adapter_(config.rtcp_send_transport), |
| 154 encoded_frame_proxy_(config.pre_decode_callback), | 154 encoded_frame_proxy_(config.pre_decode_callback), |
| 155 config_(config), | 155 config_(config), |
| 156 process_thread_(process_thread), | 156 process_thread_(process_thread), |
| 157 clock_(Clock::GetRealTimeClock()), | 157 clock_(Clock::GetRealTimeClock()), |
| 158 decode_thread_(DecodeThreadFunction, this, "DecodingThread"), | 158 decode_thread_(DecodeThreadFunction, this, "DecodingThread"), |
| 159 congestion_controller_(congestion_controller), | 159 congestion_controller_(congestion_controller), |
| 160 call_stats_(call_stats), | 160 call_stats_(call_stats), |
| 161 remb_(remb), | 161 remb_(remb), |
| 162 vcm_(VideoCodingModule::Create(clock_, | 162 vcm_(VideoCodingModule::Create(clock_, nullptr, nullptr, this, this)), |
| 163 nullptr, | |
| 164 nullptr, | |
| 165 this, | |
| 166 this)), | |
| 167 incoming_video_stream_(0, config.disable_prerenderer_smoothing), | 163 incoming_video_stream_(0, config.disable_prerenderer_smoothing), |
| 168 stats_proxy_(config_, clock_), | 164 stats_proxy_(config_, clock_), |
| 169 vie_channel_(&transport_adapter_, | 165 vie_channel_(&transport_adapter_, |
| 170 process_thread, | 166 process_thread, |
| 171 nullptr, | |
| 172 vcm_.get(), | 167 vcm_.get(), |
| 173 nullptr, | |
| 174 nullptr, | |
| 175 nullptr, | |
| 176 congestion_controller_->GetRemoteBitrateEstimator( | 168 congestion_controller_->GetRemoteBitrateEstimator( |
| 177 UseSendSideBwe(config_)), | 169 UseSendSideBwe(config_)), |
| 178 call_stats_->rtcp_rtt_stats(), | 170 call_stats_->rtcp_rtt_stats(), |
| 179 congestion_controller_->pacer(), | 171 congestion_controller_->pacer(), |
| 180 congestion_controller_->packet_router(), | 172 congestion_controller_->packet_router()), |
| 181 1, | |
| 182 false), | |
| 183 vie_receiver_(vie_channel_.vie_receiver()), | 173 vie_receiver_(vie_channel_.vie_receiver()), |
| 184 vie_sync_(vcm_.get()), | 174 vie_sync_(vcm_.get()), |
| 185 rtp_rtcp_(vie_channel_.rtp_rtcp().front()) { | 175 rtp_rtcp_(vie_channel_.rtp_rtcp()) { |
| 186 LOG(LS_INFO) << "VideoReceiveStream: " << config_.ToString(); | 176 LOG(LS_INFO) << "VideoReceiveStream: " << config_.ToString(); |
| 187 | 177 |
| 188 RTC_DCHECK(process_thread_); | 178 RTC_DCHECK(process_thread_); |
| 189 RTC_DCHECK(congestion_controller_); | 179 RTC_DCHECK(congestion_controller_); |
| 190 RTC_DCHECK(call_stats_); | 180 RTC_DCHECK(call_stats_); |
| 191 RTC_DCHECK(remb_); | 181 RTC_DCHECK(remb_); |
| 192 RTC_CHECK(vie_channel_.Init() == 0); | 182 RTC_CHECK(vie_channel_.Init() == 0); |
| 193 | 183 |
| 194 // Register the channel to receive stats updates. | 184 // Register the channel to receive stats updates. |
| 195 call_stats_->RegisterStatsObserver(vie_channel_.GetStatsObserver()); | 185 call_stats_->RegisterStatsObserver(vie_channel_.GetStatsObserver()); |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 const std::vector<uint16_t>& sequence_numbers) { | 418 const std::vector<uint16_t>& sequence_numbers) { |
| 429 rtp_rtcp_->SendNack(sequence_numbers); | 419 rtp_rtcp_->SendNack(sequence_numbers); |
| 430 } | 420 } |
| 431 | 421 |
| 432 void VideoReceiveStream::RequestKeyFrame() { | 422 void VideoReceiveStream::RequestKeyFrame() { |
| 433 rtp_rtcp_->RequestKeyFrame(); | 423 rtp_rtcp_->RequestKeyFrame(); |
| 434 } | 424 } |
| 435 | 425 |
| 436 } // namespace internal | 426 } // namespace internal |
| 437 } // namespace webrtc | 427 } // namespace webrtc |
| OLD | NEW |