tables.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /***********************************************************************
  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. Filename: tables.h
  15. Purpose: Contains table definitions used by G.722.1 Annex C
  16. Design Notes:
  17. ***********************************************************************/
  18. /***********************************************************************
  19. Include files
  20. ***********************************************************************/
  21. #define REGION_POWER_TABLE_SIZE 64
  22. #define NUM_CATEGORIES 8
  23. #define DCT_LENGTH 320
  24. #define MAX_DCT_LENGTH 640
  25. extern Word16 int_region_standard_deviation_table[REGION_POWER_TABLE_SIZE];
  26. extern Word16 standard_deviation_inverse_table[REGION_POWER_TABLE_SIZE];
  27. extern Word16 step_size_inverse_table[NUM_CATEGORIES];
  28. extern Word16 vector_dimension[NUM_CATEGORIES];
  29. extern Word16 number_of_vectors[NUM_CATEGORIES];
  30. /* The last category isn't really coded with scalar quantization. */
  31. extern Word16 max_bin[NUM_CATEGORIES];
  32. extern Word16 max_bin_plus_one_inverse[NUM_CATEGORIES];
  33. extern Word16 int_dead_zone[NUM_CATEGORIES];
  34. extern Word16 samples_to_rmlt_window[DCT_LENGTH];
  35. extern Word16 rmlt_to_samples_window[DCT_LENGTH];
  36. /* Add next line in Release 1.2 */
  37. extern Word16 int_dead_zone_low_bits[NUM_CATEGORIES];
  38. extern Word16 max_samples_to_rmlt_window[MAX_DCT_LENGTH];
  39. extern Word16 max_rmlt_to_samples_window[MAX_DCT_LENGTH];