Ignore:
Timestamp:
Feb 4, 2016 6:11:58 AM (8 years ago)
Author:
ming
Message:

Fixed #1904: Support for Opus codec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-codec/config.h

    r4331 r5239  
    421421 
    422422/** 
     423 * Enable OPUS codec. 
     424 * 
     425 * Default: 0 
     426 */ 
     427#ifndef PJMEDIA_HAS_OPUS_CODEC 
     428#   define PJMEDIA_HAS_OPUS_CODEC                       0 
     429#endif 
     430 
     431/** 
     432 * OPUS codec sample rate. 
     433 * 
     434 * Default: 48000 
     435 */ 
     436#ifndef PJMEDIA_CODEC_OPUS_DEFAULT_SAMPLE_RATE 
     437#   define PJMEDIA_CODEC_OPUS_DEFAULT_SAMPLE_RATE       48000 
     438#endif 
     439 
     440/** 
     441 * OPUS codec default maximum average bit rate. 
     442 * 
     443 * Default: 0 (leave it to default value specified by Opus, which will 
     444 * take into account factors such as media content (speech/music), sample 
     445 * rate, channel count, etc). 
     446 */ 
     447#ifndef PJMEDIA_CODEC_OPUS_DEFAULT_BIT_RATE 
     448#   define PJMEDIA_CODEC_OPUS_DEFAULT_BIT_RATE          0 
     449#endif 
     450 
     451 
     452/** 
     453 * OPUS default encoding complexity, which is an integer from 
     454 * 0 to 10, where 0 is the lowest complexity and 10 is the highest. 
     455 * 
     456 * Default: 5 
     457 */ 
     458#ifndef PJMEDIA_CODEC_OPUS_DEFAULT_COMPLEXITY 
     459#   define PJMEDIA_CODEC_OPUS_DEFAULT_COMPLEXITY        5 
     460#endif 
     461 
     462 
     463/** 
     464 * OPUS default CBR (constant bit rate) setting 
     465 * 
     466 * Default: PJ_FALSE (which means Opus will use VBR (variable bit rate)) 
     467 */ 
     468#ifndef PJMEDIA_CODEC_OPUS_DEFAULT_CBR 
     469#   define PJMEDIA_CODEC_OPUS_DEFAULT_CBR               PJ_FALSE 
     470#endif 
     471 
     472/** 
    423473 * Specify if FFMPEG codecs are available. 
    424474 * 
Note: See TracChangeset for help on using the changeset viewer.