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

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 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 rtc::CritScope stream_lock(&stream_crit_); 1095 rtc::CritScope stream_lock(&stream_crit_);
1096 1096
1097 if (!ValidateSendSsrcAvailability(sp)) 1097 if (!ValidateSendSsrcAvailability(sp))
1098 return false; 1098 return false;
1099 1099
1100 for (uint32_t used_ssrc : sp.ssrcs) 1100 for (uint32_t used_ssrc : sp.ssrcs)
1101 send_ssrcs_.insert(used_ssrc); 1101 send_ssrcs_.insert(used_ssrc);
1102 1102
1103 webrtc::VideoSendStream::Config config(this); 1103 webrtc::VideoSendStream::Config config(this);
1104 config.suspend_below_min_bitrate = video_config_.suspend_below_min_bitrate; 1104 config.suspend_below_min_bitrate = video_config_.suspend_below_min_bitrate;
1105 config.periodic_alr_bandwidth_probing =
1106 video_config_.periodic_alr_bandwidth_probing;
1105 WebRtcVideoSendStream* stream = new WebRtcVideoSendStream( 1107 WebRtcVideoSendStream* stream = new WebRtcVideoSendStream(
1106 call_, sp, std::move(config), default_send_options_, 1108 call_, sp, std::move(config), default_send_options_,
1107 external_encoder_factory_, video_config_.enable_cpu_overuse_detection, 1109 external_encoder_factory_, video_config_.enable_cpu_overuse_detection,
1108 bitrate_config_.max_bitrate_bps, send_codec_, send_rtp_extensions_, 1110 bitrate_config_.max_bitrate_bps, send_codec_, send_rtp_extensions_,
1109 send_params_); 1111 send_params_);
1110 1112
1111 uint32_t ssrc = sp.first_ssrc(); 1113 uint32_t ssrc = sp.first_ssrc();
1112 RTC_DCHECK(ssrc != 0); 1114 RTC_DCHECK(ssrc != 0);
1113 send_streams_[ssrc] = stream; 1115 send_streams_[ssrc] = stream;
1114 1116
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 rtx_mapping[video_codecs[i].codec.id] != 2603 rtx_mapping[video_codecs[i].codec.id] !=
2602 ulpfec_config.red_payload_type) { 2604 ulpfec_config.red_payload_type) {
2603 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; 2605 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id];
2604 } 2606 }
2605 } 2607 }
2606 2608
2607 return video_codecs; 2609 return video_codecs;
2608 } 2610 }
2609 2611
2610 } // namespace cricket 2612 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/modules/congestion_controller/congestion_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698