| OLD | NEW |
| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 webrtc::VideoCodecVP9 vp9_settings = | 402 webrtc::VideoCodecVP9 vp9_settings = |
| 403 webrtc::VideoEncoder::GetDefaultVp9Settings(); | 403 webrtc::VideoEncoder::GetDefaultVp9Settings(); |
| 404 if (is_screencast) { | 404 if (is_screencast) { |
| 405 // TODO(asapersson): Set to 2 for now since there is a DCHECK in | 405 // TODO(asapersson): Set to 2 for now since there is a DCHECK in |
| 406 // VideoSendStream::ReconfigureVideoEncoder. | 406 // VideoSendStream::ReconfigureVideoEncoder. |
| 407 vp9_settings.numberOfSpatialLayers = 2; | 407 vp9_settings.numberOfSpatialLayers = 2; |
| 408 } else { | 408 } else { |
| 409 vp9_settings.numberOfSpatialLayers = GetDefaultVp9SpatialLayers(); | 409 vp9_settings.numberOfSpatialLayers = GetDefaultVp9SpatialLayers(); |
| 410 } | 410 } |
| 411 // VP9 denoising is disabled by default. | 411 // VP9 denoising is disabled by default. |
| 412 vp9_settings.denoisingOn = codec_default_denoising ? false : denoising; | 412 vp9_settings.denoisingOn = codec_default_denoising ? true : denoising; |
| 413 vp9_settings.frameDroppingOn = frame_dropping; | 413 vp9_settings.frameDroppingOn = frame_dropping; |
| 414 return new rtc::RefCountedObject< | 414 return new rtc::RefCountedObject< |
| 415 webrtc::VideoEncoderConfig::Vp9EncoderSpecificSettings>(vp9_settings); | 415 webrtc::VideoEncoderConfig::Vp9EncoderSpecificSettings>(vp9_settings); |
| 416 } | 416 } |
| 417 return nullptr; | 417 return nullptr; |
| 418 } | 418 } |
| 419 | 419 |
| 420 DefaultUnsignalledSsrcHandler::DefaultUnsignalledSsrcHandler() | 420 DefaultUnsignalledSsrcHandler::DefaultUnsignalledSsrcHandler() |
| 421 : default_recv_ssrc_(0), default_sink_(NULL) {} | 421 : default_recv_ssrc_(0), default_sink_(NULL) {} |
| 422 | 422 |
| (...skipping 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2559 rtx_mapping[video_codecs[i].codec.id] != | 2559 rtx_mapping[video_codecs[i].codec.id] != |
| 2560 ulpfec_config.red_payload_type) { | 2560 ulpfec_config.red_payload_type) { |
| 2561 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2561 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
| 2562 } | 2562 } |
| 2563 } | 2563 } |
| 2564 | 2564 |
| 2565 return video_codecs; | 2565 return video_codecs; |
| 2566 } | 2566 } |
| 2567 | 2567 |
| 2568 } // namespace cricket | 2568 } // namespace cricket |
| OLD | NEW |