blob: bb28b75acc8a70243b3de503ce9d307bf6163561 [file] [log] [blame]
niklase@google.com470e71d2011-07-07 08:21:25 +00001/*
xians@webrtc.org9b3474a2012-02-02 08:59:11 +00002 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
niklase@google.com470e71d2011-07-07 08:21:25 +00003 *
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.org0851df82013-06-19 17:03:47 +000014#include "webrtc/typedefs.h"
15
niklase@google.com470e71d2011-07-07 08:21:25 +000016// ============================================================================
17// Voice and Video
18// ============================================================================
19
niklase@google.com470e71d2011-07-07 08:21:25 +000020// ----------------------------------------------------------------------------
21// [Voice] Codec settings
22// ----------------------------------------------------------------------------
23
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000024// iSAC is not included in the Mozilla build, but in all other builds.
25#ifndef WEBRTC_MOZILLA_BUILD
kma@webrtc.org94771cb2012-08-28 04:09:50 +000026#ifdef WEBRTC_ARCH_ARM
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000027#define WEBRTC_CODEC_ISACFX // Fix-point iSAC implementation.
leozwang@webrtc.org22082e72012-04-18 16:52:00 +000028#else
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000029#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).
xians@webrtc.org0dffc642011-11-30 15:35:44 +000035#define WEBRTC_CODEC_AVT
36
andrew@webrtc.org8fa03a12013-09-12 01:30:30 +000037// PCM16 is useful for testing and incurs only a small binary size cost.
38#define WEBRTC_CODEC_PCM16
39
40// iLBC, G.722, and Redundancy coding are excluded from Chromium and Mozilla
41// builds to reduce binary size.
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000042#if !defined(WEBRTC_CHROMIUM_BUILD) && !defined(WEBRTC_MOZILLA_BUILD)
xians@webrtc.org0dffc642011-11-30 15:35:44 +000043#define WEBRTC_CODEC_ILBC
niklase@google.com470e71d2011-07-07 08:21:25 +000044#define WEBRTC_CODEC_G722
niklase@google.com470e71d2011-07-07 08:21:25 +000045#define WEBRTC_CODEC_RED
tina.legrand@webrtc.orga7d83872012-10-18 10:00:52 +000046#endif // !WEBRTC_CHROMIUM_BUILD && !WEBRTC_MOZILLA_BUILD
niklase@google.com470e71d2011-07-07 08:21:25 +000047
48// ----------------------------------------------------------------------------
49// [Video] Codec settings
50// ----------------------------------------------------------------------------
51
52#define VIDEOCODEC_I420
53#define VIDEOCODEC_VP8
54
55// ============================================================================
56// VoiceEngine
57// ============================================================================
58
59// ----------------------------------------------------------------------------
60// Settings for VoiceEngine
61// ----------------------------------------------------------------------------
62
63#define WEBRTC_VOICE_ENGINE_AGC // Near-end AGC
64#define WEBRTC_VOICE_ENGINE_ECHO // Near-end AEC
65#define WEBRTC_VOICE_ENGINE_NR // Near-end NS
niklase@google.com470e71d2011-07-07 08:21:25 +000066#define WEBRTC_VOE_EXTERNAL_REC_AND_PLAYOUT
67
andrew@webrtc.org0851df82013-06-19 17:03:47 +000068#if !defined(WEBRTC_ANDROID) && !defined(WEBRTC_IOS) && \
69 !defined(WEBRTC_CHROMIUM_BUILD)
xians@webrtc.org832d7c62011-12-08 16:45:46 +000070#define WEBRTC_VOICE_ENGINE_TYPING_DETECTION // Typing detection
71#endif
72
niklase@google.com470e71d2011-07-07 08:21:25 +000073// ----------------------------------------------------------------------------
74// VoiceEngine sub-APIs
75// ----------------------------------------------------------------------------
76
77#define WEBRTC_VOICE_ENGINE_AUDIO_PROCESSING_API
niklase@google.com470e71d2011-07-07 08:21:25 +000078#define WEBRTC_VOICE_ENGINE_CODEC_API
79#define WEBRTC_VOICE_ENGINE_DTMF_API
xians@webrtc.org5b6d3ce2012-03-15 14:40:00 +000080#define WEBRTC_VOICE_ENGINE_EXTERNAL_MEDIA_API
81#define WEBRTC_VOICE_ENGINE_FILE_API
niklase@google.com470e71d2011-07-07 08:21:25 +000082#define WEBRTC_VOICE_ENGINE_HARDWARE_API
83#define WEBRTC_VOICE_ENGINE_NETEQ_STATS_API
niklase@google.com470e71d2011-07-07 08:21:25 +000084#define WEBRTC_VOICE_ENGINE_RTP_RTCP_API
85#define WEBRTC_VOICE_ENGINE_VIDEO_SYNC_API
86#define WEBRTC_VOICE_ENGINE_VOLUME_CONTROL_API
87
xians@webrtc.org9b3474a2012-02-02 08:59:11 +000088#ifndef WEBRTC_CHROMIUM_BUILD
89#define WEBRTC_VOICE_ENGINE_CALL_REPORT_API
90#define WEBRTC_VOICE_ENGINE_ENCRYPTION_API
xians@webrtc.org9b3474a2012-02-02 08:59:11 +000091#endif
92
niklase@google.com470e71d2011-07-07 08:21:25 +000093// ============================================================================
94// VideoEngine
95// ============================================================================
96
97// ----------------------------------------------------------------------------
98// Settings for special VideoEngine configurations
99// ----------------------------------------------------------------------------
100// ----------------------------------------------------------------------------
101// VideoEngine sub-API:s
102// ----------------------------------------------------------------------------
103
104#define WEBRTC_VIDEO_ENGINE_CAPTURE_API
105#define WEBRTC_VIDEO_ENGINE_CODEC_API
106#define WEBRTC_VIDEO_ENGINE_ENCRYPTION_API
niklase@google.com470e71d2011-07-07 08:21:25 +0000107#define WEBRTC_VIDEO_ENGINE_IMAGE_PROCESS_API
niklase@google.com470e71d2011-07-07 08:21:25 +0000108#define WEBRTC_VIDEO_ENGINE_RENDER_API
109#define WEBRTC_VIDEO_ENGINE_RTP_RTCP_API
dwkang@webrtc.org6bd737a2012-12-04 06:38:19 +0000110#define WEBRTC_VIDEO_ENGINE_EXTERNAL_CODEC_API
niklase@google.com470e71d2011-07-07 08:21:25 +0000111
andrew@webrtc.orgf5a91fd2012-07-23 16:28:02 +0000112// Now handled by gyp:
113// WEBRTC_VIDEO_ENGINE_FILE_API
xians@webrtc.org594ab3c2012-02-08 10:38:12 +0000114
niklase@google.com470e71d2011-07-07 08:21:25 +0000115// ============================================================================
116// Platform specific configurations
117// ============================================================================
118
119// ----------------------------------------------------------------------------
120// VideoEngine Windows
121// ----------------------------------------------------------------------------
122
123#if defined(_WIN32)
andrew@webrtc.org80124742012-03-08 17:54:24 +0000124#define DIRECT3D9_RENDERING // Requires DirectX 9.
125#endif
niklase@google.com470e71d2011-07-07 08:21:25 +0000126
127// ----------------------------------------------------------------------------
128// VideoEngine MAC
129// ----------------------------------------------------------------------------
130
sjlee@webrtc.org414fa7f2012-09-11 17:25:46 +0000131#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
andrew@webrtc.org80124742012-03-08 17:54:24 +0000132// #define CARBON_RENDERING
133#define COCOA_RENDERING
niklase@google.com470e71d2011-07-07 08:21:25 +0000134#endif
135
136// ----------------------------------------------------------------------------
137// VideoEngine Mobile iPhone
138// ----------------------------------------------------------------------------
139
sjlee@webrtc.org414fa7f2012-09-11 17:25:46 +0000140#if defined(WEBRTC_IOS)
andrew@webrtc.org80124742012-03-08 17:54:24 +0000141#define EAGL_RENDERING
niklase@google.com470e71d2011-07-07 08:21:25 +0000142#endif
143
144// ----------------------------------------------------------------------------
145// Deprecated
146// ----------------------------------------------------------------------------
147
148// #define WEBRTC_CODEC_G729
149// #define WEBRTC_DTMF_DETECTION
niklase@google.com470e71d2011-07-07 08:21:25 +0000150
151#endif // WEBRTC_ENGINE_CONFIGURATIONS_H_