libg722_1  0.0.1
tables.h
1 /*
2  * g722_1 - a library for the G.722.1 and Annex C codecs
3  *
4  * tables.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_TABLE_SIZE 64
18 #define NUM_CATEGORIES 8
19 
20 extern const int16_t vector_dimension[NUM_CATEGORIES];
21 extern const int16_t number_of_vectors[NUM_CATEGORIES];
22 /* The last category isn't really coded with scalar quantization. */
23 extern const int16_t max_bin[NUM_CATEGORIES];
24 extern const int16_t max_bin_plus_one_inverse[NUM_CATEGORIES];
25 
26 #if defined(G722_1_USE_FIXED_POINT)
27 extern const int16_t int_region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
28 extern const int16_t standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
29 extern const int16_t step_size_inverse_table[NUM_CATEGORIES];
30 extern const int16_t int_dead_zone[NUM_CATEGORIES];
31 extern const int16_t int_dead_zone_low_bits[NUM_CATEGORIES];
32 extern const int16_t samples_to_rmlt_window[DCT_LENGTH];
33 extern const int16_t max_samples_to_rmlt_window[MAX_DCT_LENGTH];
34 extern const int16_t rmlt_to_samples_window[DCT_LENGTH];
35 extern const int16_t max_rmlt_to_samples_window[MAX_DCT_LENGTH];
36 #else
37 extern const float region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
38 extern const float standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
39 extern const float step_size_inverse_table[NUM_CATEGORIES];
40 extern const float dead_zone[NUM_CATEGORIES];
41 extern const float samples_to_rmlt_window[DCT_LENGTH];
42 extern const float max_samples_to_rmlt_window[MAX_DCT_LENGTH];
43 extern const float rmlt_to_samples_window[DCT_LENGTH];
44 extern const float max_rmlt_to_samples_window[MAX_DCT_LENGTH];
45 
46 extern const float step_size[NUM_CATEGORIES];
47 extern const float region_power_table[REGION_POWER_TABLE_SIZE];
48 extern const float region_power_table_boundary[REGION_POWER_TABLE_SIZE - 1];
49 #endif
50 
51 /*- End of file ------------------------------------------------------------*/