summaryrefslogtreecommitdiff
path: root/libavcodec/flacdsp.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-10-27 00:25:04 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-05 15:32:30 -0500
commit799e2324901c2a06e9a60ee281cd283475f1c4fa (patch)
tree1f5c7c0c6057122ad02968ab54b8a52b1131a997 /libavcodec/flacdsp.h
parent5ff998a233d759d0de83ea6f95c383d03d25d88e (diff)
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.
Diffstat (limited to 'libavcodec/flacdsp.h')
-rw-r--r--libavcodec/flacdsp.h2
1 files changed, 2 insertions, 0 deletions
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);