Commit 7162626c authored by vitor's avatar vitor

Simplify co(): remove variables that are only used once


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14301 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8b579c9c
...@@ -140,7 +140,6 @@ static void prodsum(float *tgt, const float *src, int len, int n) ...@@ -140,7 +140,6 @@ static void prodsum(float *tgt, const float *src, int len, int n)
static void co(int n, int i, int j, const float *in, float *out, float *st1, static void co(int n, int i, int j, const float *in, float *out, float *st1,
float *st2, const float *table) float *st2, const float *table)
{ {
int a, b, c;
unsigned int x; unsigned int x;
const float *fp; const float *fp;
float buffer1[37]; float buffer1[37];
...@@ -148,16 +147,15 @@ static void co(int n, int i, int j, const float *in, float *out, float *st1, ...@@ -148,16 +147,15 @@ static void co(int n, int i, int j, const float *in, float *out, float *st1,
float work[111]; float work[111];
/* rotate and multiply */ /* rotate and multiply */
c = (b = (a = n + i) + j) - i;
fp = st1 + i; fp = st1 + i;
for (x=0; x < b; x++) { for (x=0; x < n + i + j; x++) {
if (x == c) if (x == n + j)
fp=in; fp=in;
work[x] = *(table++) * (*(st1++) = *(fp++)); work[x] = *(table++) * (*(st1++) = *(fp++));
} }
prodsum(buffer1, work + n, i, n); prodsum(buffer1, work + n, i, n);
prodsum(buffer2, work + a, j, n); prodsum(buffer2, work + n + i, j, n);
for (x=0;x<=n;x++) { for (x=0;x<=n;x++) {
*st2 = *st2 * (0.5625) + buffer1[x]; *st2 = *st2 * (0.5625) + buffer1[x];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment