summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm_data.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-21 15:29:15 +0000
committerPaul B Mahol <onemda@gmail.com>2012-11-24 10:56:47 +0000
commit3d8e684f0592603a91a2f33e68ae1934148f7d81 (patch)
tree474e3f5173807ebed237d26019a7c68bc9bc056b /libavcodec/adpcm_data.c
parented591ed842dad0e23e7ba83d854faa61d2e2eb0f (diff)
ADPCM IMA Dialogic decoder
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/adpcm_data.c')
-rw-r--r--libavcodec/adpcm_data.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/adpcm_data.c b/libavcodec/adpcm_data.c
index fe116446dc..0625fc9464 100644
--- a/libavcodec/adpcm_data.c
+++ b/libavcodec/adpcm_data.c
@@ -49,6 +49,14 @@ const int16_t ff_adpcm_step_table[89] = {
15289, 16818, 18500, 20350, 22385, 24623, 27086, 29794, 32767
};
+const int16_t ff_adpcm_oki_step_table[49] = {
+ 16, 17, 19, 21, 23, 25, 28, 31, 34, 37,
+ 41, 45, 50, 55, 60, 66, 73, 80, 88, 97,
+ 107, 118, 130, 143, 157, 173, 190, 209, 230, 253,
+ 279, 307, 337, 371, 408, 449, 494, 544, 598, 658,
+ 724, 796, 876, 963, 1060, 1166, 1282, 1411, 1552
+};
+
/* These are for MS-ADPCM */
/* ff_adpcm_AdaptationTable[], ff_adpcm_AdaptCoeff1[], and
ff_adpcm_AdaptCoeff2[] are from libsndfile */