Changeset 2294


Ignore:
Timestamp:
Sep 18, 2008 2:11:29 PM (16 years ago)
Author:
bennylp
Message:

More ticket #619: changed default Cordic loop from 8 to 10 to gain more accuracy, and updated tonegen.c with the results from ARM9 tests

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r2292 r2294  
    578578 
    579579/** 
    580  * Specify the tone generator algorithm to be used. 
     580 * Specify the tone generator algorithm to be used. Please see  
     581 * http://trac.pjsip.org/repos/wiki/Tone_Generator for the performance 
     582 * analysis results of the various tone generator algorithms. 
    581583 * 
    582584 * Default value: 
     
    601603 * Valid values are 1 to 28. 
    602604 * 
    603  * Default value: 7 
     605 * Default value: 10 
    604606 */ 
    605607#ifndef PJMEDIA_TONEGEN_FIXED_POINT_CORDIC_LOOP 
    606 #   define PJMEDIA_TONEGEN_FIXED_POINT_CORDIC_LOOP  7 
     608#   define PJMEDIA_TONEGEN_FIXED_POINT_CORDIC_LOOP  10 
    607609#endif 
    608610 
  • pjproject/trunk/pjmedia/src/pjmedia/tonegen.c

    r2292 r2294  
    4141     * Speed = 1347 usec to generate 1 second, 8KHz dual-tones (2.66GHz P4). 
    4242     *         approx. 10.91 MIPS 
     43     * 
     44     *         506,535 usec/100.29 MIPS on ARM926EJ-S. 
    4345     */ 
    4446    struct gen 
     
    6668     * Speed = 350 usec to generate 1 second, 8KHz dual-tones (2.66GHz P4). 
    6769     *         approx. 2.84 MIPS 
     70     * 
     71     *         18,037 usec/3.57 MIPS on ARM926EJ-S. 
    6872     */ 
    6973    struct gen 
     
    8589     *         (PJMEDIA_TONEGEN_FIXED_POINT_CORDIC_LOOP=7) 
    8690     *         approx. 6.01 MIPS 
     91     * 
     92     *         ARM926EJ-S results: 
     93     *          loop=7:   8,943 usec/1.77 MIPS 
     94     *          loop=8:   9,872 usec/1.95 MIPS 
     95     *          loop=10: 11,662 usec/2.31 MIPS 
     96     *          loop=12: 13,561 usec/2.69 MIPS 
    8797     */ 
    8898    #define CORDIC_1K           0x026DD3B6 
     
    185195     * Speed = 117 usec to generate 1 second, 8KHz dual-tones (2.66GHz P4). 
    186196     *         approx. 0.95 MIPS 
     197     * 
     198     *         1,449 usec/0.29 MIPS on ARM926EJ-S. 
    187199     */ 
    188200    PJ_INLINE(int) approximate_sin3(unsigned x) 
Note: See TracChangeset for help on using the changeset viewer.