diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-01-31 22:26:02 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-02-02 05:40:48 +0300 |
commit | a8ae4e0e7bf854a4eb278ab353478d6ab7334d22 (patch) | |
tree | f860a60a19ba6621d6d16c0c5a464d3860fb7df4 /libavcodec/dsputil.c | |
parent | 403fa3cf07db6aba070eef262f10d0616088025f (diff) |
Remove unneeded add bias from 3 functions.
DSPContext.vector_fmul_window()
DCADSPContext.lfe_fir()
SynthFilterContext.synth_filter_float()
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 80ba1ddb58b5923b9f36a6acd542affc4ca722eb)
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index f604f0e7f9..2d4ec72026 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -3776,7 +3776,9 @@ static void vector_fmul_add_c(float *dst, const float *src0, const float *src1, dst[i] = src0[i] * src1[i] + src2[i]; } -void ff_vector_fmul_window_c(float *dst, const float *src0, const float *src1, const float *win, float add_bias, int len){ +static void vector_fmul_window_c(float *dst, const float *src0, + const float *src1, const float *win, int len) +{ int i,j; dst += len; win += len; @@ -3786,8 +3788,8 @@ void ff_vector_fmul_window_c(float *dst, const float *src0, const float *src1, c float s1 = src1[j]; float wi = win[i]; float wj = win[j]; - dst[i] = s0*wj - s1*wi + add_bias; - dst[j] = s0*wi + s1*wj + add_bias; + dst[i] = s0*wj - s1*wi; + dst[j] = s0*wi + s1*wj; } } @@ -4434,7 +4436,7 @@ av_cold void dsputil_init(DSPContext* c, AVCodecContext *avctx) c->vector_fmul = vector_fmul_c; c->vector_fmul_reverse = vector_fmul_reverse_c; c->vector_fmul_add = vector_fmul_add_c; - c->vector_fmul_window = ff_vector_fmul_window_c; + c->vector_fmul_window = vector_fmul_window_c; c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; c->vector_clipf = vector_clipf_c; c->float_to_int16 = ff_float_to_int16_c; |