Benny Prijono | a4bf021 | 2006-02-10 15:57:08 +0000 | [diff] [blame] | 1 | /* $Id$ */ |
| 2 | /* |
Benny Prijono | 844653c | 2008-12-23 17:27:53 +0000 | [diff] [blame^] | 3 | * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com) |
| 4 | * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> |
Benny Prijono | a4bf021 | 2006-02-10 15:57:08 +0000 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 | */ |
| 20 | #ifndef __PJMEDIA_CODEC_CONFIG_H__ |
| 21 | #define __PJMEDIA_CODEC_CONFIG_H__ |
| 22 | |
| 23 | #include <pjmedia/types.h> |
| 24 | |
Benny Prijono | fe9bffd | 2007-01-27 17:44:13 +0000 | [diff] [blame] | 25 | /* |
| 26 | * Include config_auto.h if autoconf is used (PJ_AUTOCONF is set) |
| 27 | */ |
| 28 | #if defined(PJ_AUTOCONF) |
| 29 | # include <pjmedia-codec/config_auto.h> |
| 30 | #endif |
Benny Prijono | a4bf021 | 2006-02-10 15:57:08 +0000 | [diff] [blame] | 31 | |
Benny Prijono | 4381efe | 2006-03-16 14:24:26 +0000 | [diff] [blame] | 32 | /** |
Benny Prijono | a837c30 | 2006-04-27 22:36:40 +0000 | [diff] [blame] | 33 | * Unless specified otherwise, L16 codec is included by default. |
| 34 | */ |
| 35 | #ifndef PJMEDIA_HAS_L16_CODEC |
| 36 | # define PJMEDIA_HAS_L16_CODEC 1 |
| 37 | #endif |
| 38 | |
| 39 | |
| 40 | /** |
Benny Prijono | 4381efe | 2006-03-16 14:24:26 +0000 | [diff] [blame] | 41 | * Unless specified otherwise, GSM codec is included by default. |
Benny Prijono | a4bf021 | 2006-02-10 15:57:08 +0000 | [diff] [blame] | 42 | */ |
Benny Prijono | 4381efe | 2006-03-16 14:24:26 +0000 | [diff] [blame] | 43 | #ifndef PJMEDIA_HAS_GSM_CODEC |
| 44 | # define PJMEDIA_HAS_GSM_CODEC 1 |
Benny Prijono | a4bf021 | 2006-02-10 15:57:08 +0000 | [diff] [blame] | 45 | #endif |
| 46 | |
| 47 | |
Benny Prijono | 4381efe | 2006-03-16 14:24:26 +0000 | [diff] [blame] | 48 | /** |
| 49 | * Unless specified otherwise, Speex codec is included by default. |
Benny Prijono | eb30bf5 | 2006-03-04 20:43:52 +0000 | [diff] [blame] | 50 | */ |
Benny Prijono | 4381efe | 2006-03-16 14:24:26 +0000 | [diff] [blame] | 51 | #ifndef PJMEDIA_HAS_SPEEX_CODEC |
| 52 | # define PJMEDIA_HAS_SPEEX_CODEC 1 |
Benny Prijono | eb30bf5 | 2006-03-04 20:43:52 +0000 | [diff] [blame] | 53 | #endif |
| 54 | |
Nanang Izzuddin | 829ac02 | 2008-05-27 00:24:26 +0000 | [diff] [blame] | 55 | /** |
| 56 | * Speex codec default complexity setting. |
| 57 | */ |
| 58 | #ifndef PJMEDIA_CODEC_SPEEX_DEFAULT_COMPLEXITY |
| 59 | # define PJMEDIA_CODEC_SPEEX_DEFAULT_COMPLEXITY 2 |
| 60 | #endif |
| 61 | |
| 62 | /** |
Nanang Izzuddin | 9dbad15 | 2008-06-10 18:56:10 +0000 | [diff] [blame] | 63 | * Speex codec default quality setting. Please note that pjsua-lib may override |
| 64 | * this setting via its codec quality setting (i.e PJSUA_DEFAULT_CODEC_QUALITY). |
Nanang Izzuddin | 829ac02 | 2008-05-27 00:24:26 +0000 | [diff] [blame] | 65 | */ |
| 66 | #ifndef PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY |
Nanang Izzuddin | 9dbad15 | 2008-06-10 18:56:10 +0000 | [diff] [blame] | 67 | # define PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY 8 |
Nanang Izzuddin | 829ac02 | 2008-05-27 00:24:26 +0000 | [diff] [blame] | 68 | #endif |
| 69 | |
Benny Prijono | eb30bf5 | 2006-03-04 20:43:52 +0000 | [diff] [blame] | 70 | |
Benny Prijono | 00cae61 | 2006-07-31 15:19:36 +0000 | [diff] [blame] | 71 | /** |
| 72 | * Unless specified otherwise, iLBC codec is included by default. |
| 73 | */ |
| 74 | #ifndef PJMEDIA_HAS_ILBC_CODEC |
| 75 | # define PJMEDIA_HAS_ILBC_CODEC 1 |
| 76 | #endif |
| 77 | |
| 78 | |
Benny Prijono | 7ffd775 | 2008-03-17 14:07:53 +0000 | [diff] [blame] | 79 | /** |
| 80 | * Unless specified otherwise, G.722 codec is included by default. |
| 81 | */ |
| 82 | #ifndef PJMEDIA_HAS_G722_CODEC |
| 83 | # define PJMEDIA_HAS_G722_CODEC 1 |
| 84 | #endif |
| 85 | |
Benny Prijono | a4bf021 | 2006-02-10 15:57:08 +0000 | [diff] [blame] | 86 | |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 87 | /** |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 88 | * Enable the features provided by Intel IPP libraries, for example |
| 89 | * codecs such as G.729, G.723.1, G.726, G.728, G.722.1, and AMR. |
| 90 | * |
| 91 | * By default this is disabled. Please follow the instructions in |
| 92 | * http://trac.pjsip.org/repos/wiki/Intel_IPP_Codecs on how to setup |
| 93 | * Intel IPP with PJMEDIA. |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 94 | */ |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 95 | #ifndef PJMEDIA_HAS_INTEL_IPP |
| 96 | # define PJMEDIA_HAS_INTEL_IPP 0 |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 97 | #endif |
Benny Prijono | fe9bffd | 2007-01-27 17:44:13 +0000 | [diff] [blame] | 98 | |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 99 | |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 100 | /** |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 101 | * Visual Studio only: when this option is set, the Intel IPP libraries |
| 102 | * will be automatically linked to application using pragma(comment) |
| 103 | * constructs. This is convenient, however it will only link with |
| 104 | * the stub libraries and the Intel IPP DLL's will be required when |
| 105 | * distributing the application. |
| 106 | * |
| 107 | * If application wants to link with the different types of the Intel IPP |
| 108 | * libraries (for example, the static libraries), it must set this option |
| 109 | * to zero and specify the Intel IPP libraries in the application's input |
| 110 | * library specification manually. |
| 111 | * |
| 112 | * Default 1. |
| 113 | */ |
| 114 | #ifndef PJMEDIA_AUTO_LINK_IPP_LIBS |
| 115 | # define PJMEDIA_AUTO_LINK_IPP_LIBS 1 |
| 116 | #endif |
| 117 | |
| 118 | |
| 119 | /** |
| 120 | * Enable Intel IPP AMR codec. This also needs to be enabled when AMR WB |
| 121 | * codec is enabled. This option is only used when PJMEDIA_HAS_INTEL_IPP |
| 122 | * is enabled. |
| 123 | * |
| 124 | * Default: 1 |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 125 | */ |
| 126 | #ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_AMR |
| 127 | # define PJMEDIA_HAS_INTEL_IPP_CODEC_AMR 1 |
| 128 | #endif |
| 129 | |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 130 | |
| 131 | /** |
| 132 | * Enable Intel IPP AMR wideband codec. The PJMEDIA_HAS_INTEL_IPP_CODEC_AMR |
| 133 | * option must also be enabled to use this codec. This option is only used |
| 134 | * when PJMEDIA_HAS_INTEL_IPP is enabled. |
| 135 | * |
| 136 | * Default: 1 |
| 137 | */ |
Nanang Izzuddin | df361e0 | 2008-08-16 06:46:08 +0000 | [diff] [blame] | 138 | #ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_AMRWB |
| 139 | # define PJMEDIA_HAS_INTEL_IPP_CODEC_AMRWB 1 |
| 140 | #endif |
| 141 | |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 142 | |
| 143 | /** |
| 144 | * Enable Intel IPP G.729 codec. This option is only used when |
| 145 | * PJMEDIA_HAS_INTEL_IPP is enabled. |
| 146 | * |
| 147 | * Default: 1 |
| 148 | */ |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 149 | #ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G729 |
| 150 | # define PJMEDIA_HAS_INTEL_IPP_CODEC_G729 1 |
| 151 | #endif |
| 152 | |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 153 | |
| 154 | /** |
| 155 | * Enable Intel IPP G.723.1 codec. This option is only used when |
| 156 | * PJMEDIA_HAS_INTEL_IPP is enabled. |
| 157 | * |
| 158 | * Default: 1 |
| 159 | */ |
| 160 | #ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G723_1 |
| 161 | # define PJMEDIA_HAS_INTEL_IPP_CODEC_G723_1 1 |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 162 | #endif |
| 163 | |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 164 | |
| 165 | /** |
| 166 | * Enable Intel IPP G.726 codec. This option is only used when |
| 167 | * PJMEDIA_HAS_INTEL_IPP is enabled. |
| 168 | * |
| 169 | * Default: 1 |
| 170 | */ |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 171 | #ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G726 |
| 172 | # define PJMEDIA_HAS_INTEL_IPP_CODEC_G726 1 |
| 173 | #endif |
| 174 | |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 175 | |
| 176 | /** |
| 177 | * Enable Intel IPP G.728 codec. This option is only used when |
| 178 | * PJMEDIA_HAS_INTEL_IPP is enabled. |
| 179 | * |
| 180 | * Default: 1 |
| 181 | */ |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 182 | #ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G728 |
| 183 | # define PJMEDIA_HAS_INTEL_IPP_CODEC_G728 1 |
| 184 | #endif |
| 185 | |
Benny Prijono | a4e7cdd | 2008-08-19 15:01:48 +0000 | [diff] [blame] | 186 | |
| 187 | /** |
| 188 | * Enable Intel IPP G.722.1 codec. This option is only used when |
| 189 | * PJMEDIA_HAS_INTEL_IPP is enabled. |
| 190 | * |
| 191 | * Default: 1 |
| 192 | */ |
Nanang Izzuddin | 493a8db | 2008-08-15 13:17:39 +0000 | [diff] [blame] | 193 | #ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G722_1 |
| 194 | # define PJMEDIA_HAS_INTEL_IPP_CODEC_G722_1 1 |
| 195 | #endif |
| 196 | |
| 197 | |
| 198 | #endif /* __PJMEDIA_CODEC_CONFIG_H__ */ |