Ignore:
Timestamp:
Jul 26, 2006 5:04:54 PM (18 years ago)
Author:
bennylp
Message:
  • Bring speex codec up to date with their SVN trunk
  • Speex codec should work in FIXED_POINT mode when PJ_HAS_FLOATING_POINT is set to zero.
  • ulaw2linear will return zero if zero is given (this would make the VAD works better, and it also fixed click noise when call is established/hangup).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/speex/modes.h

    r278 r628  
    5656 
    5757/** Long-term predictor quantization */ 
    58 typedef int (*ltp_quant_func)(spx_sig_t *, spx_sig_t *, spx_coef_t *, spx_coef_t *,  
     58typedef int (*ltp_quant_func)(spx_word16_t *, spx_word16_t *, spx_coef_t *, spx_coef_t *,  
    5959                              spx_coef_t *, spx_sig_t *, const void *, int, int, spx_word16_t,  
    60                               int, int, SpeexBits*, char *, spx_sig_t *, spx_word16_t *, int, int, int); 
     60                              int, int, SpeexBits*, char *, spx_word16_t *, spx_word16_t *, int, int, int, spx_word32_t *); 
    6161 
    6262/** Long-term un-quantize */ 
    63 typedef void (*ltp_unquant_func)(spx_sig_t *, int, int, spx_word16_t, const void *, int, int *, 
     63typedef void (*ltp_unquant_func)(spx_word16_t *, spx_word32_t *, int, int, spx_word16_t, const void *, int, int *, 
    6464                                 spx_word16_t *, SpeexBits*, char*, int, int, spx_word16_t, int); 
    6565 
    6666 
    6767/** Innovation quantization function */ 
    68 typedef void (*innovation_quant_func)(spx_sig_t *, spx_coef_t *, spx_coef_t *, spx_coef_t *, const void *, int, int,  
     68typedef void (*innovation_quant_func)(spx_word16_t *, spx_coef_t *, spx_coef_t *, spx_coef_t *, const void *, int, int,  
    6969                                      spx_sig_t *, spx_word16_t *, SpeexBits *, char *, int, int); 
    7070 
     
    8585   ltp_quant_func    ltp_quant; /**< Long-term predictor (pitch) quantizer */ 
    8686   ltp_unquant_func  ltp_unquant; /**< Long-term predictor (pitch) un-quantizer */ 
    87    const void             *ltp_params; /**< Pitch parameters (options) */ 
     87   const void       *ltp_params; /**< Pitch parameters (options) */ 
    8888 
    8989   /*Quantization of innovation*/ 
     
    9292   const void             *innovation_params; /**< Innovation quantization parameters*/ 
    9393 
    94    /*Synthesis filter enhancement*/ 
    95    spx_word16_t      lpc_enh_k1; /**< Enhancer constant */ 
    96    spx_word16_t      lpc_enh_k2; /**< Enhancer constant */ 
    97    spx_word16_t      lpc_enh_k3; /**< Enhancer constant */ 
    9894   spx_word16_t      comb_gain;  /**< Gain of enhancer comb filter */ 
    9995 
Note: See TracChangeset for help on using the changeset viewer.