summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm_data.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-19 10:51:44 +0000
committerPaul B Mahol <onemda@gmail.com>2012-11-22 19:27:44 +0000
commit32cd3a7c16e1d1b5633e72f42397e9cb218f5e2b (patch)
tree7712c9d3971f52cb1f22670e435733179b4e0c67 /libavcodec/adpcm_data.c
parent08e26e7f5c0caa0b056354ef8b5230f6893f0994 (diff)
downloadffmpeg-32cd3a7c16e1d1b5633e72f42397e9cb218f5e2b.tar.gz
ADPCM AFC decoder
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/adpcm_data.c')
-rw-r--r--libavcodec/adpcm_data.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/adpcm_data.c b/libavcodec/adpcm_data.c
index f19d622d3b..fe116446dc 100644
--- a/libavcodec/adpcm_data.c
+++ b/libavcodec/adpcm_data.c
@@ -76,3 +76,8 @@ const int8_t ff_adpcm_yamaha_difflookup[] = {
1, 3, 5, 7, 9, 11, 13, 15,
-1, -3, -5, -7, -9, -11, -13, -15
};
+
+const int16_t ff_adpcm_afc_coeffs[2][16] = {
+ { 0, 2048, 0, 1024, 4096, 3584, 3072, 4608, 4200, 4800, 5120, 2048, 1024, 64512, 64512, 63488 },
+ { 0, 0, 2048, 1024, 63488, 64000, 64512, 62976, 63288, 63236, 62464, 63488, 64512, 1024, 0, 0 }
+};