Mercurial > libavcodec.hg
comparison aacsbr.c @ 11482:7211254a444c libavcodec
aacsbr: DSPUtilize analysis input scaling.
author | alexc |
---|---|
date | Sat, 13 Mar 2010 21:12:45 +0000 |
parents | 96dde15b2e0d |
children | fa81ba4670ea |
comparison
equal
deleted
inserted
replaced
11481:96dde15b2e0d | 11482:7211254a444c |
---|---|
1130 { | 1130 { |
1131 int i, k; | 1131 int i, k; |
1132 memcpy(W[0], W[1], sizeof(W[0])); | 1132 memcpy(W[0], W[1], sizeof(W[0])); |
1133 memcpy(x , x+1024, (320-32)*sizeof(x[0])); | 1133 memcpy(x , x+1024, (320-32)*sizeof(x[0])); |
1134 if (scale != 1.0f) | 1134 if (scale != 1.0f) |
1135 for (i = 0; i < 1024; i++) | 1135 dsp->vector_fmul_scalar(x+288, in, scale, 1024); |
1136 x[288 + i] = in[i] * scale; | |
1137 else | 1136 else |
1138 memcpy(x+288, in, 1024*sizeof(*x)); | 1137 memcpy(x+288, in, 1024*sizeof(*x)); |
1139 for (i = 0; i < 32; i++) { // numTimeSlots*RATE = 16*2 as 960 sample frames | 1138 for (i = 0; i < 32; i++) { // numTimeSlots*RATE = 16*2 as 960 sample frames |
1140 // are not supported | 1139 // are not supported |
1141 float re, im; | 1140 float re, im; |