summaryrefslogtreecommitdiff
path: root/libavcodec/gsmdec_data.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-06-04 16:53:54 +0200
committerDiego Biurrun <diego@biurrun.de>2016-06-07 13:22:22 +0200
commit81f769fa129edc51c28285649c2df6da717e718f (patch)
tree07c0e4d4d0826b9cd82f1daf3ae7de5a3da0c851 /libavcodec/gsmdec_data.c
parent42dc214323637464759354912e18b2bee1884dd1 (diff)
gsm: Move requant_tab table to the gsm tables file
This avoids duplicating the table in the gsm template file. Also adjust the table type to uint8_t to save space.
Diffstat (limited to 'libavcodec/gsmdec_data.c')
-rw-r--r--libavcodec/gsmdec_data.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/gsmdec_data.c b/libavcodec/gsmdec_data.c
index c9b3183a55..71f788e8cc 100644
--- a/libavcodec/gsmdec_data.c
+++ b/libavcodec/gsmdec_data.c
@@ -26,6 +26,13 @@ const uint16_t ff_gsm_long_term_gain_tab[4] = {
3277, 11469, 21299, 32767
};
+const uint8_t ff_gsm_requant_tab[4][8] = {
+ { 0 },
+ { 0, 7 },
+ { 0, 2, 5, 7 },
+ { 0, 1, 2, 3, 4, 5, 6, 7 }
+};
+
const int16_t ff_gsm_dequant_tab[64][8] = {
{ -28, -20, -12, -4, 4, 12, 20, 28},
{ -56, -40, -24, -8, 8, 24, 40, 56},