Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: webrtc/video/video_receive_stream.cc

Issue 1778503002: Experiment for the nack module. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_, nullptr, nullptr)), 162 vcm_(VideoCodingModule::Create(clock_,
163 nullptr,
164 nullptr,
165 process_thread_,
166 this,
167 this)),
163 incoming_video_stream_( 168 incoming_video_stream_(
164 0, 169 0,
165 config.renderer ? config.renderer->SmoothsRenderedFrames() : false), 170 config.renderer ? config.renderer->SmoothsRenderedFrames() : false),
166 stats_proxy_(config_, clock_), 171 stats_proxy_(config_, clock_),
167 vie_channel_(&transport_adapter_, 172 vie_channel_(&transport_adapter_,
168 process_thread, 173 process_thread,
169 nullptr, 174 nullptr,
170 vcm_.get(), 175 vcm_.get(),
171 nullptr, 176 nullptr,
172 nullptr, 177 nullptr,
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 bool VideoReceiveStream::DecodeThreadFunction(void* ptr) { 422 bool VideoReceiveStream::DecodeThreadFunction(void* ptr) {
418 static_cast<VideoReceiveStream*>(ptr)->Decode(); 423 static_cast<VideoReceiveStream*>(ptr)->Decode();
419 return true; 424 return true;
420 } 425 }
421 426
422 void VideoReceiveStream::Decode() { 427 void VideoReceiveStream::Decode() {
423 static const int kMaxDecodeWaitTimeMs = 50; 428 static const int kMaxDecodeWaitTimeMs = 50;
424 vcm_->Decode(kMaxDecodeWaitTimeMs); 429 vcm_->Decode(kMaxDecodeWaitTimeMs);
425 } 430 }
426 431
432 void VideoReceiveStream::SendNack(
433 const std::vector<uint16_t>& sequence_numbers) {
434 rtp_rtcp_->SendNack(sequence_numbers);
435 }
436
437 void VideoReceiveStream::RequestKeyFrame() {
438 rtp_rtcp_->RequestKeyFrame();
439 }
440
427 } // namespace internal 441 } // namespace internal
428 } // namespace webrtc 442 } // namespace webrtc
OLDNEW
« webrtc/video/video_receive_stream.h ('K') | « webrtc/video/video_receive_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698