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 |
11 #include "webrtc/modules/video_coding/main/source/codec_database.h" | 11 #include "webrtc/modules/video_coding/main/source/codec_database.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
15 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
| 16 #include "webrtc/base/logging.h" |
16 #include "webrtc/engine_configurations.h" | 17 #include "webrtc/engine_configurations.h" |
17 #ifdef VIDEOCODEC_H264 | 18 #ifdef VIDEOCODEC_H264 |
18 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" | 19 #include "webrtc/modules/video_coding/codecs/h264/include/h264.h" |
19 #endif | 20 #endif |
20 #ifdef VIDEOCODEC_I420 | 21 #ifdef VIDEOCODEC_I420 |
21 #include "webrtc/modules/video_coding/codecs/i420/include/i420.h" | 22 #include "webrtc/modules/video_coding/codecs/i420/include/i420.h" |
22 #endif | 23 #endif |
23 #ifdef VIDEOCODEC_VP8 | 24 #ifdef VIDEOCODEC_VP8 |
24 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 25 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
25 #endif | 26 #endif |
26 #ifdef VIDEOCODEC_VP9 | 27 #ifdef VIDEOCODEC_VP9 |
27 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" | 28 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" |
28 #endif | 29 #endif |
29 #include "webrtc/modules/video_coding/main/source/internal_defines.h" | 30 #include "webrtc/modules/video_coding/main/source/internal_defines.h" |
30 #include "webrtc/system_wrappers/include/logging.h" | |
31 | 31 |
32 namespace { | 32 namespace { |
33 const size_t kDefaultPayloadSize = 1440; | 33 const size_t kDefaultPayloadSize = 1440; |
34 const uint8_t kDefaultPayloadType = 100; | 34 const uint8_t kDefaultPayloadType = 100; |
35 } | 35 } |
36 | 36 |
37 namespace webrtc { | 37 namespace webrtc { |
38 | 38 |
39 VideoCodecVP8 VideoEncoder::GetDefaultVp8Settings() { | 39 VideoCodecVP8 VideoEncoder::GetDefaultVp8Settings() { |
40 VideoCodecVP8 vp8_settings; | 40 VideoCodecVP8 vp8_settings; |
(...skipping 637 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 |