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
20extern const int16_t vector_dimension[NUM_CATEGORIES];
21extern const int16_t number_of_vectors[NUM_CATEGORIES];
22/* The last category isn't really coded with scalar quantization. */
23extern const int16_t max_bin[NUM_CATEGORIES];
24extern const int16_t max_bin_plus_one_inverse[NUM_CATEGORIES];
25
26#if defined(G722_1_USE_FIXED_POINT)
27extern const int16_t int_region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
28extern const int16_t standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
29extern const int16_t step_size_inverse_table[NUM_CATEGORIES];
30extern const int16_t int_dead_zone[NUM_CATEGORIES];
31extern const int16_t int_dead_zone_low_bits[NUM_CATEGORIES];
32extern const int16_t samples_to_rmlt_window[DCT_LENGTH];
33extern const int16_t max_samples_to_rmlt_window[MAX_DCT_LENGTH];
34extern const int16_t rmlt_to_samples_window[DCT_LENGTH];
35extern const int16_t max_rmlt_to_samples_window[MAX_DCT_LENGTH];
36#else
37extern const float region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
38extern const float standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
39extern const float step_size_inverse_table[NUM_CATEGORIES];
40extern const float dead_zone[NUM_CATEGORIES];
41extern const float samples_to_rmlt_window[DCT_LENGTH];
42extern const float max_samples_to_rmlt_window[MAX_DCT_LENGTH];
43extern const float rmlt_to_samples_window[DCT_LENGTH];
44extern const float max_rmlt_to_samples_window[MAX_DCT_LENGTH];
45
46extern const float step_size[NUM_CATEGORIES];
47extern const float region_power_table[REGION_POWER_TABLE_SIZE];
48extern const float region_power_table_boundary[REGION_POWER_TABLE_SIZE - 1];
49#endif
50
51/*- End of file ------------------------------------------------------------*/