blob: ddf29eb3d28795a96ec4cb1ce29d9a56b4367311 [file] [log] [blame]
Alexandre Lision67916dd2014-01-24 13:33:04 -05001/***********************************************************************
2**
3** ITU-T G.722.1 (2005-05) - Fixed point implementation for main body and Annex C
4** > Software Release 2.1 (2008-06)
5** (Simple repackaging; no change from 2005-05 Release 2.0 code)
6**
7** © 1999 PictureTel Coporation
8** Andover, MA, USA
9**
10** All rights reserved.
11**
12***********************************************************************/
13
14/***********************************************************************
15 Filename: tables.h
16
17 Purpose: Contains table definitions used by G.722.1 Annex C
18
19 Design Notes:
20
21***********************************************************************/
22
23/***********************************************************************
24 Include files
25***********************************************************************/
26#define REGION_POWER_TABLE_SIZE 64
27#define NUM_CATEGORIES 8
28#define DCT_LENGTH 320
29#define MAX_DCT_LENGTH 640
30
31extern Word16 int_region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
32extern Word16 standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
33extern Word16 step_size_inverse_table[NUM_CATEGORIES];
34extern Word16 vector_dimension[NUM_CATEGORIES];
35extern Word16 number_of_vectors[NUM_CATEGORIES];
36/* The last category isn't really coded with scalar quantization. */
37extern Word16 max_bin[NUM_CATEGORIES];
38extern Word16 max_bin_plus_one_inverse[NUM_CATEGORIES];
39extern Word16 int_dead_zone[NUM_CATEGORIES];
40extern Word16 samples_to_rmlt_window[DCT_LENGTH];
41extern Word16 rmlt_to_samples_window[DCT_LENGTH];
42
43/* Add next line in Release 1.2 */
44extern Word16 int_dead_zone_low_bits[NUM_CATEGORIES];
45
46extern Word16 max_samples_to_rmlt_window[MAX_DCT_LENGTH];
47extern Word16 max_rmlt_to_samples_window[MAX_DCT_LENGTH];