Mercurial > libavcodec.hg
comparison dsputil.c @ 10300:4d1b9ca628fc libavcodec
Drop unused args from vector_fmul_add_add, simpify code, and rename
The src3 and step arguments to vector_fmul_add_add() are always zero
and one, respectively. This removes these arguments from the function,
simplifies the code accordingly, and renames the function to better
match the new operation.
author | mru |
---|---|
date | Sun, 27 Sep 2009 16:51:54 +0000 |
parents | 87ae4a167138 |
children | 6009feb54020 |
comparison
equal
deleted
inserted
replaced
10299:a1654cd1b5b9 | 10300:4d1b9ca628fc |
---|---|
4066 src1 += len-1; | 4066 src1 += len-1; |
4067 for(i=0; i<len; i++) | 4067 for(i=0; i<len; i++) |
4068 dst[i] = src0[i] * src1[-i]; | 4068 dst[i] = src0[i] * src1[-i]; |
4069 } | 4069 } |
4070 | 4070 |
4071 void ff_vector_fmul_add_add_c(float *dst, const float *src0, const float *src1, const float *src2, int src3, int len, int step){ | 4071 static void vector_fmul_add_c(float *dst, const float *src0, const float *src1, const float *src2, int len){ |
4072 int i; | 4072 int i; |
4073 for(i=0; i<len; i++) | 4073 for(i=0; i<len; i++) |
4074 dst[i*step] = src0[i] * src1[i] + src2[i] + src3; | 4074 dst[i] = src0[i] * src1[i] + src2[i]; |
4075 } | 4075 } |
4076 | 4076 |
4077 void ff_vector_fmul_window_c(float *dst, const float *src0, const float *src1, const float *win, float add_bias, int len){ | 4077 void ff_vector_fmul_window_c(float *dst, const float *src0, const float *src1, const float *win, float add_bias, int len){ |
4078 int i,j; | 4078 int i,j; |
4079 dst += len; | 4079 dst += len; |
4785 #if CONFIG_FLAC_ENCODER | 4785 #if CONFIG_FLAC_ENCODER |
4786 c->flac_compute_autocorr = ff_flac_compute_autocorr; | 4786 c->flac_compute_autocorr = ff_flac_compute_autocorr; |
4787 #endif | 4787 #endif |
4788 c->vector_fmul = vector_fmul_c; | 4788 c->vector_fmul = vector_fmul_c; |
4789 c->vector_fmul_reverse = vector_fmul_reverse_c; | 4789 c->vector_fmul_reverse = vector_fmul_reverse_c; |
4790 c->vector_fmul_add_add = ff_vector_fmul_add_add_c; | 4790 c->vector_fmul_add = vector_fmul_add_c; |
4791 c->vector_fmul_window = ff_vector_fmul_window_c; | 4791 c->vector_fmul_window = ff_vector_fmul_window_c; |
4792 c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; | 4792 c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; |
4793 c->vector_clipf = vector_clipf_c; | 4793 c->vector_clipf = vector_clipf_c; |
4794 c->float_to_int16 = ff_float_to_int16_c; | 4794 c->float_to_int16 = ff_float_to_int16_c; |
4795 c->float_to_int16_interleave = ff_float_to_int16_interleave_c; | 4795 c->float_to_int16_interleave = ff_float_to_int16_interleave_c; |