Ignore:
Timestamp:
Aug 10, 2010 3:06:40 PM (14 years ago)
Author:
nanang
Message:

Fix #1106:

  • Added PCM signal adjustment in IPP G722.1 implementation. The default setting is configurable via (the existing compile-time config) PJMEDIA_G7221_DEFAULT_PCM_SHIFT.
  • Added new APIs to get and set IPP codecs settings: pjmedia_codec_ipp_set/get_config(). At run-time, the G722.1 PCM signal adjustment setting can be set using these functions.
File:
1 edited

Legend:

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

    r3083 r3261  
    292292PJ_BEGIN_DECL 
    293293 
     294/**  
     295 * IPP codecs configuration settings. 
     296 */ 
     297typedef struct pjmedia_codec_ipp_config 
     298{ 
     299    /** 
     300     * Specifies the G.722.1 codec encoder and decoder level adjustment.  
     301     * If the value is non-zero, then PCM input samples to the encoder will  
     302     * be shifted right by this value, and similarly PCM output samples from 
     303     * the decoder will be shifted left by this value. 
     304     * 
     305     * Default value is PJMEDIA_G7221_DEFAULT_PCM_SHIFT. 
     306     */ 
     307    unsigned             g7221_pcm_shift; 
     308 
     309} pjmedia_codec_ipp_config; 
     310 
     311 
    294312/** 
    295313 * Initialize and register IPP codecs factory to pjmedia endpoint. 
     
    301319PJ_DECL(pj_status_t) pjmedia_codec_ipp_init( pjmedia_endpt *endpt ); 
    302320 
     321 
     322/** 
     323 * Get current IPP codecs configuration settings. 
     324 * 
     325 * @param cfg       The IPP codecs configuration settings buffer. 
     326 * 
     327 * @return          PJ_SUCCESS on success. 
     328 */ 
     329PJ_DECL(pj_status_t) pjmedia_codec_ipp_get_config( 
     330                                pjmedia_codec_ipp_config *cfg); 
     331 
     332 
     333/** 
     334 * Set IPP codecs configuration settings. 
     335 * 
     336 * @param setting   The IPP codecs configuration settings to be applied. 
     337 * 
     338 * @return          PJ_SUCCESS on success. 
     339 */ 
     340PJ_DECL(pj_status_t) pjmedia_codec_ipp_set_config( 
     341                                const pjmedia_codec_ipp_config *cfg); 
    303342 
    304343 
Note: See TracChangeset for help on using the changeset viewer.