From 799e2324901c2a06e9a60ee281cd283475f1c4fa Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sat, 27 Oct 2012 00:25:04 -0400 Subject: flacdsp: move lpc encoding from FLAC encoder to FLACDSPContext Also, templatize the functions for 16-bit and 32-bit sample range. This will be used for 24-bit FLAC encoding. --- libavcodec/flacdsp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/flacdsp.h') diff --git a/libavcodec/flacdsp.h b/libavcodec/flacdsp.h index 429daab346..33184b589d 100644 --- a/libavcodec/flacdsp.h +++ b/libavcodec/flacdsp.h @@ -27,6 +27,8 @@ typedef struct FLACDSPContext { int len, int shift); void (*lpc)(int32_t *samples, const int coeffs[32], int order, int qlevel, int len); + void (*lpc_encode)(int32_t *res, const int32_t *smp, int len, int order, + const int32_t *coefs, int shift); } FLACDSPContext; void ff_flacdsp_init(FLACDSPContext *c, enum AVSampleFormat fmt, int bps); -- cgit v1.2.3