blob: da27b497348bbef8eb5f65169e518fc93a790532 [file] [log] [blame]
Benny Prijonoa4bf0212006-02-10 15:57:08 +00001/* $Id$ */
2/*
Benny Prijono32177c02008-06-20 22:44:47 +00003 * Copyright (C)2003-2008 Benny Prijono <benny@prijono.org>
Benny Prijonoa4bf0212006-02-10 15:57:08 +00004 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19#ifndef __PJMEDIA_CODEC_CONFIG_H__
20#define __PJMEDIA_CODEC_CONFIG_H__
21
22#include <pjmedia/types.h>
23
Benny Prijonofe9bffd2007-01-27 17:44:13 +000024/*
25 * Include config_auto.h if autoconf is used (PJ_AUTOCONF is set)
26 */
27#if defined(PJ_AUTOCONF)
28# include <pjmedia-codec/config_auto.h>
29#endif
Benny Prijonoa4bf0212006-02-10 15:57:08 +000030
Benny Prijono4381efe2006-03-16 14:24:26 +000031/**
Benny Prijonoa837c302006-04-27 22:36:40 +000032 * Unless specified otherwise, L16 codec is included by default.
33 */
34#ifndef PJMEDIA_HAS_L16_CODEC
35# define PJMEDIA_HAS_L16_CODEC 1
36#endif
37
38
39/**
Benny Prijono4381efe2006-03-16 14:24:26 +000040 * Unless specified otherwise, GSM codec is included by default.
Benny Prijonoa4bf0212006-02-10 15:57:08 +000041 */
Benny Prijono4381efe2006-03-16 14:24:26 +000042#ifndef PJMEDIA_HAS_GSM_CODEC
43# define PJMEDIA_HAS_GSM_CODEC 1
Benny Prijonoa4bf0212006-02-10 15:57:08 +000044#endif
45
46
Benny Prijono4381efe2006-03-16 14:24:26 +000047/**
48 * Unless specified otherwise, Speex codec is included by default.
Benny Prijonoeb30bf52006-03-04 20:43:52 +000049 */
Benny Prijono4381efe2006-03-16 14:24:26 +000050#ifndef PJMEDIA_HAS_SPEEX_CODEC
51# define PJMEDIA_HAS_SPEEX_CODEC 1
Benny Prijonoeb30bf52006-03-04 20:43:52 +000052#endif
53
Nanang Izzuddin829ac022008-05-27 00:24:26 +000054/**
55 * Speex codec default complexity setting.
56 */
57#ifndef PJMEDIA_CODEC_SPEEX_DEFAULT_COMPLEXITY
58# define PJMEDIA_CODEC_SPEEX_DEFAULT_COMPLEXITY 2
59#endif
60
61/**
Nanang Izzuddin9dbad152008-06-10 18:56:10 +000062 * Speex codec default quality setting. Please note that pjsua-lib may override
63 * this setting via its codec quality setting (i.e PJSUA_DEFAULT_CODEC_QUALITY).
Nanang Izzuddin829ac022008-05-27 00:24:26 +000064 */
65#ifndef PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY
Nanang Izzuddin9dbad152008-06-10 18:56:10 +000066# define PJMEDIA_CODEC_SPEEX_DEFAULT_QUALITY 8
Nanang Izzuddin829ac022008-05-27 00:24:26 +000067#endif
68
Benny Prijonoeb30bf52006-03-04 20:43:52 +000069
Benny Prijono00cae612006-07-31 15:19:36 +000070/**
71 * Unless specified otherwise, iLBC codec is included by default.
72 */
73#ifndef PJMEDIA_HAS_ILBC_CODEC
74# define PJMEDIA_HAS_ILBC_CODEC 1
75#endif
76
77
Benny Prijono7ffd7752008-03-17 14:07:53 +000078/**
79 * Unless specified otherwise, G.722 codec is included by default.
80 */
81#ifndef PJMEDIA_HAS_G722_CODEC
82# define PJMEDIA_HAS_G722_CODEC 1
83#endif
84
Benny Prijonoa4bf0212006-02-10 15:57:08 +000085
Nanang Izzuddin493a8db2008-08-15 13:17:39 +000086/**
87 * IPP codecs are excluded by default. IPP codecs contain various codecs,
88 * e.g: G.729, G.723.1, G.726, G.728, G.722.1, AMR.
89 */
90#ifndef PJMEDIA_HAS_INTEL_IPP_CODECS
91# define PJMEDIA_HAS_INTEL_IPP_CODECS 0
92#endif
Benny Prijonofe9bffd2007-01-27 17:44:13 +000093
Nanang Izzuddin493a8db2008-08-15 13:17:39 +000094/**
95 * Specify IPP codecs content. If PJMEDIA_HAS_INTEL_IPP_CODECS is not set,
96 * these settings will be ignored.
97 */
98#ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_AMR
99# define PJMEDIA_HAS_INTEL_IPP_CODEC_AMR 1
100#endif
101
102#ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G729
103# define PJMEDIA_HAS_INTEL_IPP_CODEC_G729 1
104#endif
105
106#ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G723
107# define PJMEDIA_HAS_INTEL_IPP_CODEC_G723 1
108#endif
109
110#ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G726
111# define PJMEDIA_HAS_INTEL_IPP_CODEC_G726 1
112#endif
113
114#ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G728
115# define PJMEDIA_HAS_INTEL_IPP_CODEC_G728 1
116#endif
117
118#ifndef PJMEDIA_HAS_INTEL_IPP_CODEC_G722_1
119# define PJMEDIA_HAS_INTEL_IPP_CODEC_G722_1 1
120#endif
121
122
123#endif /* __PJMEDIA_CODEC_CONFIG_H__ */