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

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: Added histogram to BUILD.gn. 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
« no previous file with comments | « webrtc/video/video_receive_stream.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 this,
166 this)),
163 incoming_video_stream_( 167 incoming_video_stream_(
164 0, 168 0,
165 config.renderer ? config.renderer->SmoothsRenderedFrames() : false), 169 config.renderer ? config.renderer->SmoothsRenderedFrames() : false),
166 stats_proxy_(config_, clock_), 170 stats_proxy_(config_, clock_),
167 vie_channel_(&transport_adapter_, 171 vie_channel_(&transport_adapter_,
168 process_thread, 172 process_thread,
169 nullptr, 173 nullptr,
170 vcm_.get(), 174 vcm_.get(),
171 nullptr, 175 nullptr,
172 nullptr, 176 nullptr,
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 bool VideoReceiveStream::DecodeThreadFunction(void* ptr) { 421 bool VideoReceiveStream::DecodeThreadFunction(void* ptr) {
418 static_cast<VideoReceiveStream*>(ptr)->Decode(); 422 static_cast<VideoReceiveStream*>(ptr)->Decode();
419 return true; 423 return true;
420 } 424 }
421 425
422 void VideoReceiveStream::Decode() { 426 void VideoReceiveStream::Decode() {
423 static const int kMaxDecodeWaitTimeMs = 50; 427 static const int kMaxDecodeWaitTimeMs = 50;
424 vcm_->Decode(kMaxDecodeWaitTimeMs); 428 vcm_->Decode(kMaxDecodeWaitTimeMs);
425 } 429 }
426 430
431 void VideoReceiveStream::SendNack(
432 const std::vector<uint16_t>& sequence_numbers) {
433 rtp_rtcp_->SendNack(sequence_numbers);
434 }
435
436 void VideoReceiveStream::RequestKeyFrame() {
437 rtp_rtcp_->RequestKeyFrame();
438 }
439
427 } // namespace internal 440 } // namespace internal
428 } // namespace webrtc 441 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/video_receive_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698