comparison ac3dec_data.c @ 7686:880c701c3dcf libavcodec

right shift the values by 8 in GAQ remap "B" table. data now fits in int8_t.
author jbr
date Mon, 25 Aug 2008 00:15:29 +0000
parents c4b959c09dff
children 06340e09c0ba
comparison
equal deleted inserted replaced
7685:c4b959c09dff 7686:880c701c3dcf
85 }; 85 };
86 86
87 /** 87 /**
88 * Table E3.6, Gk=2 & Gk=4, B 88 * Table E3.6, Gk=2 & Gk=4, B
89 * Large mantissa inverse quantization, negative mantissa remapping offsets 89 * Large mantissa inverse quantization, negative mantissa remapping offsets
90 * Table values from the spec are right-shifted by 8 to simplify calculations.
90 * ff_eac3_gaq_remap_3_4_b[hebap-8][Gk=2,4] 91 * ff_eac3_gaq_remap_3_4_b[hebap-8][Gk=2,4]
91 */ 92 */
92 const int16_t ff_eac3_gaq_remap_2_4_b[9][2] = { 93 const int8_t ff_eac3_gaq_remap_2_4_b[9][2] = {
93 { -5461, -1170}, 94 { -22, -5 },
94 { -11703, -4915}, 95 { -46, -20 },
95 { -14199, -6606}, 96 { -56, -26 },
96 { -15327, -7412}, 97 { -60, -29 },
97 { -15864, -7805}, 98 { -62, -31 },
98 { -16126, -7999}, 99 { -63, -32 },
99 { -16255, -8096}, 100 { -64, -32 },
100 { -16320, -8144}, 101 { -64, -32 },
101 { -16352, -8168} 102 { -64, -32 },
102 }; 103 };
103 104
104 static const int16_t vq_hebap1[4][6] = { 105 static const int16_t vq_hebap1[4][6] = {
105 { 7167, 4739, 1106, 4269, 10412, 4820}, 106 { 7167, 4739, 1106, 4269, 10412, 4820},
106 { -5702, -3187, -14483, -1392, -2027, 849}, 107 { -5702, -3187, -14483, -1392, -2027, 849},