mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Cosmetics: move convolve() together with the other DSP functions
Originally committed as revision 15403 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a987a126fd
commit
e60daa340b
@ -69,6 +69,13 @@ static void apply_window(float *tgt, const float *m1, const float *m2, int n)
|
|||||||
*tgt++ = *m1++ * *m2++;
|
*tgt++ = *m1++ * *m2++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void convolve(float *tgt, const float *src, int len, int n)
|
||||||
|
{
|
||||||
|
for (; n >= 0; n--)
|
||||||
|
tgt[n] = scalar_product_float(src, src - n, len);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
static void decode(RA288Context *ractx, float gain, int cb_coef)
|
static void decode(RA288Context *ractx, float gain, int cb_coef)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
@ -114,13 +121,6 @@ static void decode(RA288Context *ractx, float gain, int cb_coef)
|
|||||||
block[i] = av_clipf(block[i], -4095, 4095);
|
block[i] = av_clipf(block[i], -4095, 4095);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void convolve(float *tgt, const float *src, int len, int n)
|
|
||||||
{
|
|
||||||
for (; n >= 0; n--)
|
|
||||||
tgt[n] = scalar_product_float(src, src - n, len);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hybrid window filtering, see blocks 36 and 49 of the G.728 specification.
|
* Hybrid window filtering, see blocks 36 and 49 of the G.728 specification.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user