summaryrefslogtreecommitdiff
path: root/libavcodec/g722.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-12-21 09:03:57 +0000
committerMartin Storsjö <martin@martin.st>2010-12-21 09:03:57 +0000
commit8bd1956462e862315a78ca6442c5b54c5dd1f826 (patch)
tree240fc7c53afdc97c265d957bd9df365da504418a /libavcodec/g722.c
parent90ca26e121f3403f0375e9c59338bce8ae4942e9 (diff)
g722: Move the low_inv_quant6 table up to the common tables
Since SVN rev 25866, this table is used by the trellis encoder, too, not only by the decoder. Originally committed as revision 26065 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/g722.c')
-rw-r--r--libavcodec/g722.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libavcodec/g722.c b/libavcodec/g722.c
index a05e8ca59c..96a2bd6535 100644
--- a/libavcodec/g722.c
+++ b/libavcodec/g722.c
@@ -98,6 +98,16 @@ static const int16_t low_inv_quant4[16] = {
0, -2557, -1612, -1121, -786, -530, -323, -150,
2557, 1612, 1121, 786, 530, 323, 150, 0
};
+static const int16_t low_inv_quant6[64] = {
+ -17, -17, -17, -17, -3101, -2738, -2376, -2088,
+ -1873, -1689, -1535, -1399, -1279, -1170, -1072, -982,
+ -899, -822, -750, -682, -618, -558, -501, -447,
+ -396, -347, -300, -254, -211, -170, -130, -91,
+ 3101, 2738, 2376, 2088, 1873, 1689, 1535, 1399,
+ 1279, 1170, 1072, 982, 899, 822, 750, 682,
+ 618, 558, 501, 447, 396, 347, 300, 254,
+ 211, 170, 130, 91, 54, 17, -54, -17
+};
/**
* quadrature mirror filter (QMF) coefficients
@@ -262,16 +272,6 @@ static const int16_t low_inv_quant5[32] = {
2919, 2195, 1765, 1458, 1219, 1023, 858, 714,
587, 473, 370, 276, 190, 110, 35, -35
};
-static const int16_t low_inv_quant6[64] = {
- -17, -17, -17, -17, -3101, -2738, -2376, -2088,
- -1873, -1689, -1535, -1399, -1279, -1170, -1072, -982,
- -899, -822, -750, -682, -618, -558, -501, -447,
- -396, -347, -300, -254, -211, -170, -130, -91,
- 3101, 2738, 2376, 2088, 1873, 1689, 1535, 1399,
- 1279, 1170, 1072, 982, 899, 822, 750, 682,
- 618, 558, 501, 447, 396, 347, 300, 254,
- 211, 170, 130, 91, 54, 17, -54, -17
-};
static const int16_t *low_inv_quants[3] = { low_inv_quant6, low_inv_quant5,
low_inv_quant4 };