niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 1 | /* |
xians@webrtc.org | 9b3474a | 2012-02-02 08:59:11 +0000 | [diff] [blame] | 2 | * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #ifndef WEBRTC_ENGINE_CONFIGURATIONS_H_ |
| 12 | #define WEBRTC_ENGINE_CONFIGURATIONS_H_ |
| 13 | |
| 14 | // ============================================================================ |
| 15 | // Voice and Video |
| 16 | // ============================================================================ |
| 17 | |
niklas.enbom@webrtc.org | b2c115c | 2011-12-21 07:38:54 +0000 | [diff] [blame] | 18 | // Don't link in socket support in Chrome |
| 19 | #ifdef WEBRTC_CHROMIUM_BUILD |
| 20 | #define WEBRTC_EXTERNAL_TRANSPORT |
| 21 | #endif |
| 22 | |
| 23 | // Optional to enable stand-alone |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 24 | // #define WEBRTC_EXTERNAL_TRANSPORT |
| 25 | |
| 26 | // ---------------------------------------------------------------------------- |
| 27 | // [Voice] Codec settings |
| 28 | // ---------------------------------------------------------------------------- |
| 29 | |
kma@webrtc.org | 94771cb | 2012-08-28 04:09:50 +0000 | [diff] [blame^] | 30 | #ifdef WEBRTC_ARCH_ARM |
leozwang@webrtc.org | 22082e7 | 2012-04-18 16:52:00 +0000 | [diff] [blame] | 31 | #define WEBRTC_CODEC_ISACFX // fix-point iSAC implementation |
| 32 | #else |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 33 | #define WEBRTC_CODEC_ISAC // floating-point iSAC implementation (default) |
leozwang@webrtc.org | 22082e7 | 2012-04-18 16:52:00 +0000 | [diff] [blame] | 34 | #endif |
xians@webrtc.org | 0dffc64 | 2011-11-30 15:35:44 +0000 | [diff] [blame] | 35 | #define WEBRTC_CODEC_AVT |
| 36 | |
| 37 | #ifndef WEBRTC_CHROMIUM_BUILD |
| 38 | #define WEBRTC_CODEC_ILBC |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 39 | #define WEBRTC_CODEC_G722 |
| 40 | #define WEBRTC_CODEC_PCM16 |
| 41 | #define WEBRTC_CODEC_RED |
xians@webrtc.org | 0dffc64 | 2011-11-30 15:35:44 +0000 | [diff] [blame] | 42 | #endif |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 43 | |
| 44 | // ---------------------------------------------------------------------------- |
| 45 | // [Video] Codec settings |
| 46 | // ---------------------------------------------------------------------------- |
| 47 | |
| 48 | #define VIDEOCODEC_I420 |
| 49 | #define VIDEOCODEC_VP8 |
| 50 | |
| 51 | // ============================================================================ |
| 52 | // VoiceEngine |
| 53 | // ============================================================================ |
| 54 | |
| 55 | // ---------------------------------------------------------------------------- |
| 56 | // Settings for VoiceEngine |
| 57 | // ---------------------------------------------------------------------------- |
| 58 | |
| 59 | #define WEBRTC_VOICE_ENGINE_AGC // Near-end AGC |
| 60 | #define WEBRTC_VOICE_ENGINE_ECHO // Near-end AEC |
| 61 | #define WEBRTC_VOICE_ENGINE_NR // Near-end NS |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 62 | #define WEBRTC_VOE_EXTERNAL_REC_AND_PLAYOUT |
| 63 | |
xians@webrtc.org | 832d7c6 | 2011-12-08 16:45:46 +0000 | [diff] [blame] | 64 | #ifndef WEBRTC_CHROMIUM_BUILD |
| 65 | #define WEBRTC_VOICE_ENGINE_TYPING_DETECTION // Typing detection |
| 66 | #endif |
| 67 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 68 | // ---------------------------------------------------------------------------- |
| 69 | // VoiceEngine sub-APIs |
| 70 | // ---------------------------------------------------------------------------- |
| 71 | |
| 72 | #define WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 73 | #define WEBRTC_VOICE_ENGINE_CODEC_API |
| 74 | #define WEBRTC_VOICE_ENGINE_DTMF_API |
xians@webrtc.org | 5b6d3ce | 2012-03-15 14:40:00 +0000 | [diff] [blame] | 75 | #define WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API |
| 76 | #define WEBRTC_VOICE_ENGINE_FILE_API |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 77 | #define WEBRTC_VOICE_ENGINE_HARDWARE_API |
| 78 | #define WEBRTC_VOICE_ENGINE_NETEQ_STATS_API |
| 79 | #define WEBRTC_VOICE_ENGINE_NETWORK_API |
| 80 | #define WEBRTC_VOICE_ENGINE_RTP_RTCP_API |
| 81 | #define WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API |
| 82 | #define WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API |
| 83 | |
xians@webrtc.org | 9b3474a | 2012-02-02 08:59:11 +0000 | [diff] [blame] | 84 | #ifndef WEBRTC_CHROMIUM_BUILD |
| 85 | #define WEBRTC_VOICE_ENGINE_CALL_REPORT_API |
| 86 | #define WEBRTC_VOICE_ENGINE_ENCRYPTION_API |
xians@webrtc.org | 9b3474a | 2012-02-02 08:59:11 +0000 | [diff] [blame] | 87 | #endif |
| 88 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 89 | // ============================================================================ |
| 90 | // VideoEngine |
| 91 | // ============================================================================ |
| 92 | |
| 93 | // ---------------------------------------------------------------------------- |
| 94 | // Settings for special VideoEngine configurations |
| 95 | // ---------------------------------------------------------------------------- |
| 96 | // ---------------------------------------------------------------------------- |
| 97 | // VideoEngine sub-API:s |
| 98 | // ---------------------------------------------------------------------------- |
| 99 | |
| 100 | #define WEBRTC_VIDEO_ENGINE_CAPTURE_API |
| 101 | #define WEBRTC_VIDEO_ENGINE_CODEC_API |
| 102 | #define WEBRTC_VIDEO_ENGINE_ENCRYPTION_API |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 103 | #define WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API |
| 104 | #define WEBRTC_VIDEO_ENGINE_NETWORK_API |
| 105 | #define WEBRTC_VIDEO_ENGINE_RENDER_API |
| 106 | #define WEBRTC_VIDEO_ENGINE_RTP_RTCP_API |
| 107 | // #define WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API |
| 108 | |
andrew@webrtc.org | f5a91fd | 2012-07-23 16:28:02 +0000 | [diff] [blame] | 109 | // Now handled by gyp: |
| 110 | // WEBRTC_VIDEO_ENGINE_FILE_API |
xians@webrtc.org | 594ab3c | 2012-02-08 10:38:12 +0000 | [diff] [blame] | 111 | |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 112 | // ============================================================================ |
| 113 | // Platform specific configurations |
| 114 | // ============================================================================ |
| 115 | |
| 116 | // ---------------------------------------------------------------------------- |
| 117 | // VideoEngine Windows |
| 118 | // ---------------------------------------------------------------------------- |
| 119 | |
| 120 | #if defined(_WIN32) |
andrew@webrtc.org | 8012474 | 2012-03-08 17:54:24 +0000 | [diff] [blame] | 121 | // #define DIRECTDRAW_RENDERING |
| 122 | #define DIRECT3D9_RENDERING // Requires DirectX 9. |
| 123 | #endif |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 124 | |
| 125 | // ---------------------------------------------------------------------------- |
| 126 | // VideoEngine MAC |
| 127 | // ---------------------------------------------------------------------------- |
| 128 | |
| 129 | #if defined(WEBRTC_MAC) && !defined(MAC_IPHONE) |
andrew@webrtc.org | 8012474 | 2012-03-08 17:54:24 +0000 | [diff] [blame] | 130 | // #define CARBON_RENDERING |
| 131 | #define COCOA_RENDERING |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 132 | #endif |
| 133 | |
| 134 | // ---------------------------------------------------------------------------- |
| 135 | // VideoEngine Mobile iPhone |
| 136 | // ---------------------------------------------------------------------------- |
| 137 | |
| 138 | #if defined(MAC_IPHONE) |
andrew@webrtc.org | 8012474 | 2012-03-08 17:54:24 +0000 | [diff] [blame] | 139 | #define EAGL_RENDERING |
niklase@google.com | 470e71d | 2011-07-07 08:21:25 +0000 | [diff] [blame] | 140 | #endif |
| 141 | |
| 142 | // ---------------------------------------------------------------------------- |
| 143 | // Deprecated |
| 144 | // ---------------------------------------------------------------------------- |
| 145 | |
| 146 | // #define WEBRTC_CODEC_G729 |
| 147 | // #define WEBRTC_DTMF_DETECTION |
| 148 | // #define WEBRTC_SRTP |
| 149 | // #define WEBRTC_SRTP_ALLOW_ROC_ITERATION |
| 150 | |
| 151 | #endif // WEBRTC_ENGINE_CONFIGURATIONS_H_ |