Changeset 397 for dsfilters/temp/libmpcenc/src/fft4g.c
- Timestamp:
- 04/13/08 15:06:13 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dsfilters/temp/libmpcenc/src/fft4g.c
r396 r397 18 18 */ 19 19 20 #include <math.h> 21 #include <string.h> 22 23 #include <mpc/mpc_types.h> 24 #include <mpc/datatypes.h> 25 #include <mpc/mpcmath.h> 26 27 #include "../include/libmpcenc.h" 28 #include "psy_model.h" 20 29 21 30 … … 508 517 } 509 518 519 // patched to only-forward 520 void 521 rdft ( const int n, float* a, int* ip, float* w ) 522 { 523 float xi; 524 525 if ( n > 4) { 526 bitrv2 ( n, ip + 2, a ); 527 cftfsub ( n, a, w ); 528 rftfsub ( n, a, ip[1], w + ip[0] ); 529 } 530 else if ( n == 4 ) { 531 cftfsub ( n, a, w ); 532 } 533 xi = a[0] - a[1]; 534 a[0] += a[1]; 535 a[1] = xi; 536 return; 537 } 538 539 510 540 void mpc_psy_model_generate_fft_tables(const int n, int *ip, float *w) 511 541 {
Note: See TracChangeset
for help on using the changeset viewer.