diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-28 15:44:38 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-28 19:32:07 +0200 |
commit | 579a0fdc211f9d700f67f80f91deef72e05a5d70 (patch) | |
tree | d78841e7edf70c2fbc3acc9183d93fb1fce553e2 /libavutil | |
parent | d22e88d120ebaff40d25a5872b75d69e2ced5a61 (diff) | |
download | ffmpeg-579a0fdc211f9d700f67f80f91deef72e05a5d70.tar.gz |
avutil/lls: Make unchanged function arguments const
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/lls.c | 4 | ||||
-rw-r--r-- | libavutil/lls.h | 4 | ||||
-rw-r--r-- | libavutil/x86/lls_init.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/libavutil/lls.c b/libavutil/lls.c index 06fe4238ed..f77043bc4a 100644 --- a/libavutil/lls.c +++ b/libavutil/lls.c @@ -32,7 +32,7 @@ #include "version.h" #include "lls.h" -static void update_lls(LLSModel *m, double *var) +static void update_lls(LLSModel *m, const double *var) { int i, j; @@ -100,7 +100,7 @@ void avpriv_solve_lls(LLSModel *m, double threshold, unsigned short min_order) } } -static double evaluate_lls(LLSModel *m, double *param, int order) +static double evaluate_lls(LLSModel *m, const double *param, int order) { int i; double out = 0; diff --git a/libavutil/lls.h b/libavutil/lls.h index 46f96060d0..5635b5b2fd 100644 --- a/libavutil/lls.h +++ b/libavutil/lls.h @@ -47,14 +47,14 @@ typedef struct LLSModel { * 32-byte aligned, and any padding elements must be initialized * (i.e not denormal/nan). */ - void (*update_lls)(struct LLSModel *m, double *var); + void (*update_lls)(struct LLSModel *m, const double *var); /** * Inner product of var[] and the LPC coefs. * @param m this context * @param var training samples, excluding the value to be predicted. unaligned. * @param order lpc order */ - double (*evaluate_lls)(struct LLSModel *m, double *var, int order); + double (*evaluate_lls)(struct LLSModel *m, const double *var, int order); } LLSModel; void avpriv_init_lls(LLSModel *m, int indep_count); diff --git a/libavutil/x86/lls_init.c b/libavutil/x86/lls_init.c index 181ca38dae..f53190488a 100644 --- a/libavutil/x86/lls_init.c +++ b/libavutil/x86/lls_init.c @@ -23,9 +23,9 @@ #include "libavutil/lls.h" #include "libavutil/x86/cpu.h" -void ff_update_lls_sse2(LLSModel *m, double *var); -void ff_update_lls_avx(LLSModel *m, double *var); -double ff_evaluate_lls_sse2(LLSModel *m, double *var, int order); +void ff_update_lls_sse2(LLSModel *m, const double *var); +void ff_update_lls_avx(LLSModel *m, const double *var); +double ff_evaluate_lls_sse2(LLSModel *m, const double *var, int order); av_cold void ff_init_lls_x86(LLSModel *m) { |