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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 if (is_screencast) { | 414 if (is_screencast) { |
415 // TODO(asapersson): Set to 2 for now since there is a DCHECK in | 415 // TODO(asapersson): Set to 2 for now since there is a DCHECK in |
416 // VideoSendStream::ReconfigureVideoEncoder. | 416 // VideoSendStream::ReconfigureVideoEncoder. |
417 vp9_settings.numberOfSpatialLayers = 2; | 417 vp9_settings.numberOfSpatialLayers = 2; |
418 } else { | 418 } else { |
419 vp9_settings.numberOfSpatialLayers = GetDefaultVp9SpatialLayers(); | 419 vp9_settings.numberOfSpatialLayers = GetDefaultVp9SpatialLayers(); |
420 } | 420 } |
421 // VP9 denoising is disabled by default. | 421 // VP9 denoising is disabled by default. |
422 vp9_settings.denoisingOn = codec_default_denoising ? true : denoising; | 422 vp9_settings.denoisingOn = codec_default_denoising ? true : denoising; |
423 vp9_settings.frameDroppingOn = frame_dropping; | 423 vp9_settings.frameDroppingOn = frame_dropping; |
| 424 vp9_settings.automaticResizeOn = automatic_resize; |
424 return new rtc::RefCountedObject< | 425 return new rtc::RefCountedObject< |
425 webrtc::VideoEncoderConfig::Vp9EncoderSpecificSettings>(vp9_settings); | 426 webrtc::VideoEncoderConfig::Vp9EncoderSpecificSettings>(vp9_settings); |
426 } | 427 } |
427 return nullptr; | 428 return nullptr; |
428 } | 429 } |
429 | 430 |
430 DefaultUnsignalledSsrcHandler::DefaultUnsignalledSsrcHandler() | 431 DefaultUnsignalledSsrcHandler::DefaultUnsignalledSsrcHandler() |
431 : default_recv_ssrc_(0), default_sink_(NULL) {} | 432 : default_recv_ssrc_(0), default_sink_(NULL) {} |
432 | 433 |
433 UnsignalledSsrcHandler::Action DefaultUnsignalledSsrcHandler::OnUnsignalledSsrc( | 434 UnsignalledSsrcHandler::Action DefaultUnsignalledSsrcHandler::OnUnsignalledSsrc( |
(...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2607 rtx_mapping[video_codecs[i].codec.id] != | 2608 rtx_mapping[video_codecs[i].codec.id] != |
2608 ulpfec_config.red_payload_type) { | 2609 ulpfec_config.red_payload_type) { |
2609 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2610 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
2610 } | 2611 } |
2611 } | 2612 } |
2612 | 2613 |
2613 return video_codecs; | 2614 return video_codecs; |
2614 } | 2615 } |
2615 | 2616 |
2616 } // namespace cricket | 2617 } // namespace cricket |
OLD | NEW |