s_huffcodetab.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* ------------------------------------------------------------------
  2. * Copyright (C) 1998-2009 PacketVideo
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  13. * express or implied.
  14. * See the License for the specific language governing permissions
  15. * and limitations under the License.
  16. * -------------------------------------------------------------------
  17. */
  18. /*
  19. ------------------------------------------------------------------------------
  20. PacketVideo Corp.
  21. MP3 Decoder Library
  22. Filename: s_huffcodetab.h
  23. Date: 09/21/2007
  24. ------------------------------------------------------------------------------
  25. REVISION HISTORY
  26. Description:
  27. ------------------------------------------------------------------------------
  28. INCLUDE DESCRIPTION
  29. ------------------------------------------------------------------------------
  30. REFERENCES
  31. [1] ISO MPEG Audio Subgroup Software Simulation Group (1996)
  32. ISO 13818-3 MPEG-2 Audio Decoder - Lower Sampling Frequency Extension
  33. ----------------------------------------------------------------------------*/
  34. /*----------------------------------------------------------------------------
  35. ; CONTINUE ONLY IF NOT ALREADY DEFINED
  36. ----------------------------------------------------------------------------*/
  37. #ifndef S_HUFFCODETAB_H
  38. #define S_HUFFCODETAB_H
  39. /*----------------------------------------------------------------------------
  40. ; INCLUDES
  41. ----------------------------------------------------------------------------*/
  42. #include "pvmp3_audio_type_defs.h"
  43. /*----------------------------------------------------------------------------
  44. ; MACROS
  45. ; Define module specific macros here
  46. ----------------------------------------------------------------------------*/
  47. /*----------------------------------------------------------------------------
  48. ; DEFINES
  49. ; Include all pre-processor statements here.
  50. ----------------------------------------------------------------------------*/
  51. #define HUFF_TBL 34
  52. /*----------------------------------------------------------------------------
  53. ; EXTERNAL VARIABLES REFERENCES
  54. ; Declare variables used in this module but defined elsewhere
  55. ----------------------------------------------------------------------------*/
  56. /*----------------------------------------------------------------------------
  57. ; SIMPLE TYPEDEF'S
  58. ----------------------------------------------------------------------------*/
  59. /*----------------------------------------------------------------------------
  60. ; ENUMERATED TYPEDEF'S
  61. ----------------------------------------------------------------------------*/
  62. /*----------------------------------------------------------------------------
  63. ; STRUCTURES TYPEDEF'S
  64. ----------------------------------------------------------------------------*/
  65. struct huffcodetab
  66. {
  67. uint32 linbits; /*number of linbits */
  68. uint16(*pdec_huff_tab)(tmp3Bits *);
  69. };
  70. /*----------------------------------------------------------------------------
  71. ; GLOBAL FUNCTION DEFINITIONS
  72. ; Function Prototype declaration
  73. ----------------------------------------------------------------------------*/
  74. /*----------------------------------------------------------------------------
  75. ; END
  76. ----------------------------------------------------------------------------*/
  77. #endif