Ignore:
Timestamp:
Nov 23, 2006 10:19:46 AM (17 years ago)
Author:
bennylp
Message:

Updated Speex to their latest SVN (1.2-beta). AEC seems
to work much better now and take less CPU, so I increased
default tail length in PJSUA to 800ms.

File:
1 edited

Legend:

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

    r628 r823  
    4040#define ABS(x) ((x) < 0 ? (-(x)) : (x))      /**< Absolute integer value. */ 
    4141#define ABS16(x) ((x) < 0 ? (-(x)) : (x))    /**< Absolute 16-bit value.  */ 
     42#define MIN16(a,b) ((a) < (b) ? (a) : (b))   /**< Maximum 16-bit value.   */ 
    4243#define MAX16(a,b) ((a) > (b) ? (a) : (b))   /**< Maximum 16-bit value.   */ 
    4344#define ABS32(x) ((x) < 0 ? (-(x)) : (x))    /**< Absolute 32-bit value.  */ 
     45#define MIN32(a,b) ((a) < (b) ? (a) : (b))   /**< Maximum 32-bit value.   */ 
    4446#define MAX32(a,b) ((a) > (b) ? (a) : (b))   /**< Maximum 32-bit value.   */ 
    4547 
     
    6971#define VERY_LARGE32 ((spx_word32_t)2147483647) 
    7072#define VERY_LARGE16 ((spx_word16_t)32767) 
     73#define Q15_ONE ((spx_word16_t)32767) 
    7174 
    7275 
     
    114117#define VERY_LARGE32 1e15f 
    115118#define VERY_LARGE16 1e15f 
     119#define Q15_ONE ((spx_word16_t)1.f) 
    116120 
    117121#define QCONST16(x,bits) (x) 
     
    128132#define PSHR16(a,shift) (a) 
    129133#define PSHR32(a,shift) (a) 
     134#define VSHR32(a,shift) (a) 
    130135#define SATURATE16(x,a) (x) 
    131136#define SATURATE32(x,a) (x) 
     
    148153#define MULT16_32_Q14(a,b)     ((a)*(b)) 
    149154#define MULT16_32_Q15(a,b)     ((a)*(b)) 
     155#define MULT16_32_P15(a,b)     ((a)*(b)) 
    150156 
    151157#define MAC16_32_Q11(c,a,b)     ((c)+(a)*(b)) 
Note: See TracChangeset for help on using the changeset viewer.