diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-04-01 12:05:34 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-04-01 12:05:34 +0000 |
commit | d35a8221a34a562a88bdb7c947a7018080539c59 (patch) | |
tree | aa5a5abd2d4421426668329a193d079d2d0b293d /third_party/g7221/common/tables.h | |
parent | 5c2400ce2b6ca229272457be1ff383df1d9c6139 (diff) |
Ticket #774:
- Initial source of G.722.1/Annex C integration.
- Disabled some "odd" modes of L16 codec (11kHz & 22kHz mono & stereo) while releasing some payload types.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2563 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/g7221/common/tables.h')
-rw-r--r-- | third_party/g7221/common/tables.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/third_party/g7221/common/tables.h b/third_party/g7221/common/tables.h new file mode 100644 index 00000000..ddf29eb3 --- /dev/null +++ b/third_party/g7221/common/tables.h @@ -0,0 +1,47 @@ +/*********************************************************************** +** +** ITU-T G.722.1 (2005-05) - Fixed point implementation for main body and Annex C +** > Software Release 2.1 (2008-06) +** (Simple repackaging; no change from 2005-05 Release 2.0 code) +** +** © 1999 PictureTel Coporation +** Andover, MA, USA +** +** All rights reserved. +** +***********************************************************************/ + +/*********************************************************************** + Filename: tables.h + + Purpose: Contains table definitions used by G.722.1 Annex C + + Design Notes: + +***********************************************************************/ + +/*********************************************************************** + Include files +***********************************************************************/ +#define REGION_POWER_TABLE_SIZE 64 +#define NUM_CATEGORIES 8 +#define DCT_LENGTH 320 +#define MAX_DCT_LENGTH 640 + +extern Word16 int_region_standard_deviation_table[REGION_POWER_TABLE_SIZE]; +extern Word16 standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE]; +extern Word16 step_size_inverse_table[NUM_CATEGORIES]; +extern Word16 vector_dimension[NUM_CATEGORIES]; +extern Word16 number_of_vectors[NUM_CATEGORIES]; +/* The last category isn't really coded with scalar quantization. */ +extern Word16 max_bin[NUM_CATEGORIES]; +extern Word16 max_bin_plus_one_inverse[NUM_CATEGORIES]; +extern Word16 int_dead_zone[NUM_CATEGORIES]; +extern Word16 samples_to_rmlt_window[DCT_LENGTH]; +extern Word16 rmlt_to_samples_window[DCT_LENGTH]; + +/* Add next line in Release 1.2 */ +extern Word16 int_dead_zone_low_bits[NUM_CATEGORIES]; + +extern Word16 max_samples_to_rmlt_window[MAX_DCT_LENGTH]; +extern Word16 max_rmlt_to_samples_window[MAX_DCT_LENGTH]; |