blob: 22b87e8509c8b9e92bf5f63c70fd72e3399bbe8e [file] [log] [blame]
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +00001/*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
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
andrew@webrtc.orgf47d0f82013-06-19 17:03:47 +000014#include "webrtc/typedefs.h"
15
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000016// ============================================================================
17// Voice and Video
18// ============================================================================
19
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000020// ----------------------------------------------------------------------------
21// [Voice] Codec settings
22// ----------------------------------------------------------------------------
23
24// iSAC is not included in the Mozilla build, but in all other builds.
25#ifndef WEBRTC_MOZILLA_BUILD
26#ifdef WEBRTC_ARCH_ARM
27#define WEBRTC_CODEC_ISACFX // Fix-point iSAC implementation.
28#else
29#define WEBRTC_CODEC_ISAC // Floating-point iSAC implementation (default).
30#endif // WEBRTC_ARCH_ARM
31#endif // !WEBRTC_MOZILLA_BUILD
32
33// AVT is included in all builds, along with G.711, NetEQ and CNG
34// (which are mandatory and don't have any defines).
35#define WEBRTC_CODEC_AVT
36
37// iLBC, G.722, PCM16B and Redundancy coding are excluded from Chromium and
38// Mozilla builds.
39#if !defined(WEBRTC_CHROMIUM_BUILD) && !defined(WEBRTC_MOZILLA_BUILD)
40#define WEBRTC_CODEC_ILBC
41#define WEBRTC_CODEC_G722
42#define WEBRTC_CODEC_PCM16
43#define WEBRTC_CODEC_RED
44#endif // !WEBRTC_CHROMIUM_BUILD && !WEBRTC_MOZILLA_BUILD
45
46// ----------------------------------------------------------------------------
47// [Video] Codec settings
48// ----------------------------------------------------------------------------
49
50#define VIDEOCODEC_I420
51#define VIDEOCODEC_VP8
52
53// ============================================================================
54// VoiceEngine
55// ============================================================================
56
57// ----------------------------------------------------------------------------
58// Settings for VoiceEngine
59// ----------------------------------------------------------------------------
60
61#define WEBRTC_VOICE_ENGINE_AGC // Near-end AGC
62#define WEBRTC_VOICE_ENGINE_ECHO // Near-end AEC
63#define WEBRTC_VOICE_ENGINE_NR // Near-end NS
64#define WEBRTC_VOE_EXTERNAL_REC_AND_PLAYOUT
65
andrew@webrtc.orgf47d0f82013-06-19 17:03:47 +000066#if !defined(WEBRTC_ANDROID) && !defined(WEBRTC_IOS) && \
67 !defined(WEBRTC_CHROMIUM_BUILD)
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000068#define WEBRTC_VOICE_ENGINE_TYPING_DETECTION // Typing detection
69#endif
70
71// ----------------------------------------------------------------------------
72// VoiceEngine sub-APIs
73// ----------------------------------------------------------------------------
74
75#define WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API
76#define WEBRTC_VOICE_ENGINE_CODEC_API
77#define WEBRTC_VOICE_ENGINE_DTMF_API
78#define WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API
79#define WEBRTC_VOICE_ENGINE_FILE_API
80#define WEBRTC_VOICE_ENGINE_HARDWARE_API
81#define WEBRTC_VOICE_ENGINE_NETEQ_STATS_API
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +000082#define WEBRTC_VOICE_ENGINE_RTP_RTCP_API
83#define WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API
84#define WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API
85
86#ifndef WEBRTC_CHROMIUM_BUILD
87#define WEBRTC_VOICE_ENGINE_CALL_REPORT_API
88#define WEBRTC_VOICE_ENGINE_ENCRYPTION_API
89#endif
90
91// ============================================================================
92// VideoEngine
93// ============================================================================
94
95// ----------------------------------------------------------------------------
96// Settings for special VideoEngine configurations
97// ----------------------------------------------------------------------------
98// ----------------------------------------------------------------------------
99// VideoEngine sub-API:s
100// ----------------------------------------------------------------------------
101
102#define WEBRTC_VIDEO_ENGINE_CAPTURE_API
103#define WEBRTC_VIDEO_ENGINE_CODEC_API
104#define WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
105#define WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +0000106#define WEBRTC_VIDEO_ENGINE_RENDER_API
107#define WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
dwkang@webrtc.org7c32ab52012-12-04 06:38:19 +0000108#define WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +0000109
110// Now handled by gyp:
111// WEBRTC_VIDEO_ENGINE_FILE_API
112
113// ============================================================================
114// Platform specific configurations
115// ============================================================================
116
117// ----------------------------------------------------------------------------
118// VideoEngine Windows
119// ----------------------------------------------------------------------------
120
121#if defined(_WIN32)
122#define DIRECT3D9_RENDERING // Requires DirectX 9.
123#endif
124
125// ----------------------------------------------------------------------------
126// VideoEngine MAC
127// ----------------------------------------------------------------------------
128
129#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
130// #define CARBON_RENDERING
131#define COCOA_RENDERING
132#endif
133
134// ----------------------------------------------------------------------------
135// VideoEngine Mobile iPhone
136// ----------------------------------------------------------------------------
137
138#if defined(WEBRTC_IOS)
139#define EAGL_RENDERING
140#endif
141
142// ----------------------------------------------------------------------------
143// Deprecated
144// ----------------------------------------------------------------------------
145
146// #define WEBRTC_CODEC_G729
147// #define WEBRTC_DTMF_DETECTION
andrew@webrtc.orgb015cbe2012-10-22 18:19:23 +0000148
149#endif // WEBRTC_ENGINE_CONFIGURATIONS_H_