mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-25 00:49:59 +08:00
avcodec: add support for Cunning Developments' ADPCM
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
f4d8fad802
commit
3e22e738c0
@@ -177,3 +177,16 @@ const int16_t ff_adpcm_mtaf_stepsize[32][16] = {
|
||||
{ 424, 1273, 2121, 2970, 3819, 4668, 5516, 6365,
|
||||
-424, -1273, -2121, -2970, -3819, -4668, -5516, -6365, },
|
||||
};
|
||||
|
||||
const int8_t ff_adpcm_ima_cunning_index_table[8] = {
|
||||
-1, -1, -1, -1, 1, 2, 3, 4,
|
||||
};
|
||||
|
||||
const int16_t ff_adpcm_ima_cunning_step_table[61] = {
|
||||
1, 1, 1, 1, 2, 2, 3, 3, 4, 5,
|
||||
6, 7, 8, 10, 12, 14, 16, 20, 24, 28,
|
||||
32, 40, 48, 56, 64, 80, 96, 112, 128, 160,
|
||||
192, 224, 256, 320, 384, 448, 512, 640, 768, 896,
|
||||
1024, 1280, 1536, 1792, 2048, 2560, 3072, 3584, 4096, 5120,
|
||||
6144, 7168, 8192, 10240, 12288, 14336, 16384, 20480, 24576, 28672, 0
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user