huff_tab.h

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  *   © 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: huff_tab.h,v 1.4 2008/09/30 14:06:40 steveu Exp $
00017  */
00018 
00019 #define REGION_POWER_STEPSIZE_DB    3.010299957
00020 #define ABS_REGION_POWER_LEVELS     32
00021 #define DIFF_REGION_POWER_LEVELS    24
00022 
00023 #define DRP_DIFF_MIN                -12
00024 #define DRP_DIFF_MAX                11
00025 
00026 #define MAX_NUM_BINS                16
00027 #define MAX_VECTOR_INDICES          625
00028 #define MAX_VECTOR_DIMENSION        5
00029 
00030 extern const int16_t differential_region_power_bits[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS];
00031 extern const uint16_t differential_region_power_codes[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS];
00032 extern const int16_t differential_region_power_decoder_tree[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS - 1][2];
00033 #if defined(G722_1_USE_FIXED_POINT)
00034 extern const int16_t mlt_quant_centroid[NUM_CATEGORIES][MAX_NUM_BINS];
00035 #else
00036 extern const float mlt_quant_centroid[NUM_CATEGORIES - 1][MAX_NUM_BINS];
00037 #endif
00038 extern const int16_t expected_bits_table[NUM_CATEGORIES];
00039 
00040 extern const int16_t *table_of_bitcount_tables[NUM_CATEGORIES - 1];
00041 extern const uint16_t *table_of_code_tables[NUM_CATEGORIES - 1];
00042 
00043 extern const int16_t *table_of_decoder_tables[NUM_CATEGORIES - 1];
00044 
00045 /*- End of file ------------------------------------------------------------*/

Generated on 16 Jul 2011 for libg722_1 by  doxygen 1.6.1