huff_def.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. ** © 2004 Polycom, Inc.
  8. **
  9. ** All rights reserved.
  10. **
  11. ***********************************************************************/
  12. #define REGION_POWER_STEPSIZE_DB 3.010299957
  13. #define ABS_REGION_POWER_LEVELS 32
  14. #define DIFF_REGION_POWER_LEVELS 24
  15. #define DRP_DIFF_MIN -12
  16. #define DRP_DIFF_MAX 11
  17. #define MAX_NUM_BINS 16
  18. #define MAX_VECTOR_INDICES 625
  19. #define MAX_VECTOR_DIMENSION 5
  20. extern Word16 differential_region_power_bits[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS];
  21. extern UWord16 differential_region_power_codes[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS];
  22. extern Word16 differential_region_power_decoder_tree[MAX_NUMBER_OF_REGIONS][DIFF_REGION_POWER_LEVELS-1][2];
  23. extern Word16 mlt_quant_centroid[NUM_CATEGORIES][MAX_NUM_BINS];
  24. extern Word16 expected_bits_table[NUM_CATEGORIES];
  25. extern Word16 mlt_sqvh_bitcount_category_0[196];
  26. extern UWord16 mlt_sqvh_code_category_0[196];
  27. extern Word16 mlt_sqvh_bitcount_category_1[100];
  28. extern UWord16 mlt_sqvh_code_category_1[100];
  29. extern Word16 mlt_sqvh_bitcount_category_2[49];
  30. extern UWord16 mlt_sqvh_code_category_2[49];
  31. extern Word16 mlt_sqvh_bitcount_category_3[625];
  32. extern UWord16 mlt_sqvh_code_category_3[625];
  33. extern Word16 mlt_sqvh_bitcount_category_4[256];
  34. extern UWord16 mlt_sqvh_code_category_4[256];
  35. extern Word16 mlt_sqvh_bitcount_category_5[243];
  36. extern UWord16 mlt_sqvh_code_category_5[243];
  37. extern Word16 mlt_sqvh_bitcount_category_6[32];
  38. extern UWord16 mlt_sqvh_code_category_6[32];
  39. extern Word16 *table_of_bitcount_tables[NUM_CATEGORIES-1];
  40. extern UWord16 *table_of_code_tables[NUM_CATEGORIES-1];
  41. extern Word16 mlt_decoder_tree_category_0[180][2];
  42. extern Word16 mlt_decoder_tree_category_1[93][2];
  43. extern Word16 mlt_decoder_tree_category_2[47][2];
  44. extern Word16 mlt_decoder_tree_category_3[519][2];
  45. extern Word16 mlt_decoder_tree_category_4[208][2];
  46. extern Word16 mlt_decoder_tree_category_5[191][2];
  47. extern Word16 mlt_decoder_tree_category_6[31][2];
  48. extern Word16 *table_of_decoder_tables[NUM_CATEGORIES-1];