diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-06 14:33:38 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-06 14:33:38 +0100 |
commit | 15784c2bab56508565771cd04b5dda64d6717953 (patch) | |
tree | a0eade0816e7ea46a08a4cf7ffd2b25e6666c59b /libavutil/float_dsp.c | |
parent | 32aedebdc59d5b34ab7a9137855dcc602267e00f (diff) | |
parent | 9d5c62ba5b586c80af508b5914934b1c439f6652 (diff) | |
download | ffmpeg-15784c2bab56508565771cd04b5dda64d6717953.tar.gz |
Merge commit '9d5c62ba5b586c80af508b5914934b1c439f6652'
* commit '9d5c62ba5b586c80af508b5914934b1c439f6652':
lavu/opt: do not filter out the initial sign character except for flags
eval: treat dB as decibels instead of decibytes
float_dsp: add vector_dmul_scalar() to multiply a vector of doubles
Conflicts:
libavutil/eval.c
tests/ref/fate/eval
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/float_dsp.c')
-rw-r--r-- | libavutil/float_dsp.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/float_dsp.c b/libavutil/float_dsp.c index 7b551871d6..c8b2c65c3c 100644 --- a/libavutil/float_dsp.c +++ b/libavutil/float_dsp.c @@ -47,11 +47,20 @@ static void vector_fmul_scalar_c(float *dst, const float *src, float mul, dst[i] = src[i] * mul; } +static void vector_dmul_scalar_c(double *dst, const double *src, double mul, + int len) +{ + int i; + for (i = 0; i < len; i++) + dst[i] = src[i] * mul; +} + void avpriv_float_dsp_init(AVFloatDSPContext *fdsp, int bit_exact) { fdsp->vector_fmul = vector_fmul_c; fdsp->vector_fmac_scalar = vector_fmac_scalar_c; fdsp->vector_fmul_scalar = vector_fmul_scalar_c; + fdsp->vector_dmul_scalar = vector_dmul_scalar_c; #if ARCH_ARM ff_float_dsp_init_arm(fdsp); |