1 /* GSM 06.20 - GSM HR codec */
4 * (C) 2010 Sylvain Munaut <tnt@246tNt.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 /* GSM HR unvoiced (mode=0) frames - subjective importance bit ordering */
27 /* This array encode mapping between GSM 05.03 Table 3a (bits
28 * ordering before channel coding on TCH) and GSM 06.20 Table B.1
29 * (bit ordering on A-bis */
30 uint16_t gsm620_unvoiced_bitorder[112] = {
126 106, /* Code 2-4:0 */
127 105, /* Code 2-4:1 */
128 104, /* Code 2-4:2 */
129 103, /* Code 2-4:3 */
130 102, /* Code 2-4:4 */
131 101, /* Code 2-4:5 */
132 100, /* Code 2-4:6 */
145 /* GSM HR voiced (mode=1,2,3) frames - subjective importance bit ordering */
146 /* This array encode mapping between GSM 05.03 Table 3b (bits
147 * ordering before channel coding on TCH) and GSM 06.20 Table B.2
148 * (bit ordering on A-bis */
149 uint16_t gsm620_voiced_bitorder[112] = {