diff options
author | Liong Sauw Ming <ming@teluu.com> | 2016-02-04 06:11:58 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2016-02-04 06:11:58 +0000 |
commit | 56f6e91963bbd507c300e4f2a806a8db2935566d (patch) | |
tree | e0ab33100a9c31f1c7872ddc22787011a04b64c3 /pjmedia/include/pjmedia-codec/config.h | |
parent | e6a13543eb90a73b095c4aa84038753d31ff2b39 (diff) |
Fixed #1904: Support for Opus codec
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5239 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia-codec/config.h')
-rw-r--r-- | pjmedia/include/pjmedia-codec/config.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia-codec/config.h b/pjmedia/include/pjmedia-codec/config.h index 875c821a..9a69099f 100644 --- a/pjmedia/include/pjmedia-codec/config.h +++ b/pjmedia/include/pjmedia-codec/config.h @@ -420,6 +420,56 @@ /** + * Enable OPUS codec. + * + * Default: 0 + */ +#ifndef PJMEDIA_HAS_OPUS_CODEC +# define PJMEDIA_HAS_OPUS_CODEC 0 +#endif + +/** + * OPUS codec sample rate. + * + * Default: 48000 + */ +#ifndef PJMEDIA_CODEC_OPUS_DEFAULT_SAMPLE_RATE +# define PJMEDIA_CODEC_OPUS_DEFAULT_SAMPLE_RATE 48000 +#endif + +/** + * OPUS codec default maximum average bit rate. + * + * Default: 0 (leave it to default value specified by Opus, which will + * take into account factors such as media content (speech/music), sample + * rate, channel count, etc). + */ +#ifndef PJMEDIA_CODEC_OPUS_DEFAULT_BIT_RATE +# define PJMEDIA_CODEC_OPUS_DEFAULT_BIT_RATE 0 +#endif + + +/** + * OPUS default encoding complexity, which is an integer from + * 0 to 10, where 0 is the lowest complexity and 10 is the highest. + * + * Default: 5 + */ +#ifndef PJMEDIA_CODEC_OPUS_DEFAULT_COMPLEXITY +# define PJMEDIA_CODEC_OPUS_DEFAULT_COMPLEXITY 5 +#endif + + +/** + * OPUS default CBR (constant bit rate) setting + * + * Default: PJ_FALSE (which means Opus will use VBR (variable bit rate)) + */ +#ifndef PJMEDIA_CODEC_OPUS_DEFAULT_CBR +# define PJMEDIA_CODEC_OPUS_DEFAULT_CBR PJ_FALSE +#endif + +/** * Specify if FFMPEG codecs are available. * * Default: PJMEDIA_HAS_LIBAVCODEC |