libg722_1  0.0.1
tables.h
00001 /*
00002  * g722_1 - a library for the G.722.1 and Annex C codecs
00003  *
00004  * tables.h
00005  *
00006  * Adapted by Steve Underwood <steveu@coppice.org> from the reference
00007  * code supplied with ITU G.722.1, which is:
00008  *
00009  *   (C) 2004 Polycom, Inc.
00010  *   All rights reserved.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00015  */
00016 
00017 #define REGION_POWER_TABLE_SIZE 64
00018 #define NUM_CATEGORIES          8
00019 
00020 extern const int16_t vector_dimension[NUM_CATEGORIES];
00021 extern const int16_t number_of_vectors[NUM_CATEGORIES];
00022 /* The last category isn't really coded with scalar quantization. */
00023 extern const int16_t max_bin[NUM_CATEGORIES];
00024 extern const int16_t max_bin_plus_one_inverse[NUM_CATEGORIES];
00025 
00026 #if defined(G722_1_USE_FIXED_POINT)
00027 extern const int16_t int_region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
00028 extern const int16_t standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
00029 extern const int16_t step_size_inverse_table[NUM_CATEGORIES];
00030 extern const int16_t int_dead_zone[NUM_CATEGORIES];
00031 extern const int16_t int_dead_zone_low_bits[NUM_CATEGORIES];
00032 extern const int16_t samples_to_rmlt_window[DCT_LENGTH];
00033 extern const int16_t max_samples_to_rmlt_window[MAX_DCT_LENGTH];
00034 extern const int16_t rmlt_to_samples_window[DCT_LENGTH];
00035 extern const int16_t max_rmlt_to_samples_window[MAX_DCT_LENGTH];
00036 #else
00037 extern const float region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
00038 extern const float standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
00039 extern const float step_size_inverse_table[NUM_CATEGORIES];
00040 extern const float dead_zone[NUM_CATEGORIES];
00041 extern const float samples_to_rmlt_window[DCT_LENGTH];
00042 extern const float max_samples_to_rmlt_window[MAX_DCT_LENGTH];
00043 extern const float rmlt_to_samples_window[DCT_LENGTH];
00044 extern const float max_rmlt_to_samples_window[MAX_DCT_LENGTH];
00045 
00046 extern const float step_size[NUM_CATEGORIES];
00047 extern const float region_power_table[REGION_POWER_TABLE_SIZE];
00048 extern const float region_power_table_boundary[REGION_POWER_TABLE_SIZE - 1];
00049 #endif
00050 
00051 /*- End of file ------------------------------------------------------------*/