Mercurial > libavcodec.hg
changeset 7213:cf82f8a56940 libavcodec
Remove phasep context var, it is just phase*5
author | vitor |
---|---|
date | Sun, 06 Jul 2008 12:03:21 +0000 |
parents | bced5f60fcaf |
children | 12d4a98a9255 |
files | ra288.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/ra288.c Sun Jul 06 12:01:59 2008 +0000 +++ b/ra288.c Sun Jul 06 12:03:21 2008 +0000 @@ -29,7 +29,7 @@ float output[40]; float pr1[36]; float pr2[10]; - int phase, phasep; + int phase; float st1a[111], st1b[37], st1[37]; float st2a[38], st2b[11], st2[11]; @@ -95,7 +95,7 @@ else if (f < -4095) f = -4095; - glob->output[glob->phasep+x] = glob->sb[4-x] = f; + glob->output[glob->phase*5+x] = glob->sb[4-x] = f; } } @@ -185,7 +185,7 @@ float buffer1[40], temp1[37]; float buffer2[8], temp2[11]; - y = glob->phasep+5; + y = glob->phase*5+5; for (x=0; x < 40; x++) buffer1[x] = glob->output[(y++)%40]; @@ -226,11 +226,11 @@ for (x=0; x < 32; x++) { float gain = amptable[get_bits(&gb, 3)]; int cb_coef = get_bits(&gb, 6 + (x&1)); - glob->phasep = (glob->phase = x & 7) * 5; + glob->phase = x & 7; decode(glob, gain, cb_coef); for (y=0; y < 5; y++) - *(out++) = 8 * glob->output[glob->phasep + y]; + *(out++) = 8 * glob->output[glob->phase*5 + y]; if (glob->phase == 3) update(glob);