OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 26 matching lines...) Expand all Loading... |
37 vp8_settings.frameDroppingOn = true; | 37 vp8_settings.frameDroppingOn = true; |
38 vp8_settings.keyFrameInterval = 3000; | 38 vp8_settings.keyFrameInterval = 3000; |
39 | 39 |
40 return vp8_settings; | 40 return vp8_settings; |
41 } | 41 } |
42 | 42 |
43 VideoCodecVP9 VideoEncoder::GetDefaultVp9Settings() { | 43 VideoCodecVP9 VideoEncoder::GetDefaultVp9Settings() { |
44 VideoCodecVP9 vp9_settings; | 44 VideoCodecVP9 vp9_settings; |
45 memset(&vp9_settings, 0, sizeof(vp9_settings)); | 45 memset(&vp9_settings, 0, sizeof(vp9_settings)); |
46 | 46 |
47 vp9_settings.resilience = 1; | 47 vp9_settings.resilienceOn = true; |
48 vp9_settings.numberOfTemporalLayers = 1; | 48 vp9_settings.numberOfTemporalLayers = 1; |
49 vp9_settings.denoisingOn = false; | 49 vp9_settings.denoisingOn = false; |
50 vp9_settings.frameDroppingOn = true; | 50 vp9_settings.frameDroppingOn = true; |
51 vp9_settings.keyFrameInterval = 3000; | 51 vp9_settings.keyFrameInterval = 3000; |
52 vp9_settings.adaptiveQpMode = true; | 52 vp9_settings.adaptiveQpMode = true; |
53 vp9_settings.automaticResizeOn = true; | 53 vp9_settings.automaticResizeOn = true; |
54 vp9_settings.numberOfSpatialLayers = 1; | 54 vp9_settings.numberOfSpatialLayers = 1; |
55 vp9_settings.flexibleMode = false; | 55 vp9_settings.flexibleMode = false; |
56 return vp9_settings; | 56 return vp9_settings; |
57 } | 57 } |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 | 583 |
584 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem( | 584 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem( |
585 uint8_t payload_type) const { | 585 uint8_t payload_type) const { |
586 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type); | 586 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type); |
587 if (it != dec_external_map_.end()) { | 587 if (it != dec_external_map_.end()) { |
588 return (*it).second; | 588 return (*it).second; |
589 } | 589 } |
590 return nullptr; | 590 return nullptr; |
591 } | 591 } |
592 } // namespace webrtc | 592 } // namespace webrtc |
OLD | NEW |