You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avutil/lls: Make unchanged function arguments const
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "lls.h"
|
#include "lls.h"
|
||||||
|
|
||||||
static void update_lls(LLSModel *m, double *var)
|
static void update_lls(LLSModel *m, const double *var)
|
||||||
{
|
{
|
||||||
int i, j;
|
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;
|
int i;
|
||||||
double out = 0;
|
double out = 0;
|
||||||
|
|||||||
@@ -47,14 +47,14 @@ typedef struct LLSModel {
|
|||||||
* 32-byte aligned, and any padding elements must be initialized
|
* 32-byte aligned, and any padding elements must be initialized
|
||||||
* (i.e not denormal/nan).
|
* (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.
|
* Inner product of var[] and the LPC coefs.
|
||||||
* @param m this context
|
* @param m this context
|
||||||
* @param var training samples, excluding the value to be predicted. unaligned.
|
* @param var training samples, excluding the value to be predicted. unaligned.
|
||||||
* @param order lpc order
|
* @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;
|
} LLSModel;
|
||||||
|
|
||||||
void avpriv_init_lls(LLSModel *m, int indep_count);
|
void avpriv_init_lls(LLSModel *m, int indep_count);
|
||||||
|
|||||||
@@ -23,9 +23,9 @@
|
|||||||
#include "libavutil/lls.h"
|
#include "libavutil/lls.h"
|
||||||
#include "libavutil/x86/cpu.h"
|
#include "libavutil/x86/cpu.h"
|
||||||
|
|
||||||
void ff_update_lls_sse2(LLSModel *m, double *var);
|
void ff_update_lls_sse2(LLSModel *m, const double *var);
|
||||||
void ff_update_lls_avx(LLSModel *m, double *var);
|
void ff_update_lls_avx(LLSModel *m, const double *var);
|
||||||
double ff_evaluate_lls_sse2(LLSModel *m, double *var, int order);
|
double ff_evaluate_lls_sse2(LLSModel *m, const double *var, int order);
|
||||||
|
|
||||||
av_cold void ff_init_lls_x86(LLSModel *m)
|
av_cold void ff_init_lls_x86(LLSModel *m)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user