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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 VideoCodecVP9 VideoEncoder::GetDefaultVp9Settings() { | 54 VideoCodecVP9 VideoEncoder::GetDefaultVp9Settings() { |
55 VideoCodecVP9 vp9_settings; | 55 VideoCodecVP9 vp9_settings; |
56 memset(&vp9_settings, 0, sizeof(vp9_settings)); | 56 memset(&vp9_settings, 0, sizeof(vp9_settings)); |
57 | 57 |
58 vp9_settings.resilience = 1; | 58 vp9_settings.resilience = 1; |
59 vp9_settings.numberOfTemporalLayers = 1; | 59 vp9_settings.numberOfTemporalLayers = 1; |
60 vp9_settings.denoisingOn = false; | 60 vp9_settings.denoisingOn = false; |
61 vp9_settings.frameDroppingOn = true; | 61 vp9_settings.frameDroppingOn = true; |
62 vp9_settings.keyFrameInterval = 3000; | 62 vp9_settings.keyFrameInterval = 3000; |
63 vp9_settings.adaptiveQpMode = true; | 63 vp9_settings.adaptiveQpMode = true; |
64 vp9_settings.automaticResizeOn = false; | 64 vp9_settings.automaticResizeOn = true; |
65 vp9_settings.numberOfSpatialLayers = 1; | 65 vp9_settings.numberOfSpatialLayers = 1; |
66 vp9_settings.flexibleMode = false; | 66 vp9_settings.flexibleMode = false; |
67 return vp9_settings; | 67 return vp9_settings; |
68 } | 68 } |
69 | 69 |
70 VideoCodecH264 VideoEncoder::GetDefaultH264Settings() { | 70 VideoCodecH264 VideoEncoder::GetDefaultH264Settings() { |
71 VideoCodecH264 h264_settings; | 71 VideoCodecH264 h264_settings; |
72 memset(&h264_settings, 0, sizeof(h264_settings)); | 72 memset(&h264_settings, 0, sizeof(h264_settings)); |
73 | 73 |
74 h264_settings.profile = kProfileBase; | 74 h264_settings.profile = kProfileBase; |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 | 678 |
679 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem( | 679 const VCMExtDecoderMapItem* VCMCodecDataBase::FindExternalDecoderItem( |
680 uint8_t payload_type) const { | 680 uint8_t payload_type) const { |
681 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type); | 681 ExternalDecoderMap::const_iterator it = dec_external_map_.find(payload_type); |
682 if (it != dec_external_map_.end()) { | 682 if (it != dec_external_map_.end()) { |
683 return (*it).second; | 683 return (*it).second; |
684 } | 684 } |
685 return NULL; | 685 return NULL; |
686 } | 686 } |
687 } // namespace webrtc | 687 } // namespace webrtc |
OLD | NEW |