summaryrefslogtreecommitdiff
path: root/libavutil/lls.h
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2013-06-18 21:30:41 +0000
committerLuca Barbato <lu_zero@gentoo.org>2013-06-29 13:23:57 +0200
commit41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2 (patch)
treeb492794cae47938289c3210e7b2a249c1843dcdf /libavutil/lls.h
parentcc6714bb16b1f0716ba43701d47273dbe9657b8b (diff)
lpc: use function pointers, in preparation for asm
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavutil/lls.h')
-rw-r--r--libavutil/lls.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/libavutil/lls.h b/libavutil/lls.h
index 9c71cf9e6e..81834402f7 100644
--- a/libavutil/lls.h
+++ b/libavutil/lls.h
@@ -37,12 +37,23 @@ typedef struct LLSModel {
double coeff[MAX_VARS][MAX_VARS];
double variance[MAX_VARS];
int indep_count;
+ /**
+ * Take the outer-product of var[] with itself, and add to the covariance matrix.
+ * @param m this context
+ * @param var training samples, starting with the value to be predicted
+ */
+ void (*update_lls)(struct LLSModel *m, double *var);
+ /**
+ * Inner product of var[] and the LPC coefs.
+ * @param m this context
+ * @param var training samples, excluding the value to be predicted
+ * @param order lpc order
+ */
+ double (*evaluate_lls)(struct LLSModel *m, double *var, int order);
} LLSModel;
void avpriv_init_lls(LLSModel *m, int indep_count);
-void avpriv_update_lls(LLSModel *m, double *param);
void avpriv_solve_lls(LLSModel *m, double threshold, unsigned short min_order);
-double avpriv_evaluate_lls(LLSModel *m, double *param, int order);
#if FF_API_LLS_PRIVATE
void av_init_lls(LLSModel *m, int indep_count);