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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 VideoCodecVP9 VideoEncoder::GetDefaultVp9Settings() { | 50 VideoCodecVP9 VideoEncoder::GetDefaultVp9Settings() { |
51 VideoCodecVP9 vp9_settings; | 51 VideoCodecVP9 vp9_settings; |
52 memset(&vp9_settings, 0, sizeof(vp9_settings)); | 52 memset(&vp9_settings, 0, sizeof(vp9_settings)); |
53 | 53 |
54 vp9_settings.resilience = 1; | 54 vp9_settings.resilience = 1; |
55 vp9_settings.numberOfTemporalLayers = 1; | 55 vp9_settings.numberOfTemporalLayers = 1; |
56 vp9_settings.denoisingOn = false; | 56 vp9_settings.denoisingOn = false; |
57 vp9_settings.frameDroppingOn = true; | 57 vp9_settings.frameDroppingOn = true; |
58 vp9_settings.keyFrameInterval = 3000; | 58 vp9_settings.keyFrameInterval = 3000; |
59 vp9_settings.adaptiveQpMode = true; | 59 vp9_settings.adaptiveQpMode = true; |
60 | 60 vp9_settings.numberOfSpatialLayers = 1; |
| 61 vp9_settings.flexibleMode = false; |
61 return vp9_settings; | 62 return vp9_settings; |
62 } | 63 } |
63 | 64 |
64 VideoCodecH264 VideoEncoder::GetDefaultH264Settings() { | 65 VideoCodecH264 VideoEncoder::GetDefaultH264Settings() { |
65 VideoCodecH264 h264_settings; | 66 VideoCodecH264 h264_settings; |
66 memset(&h264_settings, 0, sizeof(h264_settings)); | 67 memset(&h264_settings, 0, sizeof(h264_settings)); |
67 | 68 |
68 h264_settings.profile = kProfileBase; | 69 h264_settings.profile = kProfileBase; |
69 h264_settings.frameDroppingOn = true; | 70 h264_settings.frameDroppingOn = true; |
70 h264_settings.keyFrameInterval = 3000; | 71 h264_settings.keyFrameInterval = 3000; |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 709 |
709 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem( | 710 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem( |
710 uint8_t payload_type) const { | 711 uint8_t payload_type) const { |
711 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type); | 712 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type); |
712 if (it != dec_external_map_.end()) { | 713 if (it != dec_external_map_.end()) { |
713 return (*it).second; | 714 return (*it).second; |
714 } | 715 } |
715 return NULL; | 716 return NULL; |
716 } | 717 } |
717 } // namespace webrtc | 718 } // namespace webrtc |
OLD | NEW |