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  *   © 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  * $Id: tables.h,v 1.7 2008/09/26 17:37:31 steveu Exp $
00017  */
00018 
00019 #define REGION_POWER_TABLE_SIZE 64
00020 #define NUM_CATEGORIES          8
00021 
00022 extern const int16_t vector_dimension[NUM_CATEGORIES];
00023 extern const int16_t number_of_vectors[NUM_CATEGORIES];
00024 /* The last category isn't really coded with scalar quantization. */
00025 extern const int16_t max_bin[NUM_CATEGORIES];
00026 extern const int16_t max_bin_plus_one_inverse[NUM_CATEGORIES];
00027 
00028 #if defined(G722_1_USE_FIXED_POINT)
00029 extern const int16_t int_region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
00030 extern const int16_t standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
00031 extern const int16_t step_size_inverse_table[NUM_CATEGORIES];
00032 extern const int16_t int_dead_zone[NUM_CATEGORIES];
00033 extern const int16_t int_dead_zone_low_bits[NUM_CATEGORIES];
00034 extern const int16_t samples_to_rmlt_window[DCT_LENGTH];
00035 extern const int16_t max_samples_to_rmlt_window[MAX_DCT_LENGTH];
00036 extern const int16_t rmlt_to_samples_window[DCT_LENGTH];
00037 extern const int16_t max_rmlt_to_samples_window[MAX_DCT_LENGTH];
00038 #else
00039 extern const float region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
00040 extern const float standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
00041 extern const float step_size_inverse_table[NUM_CATEGORIES];
00042 extern const float dead_zone[NUM_CATEGORIES];
00043 extern const float samples_to_rmlt_window[DCT_LENGTH];
00044 extern const float max_samples_to_rmlt_window[MAX_DCT_LENGTH];
00045 extern const float rmlt_to_samples_window[DCT_LENGTH];
00046 extern const float max_rmlt_to_samples_window[MAX_DCT_LENGTH];
00047 
00048 extern const float step_size[NUM_CATEGORIES];
00049 extern const float region_power_table[REGION_POWER_TABLE_SIZE];
00050 extern const float region_power_table_boundary[REGION_POWER_TABLE_SIZE - 1];
00051 #endif
00052 
00053 /*- End of file ------------------------------------------------------------*/

Generated on 16 Jul 2011 for libg722_1 by  doxygen 1.6.1