diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2010-03-01 19:56:51 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2010-03-01 19:56:51 +0000 |
commit | efb0102fef6e54c542839edc3ea6365d35a437db (patch) | |
tree | 6dc1260562b497776ec97ac6aded7fa7b594d87d | |
parent | 8a4d067dfcb350006f27c8b053cb85bac7c99d13 (diff) | |
download | ffmpeg-efb0102fef6e54c542839edc3ea6365d35a437db.tar.gz |
Add commented-out unoptimized code to improve readability
Originally committed as revision 22136 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/celp_filters.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/celp_filters.c b/libavcodec/celp_filters.c index e828e0611c..862db761f2 100644 --- a/libavcodec/celp_filters.c +++ b/libavcodec/celp_filters.c @@ -86,6 +86,13 @@ void ff_celp_lp_synthesis_filterf(float *out, const float *filter_coeffs, { int i,n; +#if 0 // Unoptimized code patch for improved readability + for (n = 0; n < buffer_length; n++) { + out[n] = in[n]; + for (i = 1; i <= filter_length; i++) + out[n] -= filter_coeffs[i-1] * out[n-i]; + } +#else float out0, out1, out2, out3; float old_out0, old_out1, old_out2, old_out3; float a,b,c; @@ -186,6 +193,7 @@ void ff_celp_lp_synthesis_filterf(float *out, const float *filter_coeffs, for (i = 1; i <= filter_length; i++) out[n] -= filter_coeffs[i-1] * out[n-i]; } +#endif } void ff_celp_lp_zero_synthesis_filterf(float *out, const float *filter_coeffs, |