Ignore:
Timestamp:
Jun 11, 2010 1:38:42 PM (14 years ago)
Author:
nanang
Message:

Close #1072:

  • Added API pjmedia_codec_g722_set_pcm_shift() to enable configurable level-adjusment setting.
  • Also added macro PJMEDIA_G722_DEFAULT_PCM_SHIFT (default value is 2) to accomplish 14-16 bit PCM conversion for G722 input/output.
  • Added a feature in G722 to stop level-adjusment/PCM-shifting when clipping occured, compile-time configurable via PJMEDIA_G722_STOP_PCM_SHIFT_ON_CLIPPING macro.
File:
1 edited

Legend:

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

    r3083 r3202  
    7979 
    8080 
     81/** 
     82 * Set the G.722 codec encoder and decoder level adjustment. 
     83 * If the value is non-zero, then PCM input samples to the encoder will  
     84 * be shifted right by this value, and similarly PCM output samples from 
     85 * the decoder will be shifted left by this value. 
     86 * 
     87 * Default value is PJMEDIA_G722_DEFAULT_PCM_SHIFT. 
     88 * 
     89 * @param val           The value 
     90 * 
     91 * @return              PJ_SUCCESS on success. 
     92 */ 
     93PJ_DECL(pj_status_t) pjmedia_codec_g722_set_pcm_shift(unsigned val); 
     94 
     95 
    8196PJ_END_DECL 
    8297 
Note: See TracChangeset for help on using the changeset viewer.