libg722_1 0.0.1
huff_tab.h
1/*
2 * g722_1 - a library for the G.722.1 and Annex C codecs
3 *
4 * huff_tab.h
5 *
6 * Adapted by Steve Underwood <steveu@coppice.org> from the reference
7 * code supplied with ITU G.722.1, which is:
8 *
9 * (C) 2004 Polycom, Inc.
10 * All rights reserved.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 */
16
17#define REGION_POWER_STEPSIZE_DB 3.010299957
18#define ABS_REGION_POWER_LEVELS 32
19#define DIFF_REGION_POWER_LEVELS 24
20
21#define DRP_DIFF_MIN -12
22#define DRP_DIFF_MAX 11
23
24#define MAX_NUM_BINS 16
25#define MAX_VECTOR_INDICES 625
26#define MAX_VECTOR_DIMENSION 5
27
28extern const int16_t differential_region_power_bits[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS];
29extern const uint16_t differential_region_power_codes[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS];
30extern const int16_t differential_region_power_decoder_tree[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS - 1][2];
31#if defined(G722_1_USE_FIXED_POINT)
32extern const int16_t mlt_quant_centroid[NUM_CATEGORIES][MAX_NUM_BINS];
33#else
34extern const float mlt_quant_centroid[NUM_CATEGORIES - 1][MAX_NUM_BINS];
35#endif
36extern const int16_t expected_bits_table[NUM_CATEGORIES];
37
38extern const int16_t *table_of_bitcount_tables[NUM_CATEGORIES - 1];
39extern const uint16_t *table_of_code_tables[NUM_CATEGORIES - 1];
40
41extern const int16_t *table_of_decoder_tables[NUM_CATEGORIES - 1];
42
43/*- End of file ------------------------------------------------------------*/