libg722_1
0.0.1
|
00001 /* 00002 * g722_1 - a library for the G.722.1 and Annex C codecs 00003 * 00004 * huff_tab.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_STEPSIZE_DB 3.010299957 00018 #define ABS_REGION_POWER_LEVELS 32 00019 #define DIFF_REGION_POWER_LEVELS 24 00020 00021 #define DRP_DIFF_MIN -12 00022 #define DRP_DIFF_MAX 11 00023 00024 #define MAX_NUM_BINS 16 00025 #define MAX_VECTOR_INDICES 625 00026 #define MAX_VECTOR_DIMENSION 5 00027 00028 extern const int16_t differential_region_power_bits[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS]; 00029 extern const uint16_t differential_region_power_codes[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS]; 00030 extern const int16_t differential_region_power_decoder_tree[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS - 1][2]; 00031 #if defined(G722_1_USE_FIXED_POINT) 00032 extern const int16_t mlt_quant_centroid[NUM_CATEGORIES][MAX_NUM_BINS]; 00033 #else 00034 extern const float mlt_quant_centroid[NUM_CATEGORIES - 1][MAX_NUM_BINS]; 00035 #endif 00036 extern const int16_t expected_bits_table[NUM_CATEGORIES]; 00037 00038 extern const int16_t *table_of_bitcount_tables[NUM_CATEGORIES - 1]; 00039 extern const uint16_t *table_of_code_tables[NUM_CATEGORIES - 1]; 00040 00041 extern const int16_t *table_of_decoder_tables[NUM_CATEGORIES - 1]; 00042 00043 /*- End of file ------------------------------------------------------------*/