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

Side by Side Diff: webrtc/api/rtpsender.cc

Issue 1842073002: Change VideoSourceInterface::needs_denoising() to return rtc::Optional<bool> (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 } 325 }
326 stopped_ = true; 326 stopped_ = true;
327 } 327 }
328 328
329 void VideoRtpSender::SetVideoSend() { 329 void VideoRtpSender::SetVideoSend() {
330 RTC_DCHECK(!stopped_ && can_send_track()); 330 RTC_DCHECK(!stopped_ && can_send_track());
331 cricket::VideoOptions options; 331 cricket::VideoOptions options;
332 VideoTrackSourceInterface* source = track_->GetSource(); 332 VideoTrackSourceInterface* source = track_->GetSource();
333 if (source) { 333 if (source) {
334 options.is_screencast = rtc::Optional<bool>(source->is_screencast()); 334 options.is_screencast = rtc::Optional<bool>(source->is_screencast());
335 options.video_noise_reduction = 335 options.video_noise_reduction = source->needs_denoising();
336 rtc::Optional<bool>(source->needs_denoising());
337 } 336 }
338 provider_->SetVideoSend(ssrc_, track_->enabled(), &options); 337 provider_->SetVideoSend(ssrc_, track_->enabled(), &options);
339 } 338 }
340 339
341 RtpParameters VideoRtpSender::GetParameters() const { 340 RtpParameters VideoRtpSender::GetParameters() const {
342 return provider_->GetVideoRtpParameters(ssrc_); 341 return provider_->GetVideoRtpParameters(ssrc_);
343 } 342 }
344 343
345 bool VideoRtpSender::SetParameters(const RtpParameters& parameters) { 344 bool VideoRtpSender::SetParameters(const RtpParameters& parameters) {
346 return provider_->SetVideoRtpParameters(ssrc_, parameters); 345 return provider_->SetVideoRtpParameters(ssrc_, parameters);
347 } 346 }
348 347
349 } // namespace webrtc 348 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698