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

Side by Side Diff: webrtc/modules/video_coding/video_receiver.cc

Issue 1942683003: Jitter delay now depend on protection mode (FEC/NACK). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 switch (videoProtection) { 168 switch (videoProtection) {
169 case kProtectionNack: { 169 case kProtectionNack: {
170 RTC_DCHECK(enable); 170 RTC_DCHECK(enable);
171 _receiver.SetNackMode(kNack, -1, -1); 171 _receiver.SetNackMode(kNack, -1, -1);
172 break; 172 break;
173 } 173 }
174 174
175 case kProtectionNackFEC: { 175 case kProtectionNackFEC: {
176 rtc::CritScope cs(&receive_crit_); 176 rtc::CritScope cs(&receive_crit_);
177 RTC_DCHECK(enable); 177 RTC_DCHECK(enable);
178 _receiver.SetNackMode(kNack, media_optimization::kLowRttNackMs, -1); 178 _receiver.SetNackMode(kNack, media_optimization::kLowRttNackMs, 500);
stefan-webrtc 2016/05/04 09:30:48 500 should be a named constant. What does it repre
philipel 2016/05/04 10:56:05 This value represent the threshold rtt after which
179 _receiver.SetDecodeErrorMode(kNoErrors); 179 _receiver.SetDecodeErrorMode(kNoErrors);
180 break; 180 break;
181 } 181 }
182 case kProtectionFEC: 182 case kProtectionFEC:
183 case kProtectionNone: 183 case kProtectionNone:
184 // No receiver-side protection. 184 // No receiver-side protection.
185 RTC_DCHECK(enable); 185 RTC_DCHECK(enable);
186 _receiver.SetNackMode(kNoNack, -1, -1); 186 _receiver.SetNackMode(kNoNack, -1, -1);
187 _receiver.SetDecodeErrorMode(kWithErrors); 187 _receiver.SetDecodeErrorMode(kWithErrors);
188 break; 188 break;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 _receiver.SetNackSettings(max_nack_list_size, max_packet_age_to_nack, 516 _receiver.SetNackSettings(max_nack_list_size, max_packet_age_to_nack,
517 max_incomplete_time_ms); 517 max_incomplete_time_ms);
518 } 518 }
519 519
520 int VideoReceiver::SetMinReceiverDelay(int desired_delay_ms) { 520 int VideoReceiver::SetMinReceiverDelay(int desired_delay_ms) {
521 return _receiver.SetMinReceiverDelay(desired_delay_ms); 521 return _receiver.SetMinReceiverDelay(desired_delay_ms);
522 } 522 }
523 523
524 } // namespace vcm 524 } // namespace vcm
525 } // namespace webrtc 525 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698