summaryrefslogtreecommitdiff
path: root/libavutil/lls.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-30 11:22:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-30 11:23:43 +0200
commitc93a424718c38c6add273745f3792b531332ea88 (patch)
treeab6de6854680c0f8499dcaf4cad0d90c1c470920 /libavutil/lls.h
parentd3bd320e63bfbc96d78a673a01d36f25dc6316e7 (diff)
parent41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2 (diff)
Merge commit '41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2'
* commit '41578f70cf8aec8e7565fba1ca7e07f3dc46c3d2': lpc: use function pointers, in preparation for asm Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 360be4e747..f5159f3f2f 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);