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

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2.cc

Issue 2504023002: Implement periodic bandwidth probing in application-limited region. (Closed)
Patch Set: Address feedback Created 4 years 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 rtc::CritScope stream_lock(&stream_crit_); 1085 rtc::CritScope stream_lock(&stream_crit_);
1086 1086
1087 if (!ValidateSendSsrcAvailability(sp)) 1087 if (!ValidateSendSsrcAvailability(sp))
1088 return false; 1088 return false;
1089 1089
1090 for (uint32_t used_ssrc : sp.ssrcs) 1090 for (uint32_t used_ssrc : sp.ssrcs)
1091 send_ssrcs_.insert(used_ssrc); 1091 send_ssrcs_.insert(used_ssrc);
1092 1092
1093 webrtc::VideoSendStream::Config config(this); 1093 webrtc::VideoSendStream::Config config(this);
1094 config.suspend_below_min_bitrate = video_config_.suspend_below_min_bitrate; 1094 config.suspend_below_min_bitrate = video_config_.suspend_below_min_bitrate;
1095 config.periodic_alr_bandwidth_probing =
1096 video_config_.periodic_alr_bandwidth_probing;
1095 WebRtcVideoSendStream* stream = new WebRtcVideoSendStream( 1097 WebRtcVideoSendStream* stream = new WebRtcVideoSendStream(
1096 call_, sp, std::move(config), default_send_options_, 1098 call_, sp, std::move(config), default_send_options_,
1097 external_encoder_factory_, video_config_.enable_cpu_overuse_detection, 1099 external_encoder_factory_, video_config_.enable_cpu_overuse_detection,
1098 bitrate_config_.max_bitrate_bps, send_codec_, send_rtp_extensions_, 1100 bitrate_config_.max_bitrate_bps, send_codec_, send_rtp_extensions_,
1099 send_params_); 1101 send_params_);
1100 1102
1101 uint32_t ssrc = sp.first_ssrc(); 1103 uint32_t ssrc = sp.first_ssrc();
1102 RTC_DCHECK(ssrc != 0); 1104 RTC_DCHECK(ssrc != 0);
1103 send_streams_[ssrc] = stream; 1105 send_streams_[ssrc] = stream;
1104 1106
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 rtx_mapping[video_codecs[i].codec.id] != 2550 rtx_mapping[video_codecs[i].codec.id] !=
2549 ulpfec_config.red_payload_type) { 2551 ulpfec_config.red_payload_type) {
2550 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; 2552 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id];
2551 } 2553 }
2552 } 2554 }
2553 2555
2554 return video_codecs; 2556 return video_codecs;
2555 } 2557 }
2556 2558
2557 } // namespace cricket 2559 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698