summaryrefslogtreecommitdiff
path: root/apps/codecs/libfaad/sbr_qmf.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-02-22 19:44:05 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-02-22 19:44:05 +0000
commit398b37124e870b3be69a03e5d89c5887204d6990 (patch)
tree2f8da4ae1b5a47db97a298db5e6ffa916beed90b /apps/codecs/libfaad/sbr_qmf.c
parentc1bb06c3af4c5277e4a08c0084da86a69bc9d127 (diff)
downloadrockbox-398b37124e870b3be69a03e5d89c5887204d6990.tar.gz
rockbox-398b37124e870b3be69a03e5d89c5887204d6990.zip
Remove all tabs within codec path.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24862 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libfaad/sbr_qmf.c')
-rw-r--r--apps/codecs/libfaad/sbr_qmf.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/codecs/libfaad/sbr_qmf.c b/apps/codecs/libfaad/sbr_qmf.c
index 540332bdcb..5486cd283d 100644
--- a/apps/codecs/libfaad/sbr_qmf.c
+++ b/apps/codecs/libfaad/sbr_qmf.c
@@ -42,12 +42,12 @@ qmfa_info *qmfa_init(uint8_t channels)
42{ 42{
43 qmfa_info *qmfa = (qmfa_info*)faad_malloc(sizeof(qmfa_info)); 43 qmfa_info *qmfa = (qmfa_info*)faad_malloc(sizeof(qmfa_info));
44 44
45 /* x is implemented as double ringbuffer */ 45 /* x is implemented as double ringbuffer */
46 qmfa->x = (real_t*)faad_malloc(2 * channels * 10 * sizeof(real_t)); 46 qmfa->x = (real_t*)faad_malloc(2 * channels * 10 * sizeof(real_t));
47 memset(qmfa->x, 0, 2 * channels * 10 * sizeof(real_t)); 47 memset(qmfa->x, 0, 2 * channels * 10 * sizeof(real_t));
48 48
49 /* ringbuffer index */ 49 /* ringbuffer index */
50 qmfa->x_index = 0; 50 qmfa->x_index = 0;
51 51
52 qmfa->channels = channels; 52 qmfa->channels = channels;
53 53
@@ -81,7 +81,7 @@ void sbr_qmf_analysis_32(sbr_info *sbr, qmfa_info *qmfa, const real_t *input,
81 int16_t n; 81 int16_t n;
82 82
83 /* shift input buffer x */ 83 /* shift input buffer x */
84 /* input buffer is not shifted anymore, x is implemented as double ringbuffer */ 84 /* input buffer is not shifted anymore, x is implemented as double ringbuffer */
85 //memmove(qmfa->x + 32, qmfa->x, (320-32)*sizeof(real_t)); 85 //memmove(qmfa->x + 32, qmfa->x, (320-32)*sizeof(real_t));
86 86
87 /* add new samples to input buffer x */ 87 /* add new samples to input buffer x */
@@ -104,10 +104,10 @@ void sbr_qmf_analysis_32(sbr_info *sbr, qmfa_info *qmfa, const real_t *input,
104 MUL_F(qmfa->x[qmfa->x_index + n + 256], qmf_c[2*(n + 256)]); 104 MUL_F(qmfa->x[qmfa->x_index + n + 256], qmf_c[2*(n + 256)]);
105 } 105 }
106 106
107 /* update ringbuffer index */ 107 /* update ringbuffer index */
108 qmfa->x_index -= 32; 108 qmfa->x_index -= 32;
109 if (qmfa->x_index < 0) 109 if (qmfa->x_index < 0)
110 qmfa->x_index = (320-32); 110 qmfa->x_index = (320-32);
111 111
112 /* calculate 32 subband samples by introducing X */ 112 /* calculate 32 subband samples by introducing X */
113#ifdef SBR_LOW_POWER 113#ifdef SBR_LOW_POWER
@@ -224,7 +224,7 @@ qmfs_info *qmfs_init(uint8_t channels)
224{ 224{
225 qmfs_info *qmfs = (qmfs_info*)faad_malloc(sizeof(qmfs_info)); 225 qmfs_info *qmfs = (qmfs_info*)faad_malloc(sizeof(qmfs_info));
226 226
227 /* v is a double ringbuffer */ 227 /* v is a double ringbuffer */
228 qmfs->v = (real_t*)faad_malloc(2 * channels * 20 * sizeof(real_t)); 228 qmfs->v = (real_t*)faad_malloc(2 * channels * 20 * sizeof(real_t));
229 memset(qmfs->v, 0, 2 * channels * 20 * sizeof(real_t)); 229 memset(qmfs->v, 0, 2 * channels * 20 * sizeof(real_t));
230 230
@@ -483,8 +483,8 @@ void sbr_qmf_synthesis_64(sbr_info *sbr, qmfs_info *qmfs, qmf_t X[MAX_NTSRHFG][6
483 for (l = 0; l < sbr->numTimeSlotsRate; l++) 483 for (l = 0; l < sbr->numTimeSlotsRate; l++)
484 { 484 {
485 /* shift buffer v */ 485 /* shift buffer v */
486 /* buffer is not shifted, we use double ringbuffer */ 486 /* buffer is not shifted, we use double ringbuffer */
487 //memmove(qmfs->v + 128, qmfs->v, (1280-128)*sizeof(real_t)); 487 //memmove(qmfs->v + 128, qmfs->v, (1280-128)*sizeof(real_t));
488 488
489 /* calculate 128 samples */ 489 /* calculate 128 samples */
490#ifndef FIXED_POINT 490#ifndef FIXED_POINT