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/ltp.h

    r278 r628  
    4949#endif 
    5050 
    51 void open_loop_nbest_pitch(spx_sig_t *sw, int start, int end, int len, int *pitch, spx_word16_t *gain, int N, char *stack); 
     51spx_word32_t inner_prod(const spx_word16_t *x, const spx_word16_t *y, int len); 
     52void pitch_xcorr(const spx_word16_t *_x, const spx_word16_t *_y, spx_word32_t *corr, int len, int nb_pitch, char *stack); 
     53 
     54void open_loop_nbest_pitch(spx_word16_t *sw, int start, int end, int len, int *pitch, spx_word16_t *gain, int N, char *stack); 
    5255 
    5356 
    5457/** Finds the best quantized 3-tap pitch predictor by analysis by synthesis */ 
    5558int pitch_search_3tap( 
    56 spx_sig_t target[],                 /* Target vector */ 
    57 spx_sig_t *sw, 
     59spx_word16_t target[],                 /* Target vector */ 
     60spx_word16_t *sw, 
    5861spx_coef_t ak[],                     /* LPCs for this subframe */ 
    5962spx_coef_t awk1[],                   /* Weighted LPCs #1 for this subframe */ 
     
    6871SpeexBits *bits, 
    6972char *stack, 
    70 spx_sig_t *exc2, 
     73spx_word16_t *exc2, 
    7174spx_word16_t *r, 
    7275int   complexity, 
    7376int   cdbk_offset, 
    74 int plc_tuning 
     77int plc_tuning, 
     78spx_word32_t *cumul_gain 
    7579); 
    7680 
    7781/*Unquantize adaptive codebook and update pitch contribution*/ 
    7882void pitch_unquant_3tap( 
    79 spx_sig_t exc[],                    /* Excitation */ 
     83spx_word16_t exc[],             /* Input excitation */ 
     84spx_word32_t exc_out[],         /* Output excitation */ 
    8085int   start,                    /* Smallest pitch value allowed */ 
    8186int   end,                      /* Largest pitch value allowed */ 
    82 spx_word16_t pitch_coef,               /* Voicing (pitch) coefficient */ 
     87spx_word16_t pitch_coef,        /* Voicing (pitch) coefficient */ 
    8388const void *par, 
    8489int   nsf,                      /* Number of samples in subframe */ 
     
    95100/** Forced pitch delay and gain */ 
    96101int forced_pitch_quant( 
    97 spx_sig_t target[],                 /* Target vector */ 
    98 spx_sig_t *sw, 
     102spx_word16_t target[],                 /* Target vector */ 
     103spx_word16_t *sw, 
    99104spx_coef_t ak[],                     /* LPCs for this subframe */ 
    100105spx_coef_t awk1[],                   /* Weighted LPCs #1 for this subframe */ 
     
    109114SpeexBits *bits, 
    110115char *stack, 
    111 spx_sig_t *exc2, 
     116spx_word16_t *exc2, 
    112117spx_word16_t *r, 
    113118int complexity, 
    114119int cdbk_offset, 
    115 int plc_tuning 
     120int plc_tuning, 
     121spx_word32_t *cumul_gain 
    116122); 
    117123 
    118124/** Unquantize forced pitch delay and gain */ 
    119125void forced_pitch_unquant( 
    120 spx_sig_t exc[],                    /* Excitation */ 
     126spx_word16_t exc[],             /* Input excitation */ 
     127spx_word32_t exc_out[],         /* Output excitation */ 
    121128int   start,                    /* Smallest pitch value allowed */ 
    122129int   end,                      /* Largest pitch value allowed */ 
    123 spx_word16_t pitch_coef,               /* Voicing (pitch) coefficient */ 
     130spx_word16_t pitch_coef,        /* Voicing (pitch) coefficient */ 
    124131const void *par, 
    125132int   nsf,                      /* Number of samples in subframe */ 
Note: See TracChangeset for help on using the changeset viewer.