diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-09-01 06:34:50 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-09-01 06:34:50 +0100 |
commit | 0fc3a51353509df107a8da192d8377f0121f7ab9 (patch) | |
tree | 9ba9700350fad07505ffdd1349b002f6aa7fade3 /libavcodec/lpc.h | |
parent | a70ee2bdcd88e34ab9c82cb78262248b95757122 (diff) | |
download | ffmpeg-0fc3a51353509df107a8da192d8377f0121f7ab9.tar.gz |
lpc: add ff_lpc_calc_ref_coefs_f() function
This commit adds a function to get the reflection coefficients on
floating point samples. It's functionally identical to
ff_lpc_calc_ref_coefs() except it works on float samples and will
return the global prediction gain. The Welch window implementation
which is more optimized works only on int32_t samples so a slower
generic expression was used.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/lpc.h')
-rw-r--r-- | libavcodec/lpc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/lpc.h b/libavcodec/lpc.h index 3aef6231a8..7e0ee3e172 100644 --- a/libavcodec/lpc.h +++ b/libavcodec/lpc.h @@ -100,6 +100,8 @@ int ff_lpc_calc_coefs(LPCContext *s, int ff_lpc_calc_ref_coefs(LPCContext *s, const int32_t *samples, int order, double *ref); +double ff_lpc_calc_ref_coefs_f(LPCContext *s, const float *samples, int len, + int order, double *ref); /** * Initialize LPCContext. |