- Timestamp:
- Sep 18, 2008 2:11:29 PM (16 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/config.h
r2292 r2294 578 578 579 579 /** 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. 581 583 * 582 584 * Default value: … … 601 603 * Valid values are 1 to 28. 602 604 * 603 * Default value: 7605 * Default value: 10 604 606 */ 605 607 #ifndef PJMEDIA_TONEGEN_FIXED_POINT_CORDIC_LOOP 606 # define PJMEDIA_TONEGEN_FIXED_POINT_CORDIC_LOOP 7608 # define PJMEDIA_TONEGEN_FIXED_POINT_CORDIC_LOOP 10 607 609 #endif 608 610 -
pjproject/trunk/pjmedia/src/pjmedia/tonegen.c
r2292 r2294 41 41 * Speed = 1347 usec to generate 1 second, 8KHz dual-tones (2.66GHz P4). 42 42 * approx. 10.91 MIPS 43 * 44 * 506,535 usec/100.29 MIPS on ARM926EJ-S. 43 45 */ 44 46 struct gen … … 66 68 * Speed = 350 usec to generate 1 second, 8KHz dual-tones (2.66GHz P4). 67 69 * approx. 2.84 MIPS 70 * 71 * 18,037 usec/3.57 MIPS on ARM926EJ-S. 68 72 */ 69 73 struct gen … … 85 89 * (PJMEDIA_TONEGEN_FIXED_POINT_CORDIC_LOOP=7) 86 90 * 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 87 97 */ 88 98 #define CORDIC_1K 0x026DD3B6 … … 185 195 * Speed = 117 usec to generate 1 second, 8KHz dual-tones (2.66GHz P4). 186 196 * approx. 0.95 MIPS 197 * 198 * 1,449 usec/0.29 MIPS on ARM926EJ-S. 187 199 */ 188 200 PJ_INLINE(int) approximate_sin3(unsigned x)
Note: See TracChangeset
for help on using the changeset viewer.