Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2010-07-01 17:37:42 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2010-07-01 17:37:42 +0400
commit6cbb04ca0bd4d7feba3e510187231a7065153149 (patch)
tree04c24c00094d70d7f5d819f46169def6e153b629 /src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/lpc.h
parent2fa91881376e2755415efcb52973a3fa482c2e97 (diff)
updated ffmpeg
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2092 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/lpc.h')
-rw-r--r--src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/lpc.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/lpc.h b/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/lpc.h
index c8053d0d7..a5b6f2ebb 100644
--- a/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/lpc.h
+++ b/src/filters/transform/MPCVideoDec/ffmpeg/libavcodec/lpc.h
@@ -23,6 +23,30 @@
#define AVCODEC_LPC_H
#include <stdint.h>
+#include "dsputil.h"
+
+#define ORDER_METHOD_EST 0
+#define ORDER_METHOD_2LEVEL 1
+#define ORDER_METHOD_4LEVEL 2
+#define ORDER_METHOD_8LEVEL 3
+#define ORDER_METHOD_SEARCH 4
+#define ORDER_METHOD_LOG 5
+
+#define MIN_LPC_ORDER 1
+#define MAX_LPC_ORDER 32
+
+
+/**
+ * Calculate LPC coefficients for multiple orders
+ */
+int ff_lpc_calc_coefs(DSPContext *s,
+ const int32_t *samples, int blocksize, int min_order,
+ int max_order, int precision,
+ int32_t coefs[][MAX_LPC_ORDER], int *shift, int use_lpc,
+ int omethod, int max_shift, int zero_shift);
+
+void ff_lpc_compute_autocorr(const int32_t *data, int len, int lag,
+ double *autoc);
#ifdef LPC_USE_DOUBLE
#define LPC_TYPE double
@@ -32,7 +56,7 @@
/**
* Levinson-Durbin recursion.
- * Produces LPC coefficients from autocorrelation data.
+ * Produce LPC coefficients from autocorrelation data.
*/
static inline int compute_lpc_coefs(const LPC_TYPE *autoc, int max_order,
LPC_TYPE *lpc, int lpc_stride, int fail,