diff options
Diffstat (limited to 'apps/codecs/libfaad/sbr_hfgen.c')
-rw-r--r-- | apps/codecs/libfaad/sbr_hfgen.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/apps/codecs/libfaad/sbr_hfgen.c b/apps/codecs/libfaad/sbr_hfgen.c index f77bbd052f..63a2fce855 100644 --- a/apps/codecs/libfaad/sbr_hfgen.c +++ b/apps/codecs/libfaad/sbr_hfgen.c | |||
@@ -128,20 +128,20 @@ void hf_generation(sbr_info *sbr, qmf_t Xlow[MAX_NTSRHFG][64], | |||
128 | a1_i = MUL_C(IM(alpha_1[p]), bw2); | 128 | a1_i = MUL_C(IM(alpha_1[p]), bw2); |
129 | #endif | 129 | #endif |
130 | 130 | ||
131 | temp2_r = QMF_RE(Xlow[first - 2 + offset][p]); | 131 | temp2_r = QMF_RE(Xlow[first - 2 + offset][p]); |
132 | temp3_r = QMF_RE(Xlow[first - 1 + offset][p]); | 132 | temp3_r = QMF_RE(Xlow[first - 1 + offset][p]); |
133 | #ifndef SBR_LOW_POWER | 133 | #ifndef SBR_LOW_POWER |
134 | temp2_i = QMF_IM(Xlow[first - 2 + offset][p]); | 134 | temp2_i = QMF_IM(Xlow[first - 2 + offset][p]); |
135 | temp3_i = QMF_IM(Xlow[first - 1 + offset][p]); | 135 | temp3_i = QMF_IM(Xlow[first - 1 + offset][p]); |
136 | #endif | 136 | #endif |
137 | for (l = first; l < last; l++) | 137 | for (l = first; l < last; l++) |
138 | { | 138 | { |
139 | temp1_r = temp2_r; | 139 | temp1_r = temp2_r; |
140 | temp2_r = temp3_r; | 140 | temp2_r = temp3_r; |
141 | temp3_r = QMF_RE(Xlow[l + offset][p]); | 141 | temp3_r = QMF_RE(Xlow[l + offset][p]); |
142 | #ifndef SBR_LOW_POWER | 142 | #ifndef SBR_LOW_POWER |
143 | temp1_i = temp2_i; | 143 | temp1_i = temp2_i; |
144 | temp2_i = temp3_i; | 144 | temp2_i = temp3_i; |
145 | temp3_i = QMF_IM(Xlow[l + offset][p]); | 145 | temp3_i = QMF_IM(Xlow[l + offset][p]); |
146 | #endif | 146 | #endif |
147 | 147 | ||
@@ -303,10 +303,10 @@ static void auto_correlation(sbr_info *sbr, acorr_coef *ac, qmf_t buffer[MAX_NTS | |||
303 | 303 | ||
304 | for (j = offset; j < len + offset; j++) | 304 | for (j = offset; j < len + offset; j++) |
305 | { | 305 | { |
306 | temp1_r = temp2_r; // temp1_r = (QMF_RE(buffer[offset-2][bd] + (1<<(exp-1))) >> exp; | 306 | temp1_r = temp2_r; // temp1_r = (QMF_RE(buffer[offset-2][bd] + (1<<(exp-1))) >> exp; |
307 | temp1_i = temp2_i; // temp1_i = (QMF_IM(buffer[offset-2][bd] + (1<<(exp-1))) >> exp; | 307 | temp1_i = temp2_i; // temp1_i = (QMF_IM(buffer[offset-2][bd] + (1<<(exp-1))) >> exp; |
308 | temp2_r = temp3_r; // temp2_r = (QMF_RE(buffer[offset-1][bd] + (1<<(exp-1))) >> exp; | 308 | temp2_r = temp3_r; // temp2_r = (QMF_RE(buffer[offset-1][bd] + (1<<(exp-1))) >> exp; |
309 | temp2_i = temp3_i; // temp2_i = (QMF_IM(buffer[offset-1][bd] + (1<<(exp-1))) >> exp; | 309 | temp2_i = temp3_i; // temp2_i = (QMF_IM(buffer[offset-1][bd] + (1<<(exp-1))) >> exp; |
310 | temp3_r = (QMF_RE(buffer[j][bd]) + pow2_to_exp) >> exp; | 310 | temp3_r = (QMF_RE(buffer[j][bd]) + pow2_to_exp) >> exp; |
311 | temp3_i = (QMF_IM(buffer[j][bd]) + pow2_to_exp) >> exp; | 311 | temp3_i = (QMF_IM(buffer[j][bd]) + pow2_to_exp) >> exp; |
312 | r01r += MUL_R(temp3_r, temp2_r) + MUL_R(temp3_i, temp2_i); | 312 | r01r += MUL_R(temp3_r, temp2_r) + MUL_R(temp3_i, temp2_i); |
@@ -352,10 +352,10 @@ static void auto_correlation(sbr_info *sbr, acorr_coef *ac, qmf_t buffer[MAX_NTS | |||
352 | 352 | ||
353 | for (j = offset; j < len + offset; j++) | 353 | for (j = offset; j < len + offset; j++) |
354 | { | 354 | { |
355 | temp1_r = temp2_r; // temp1_r = QMF_RE(buffer[j-2][bd]; | 355 | temp1_r = temp2_r; // temp1_r = QMF_RE(buffer[j-2][bd]; |
356 | temp1_i = temp2_i; // temp1_i = QMF_IM(buffer[j-2][bd]; | 356 | temp1_i = temp2_i; // temp1_i = QMF_IM(buffer[j-2][bd]; |
357 | temp2_r = temp3_r; // temp2_r = QMF_RE(buffer[j-1][bd]; | 357 | temp2_r = temp3_r; // temp2_r = QMF_RE(buffer[j-1][bd]; |
358 | temp2_i = temp3_i; // temp2_i = QMF_IM(buffer[j-1][bd]; | 358 | temp2_i = temp3_i; // temp2_i = QMF_IM(buffer[j-1][bd]; |
359 | temp3_r = QMF_RE(buffer[j][bd]); | 359 | temp3_r = QMF_RE(buffer[j][bd]); |
360 | temp3_i = QMF_IM(buffer[j][bd]); | 360 | temp3_i = QMF_IM(buffer[j][bd]); |
361 | r01r += temp3_r * temp2_r + temp3_i * temp2_i; | 361 | r01r += temp3_r * temp2_r + temp3_i * temp2_i; |