s_mp3bits.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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_mp3bits.h
  23. Date: 09/21/2007
  24. ------------------------------------------------------------------------------
  25. REVISION HISTORY
  26. Description:
  27. ------------------------------------------------------------------------------
  28. INCLUDE DESCRIPTION
  29. This include file defines the structure, BITS
  30. ------------------------------------------------------------------------------
  31. */
  32. /*----------------------------------------------------------------------------
  33. ; CONTINUE ONLY IF NOT ALREADY DEFINED
  34. ----------------------------------------------------------------------------*/
  35. #ifndef S_MP3BITS_H
  36. #define S_MP3BITS_H
  37. /*----------------------------------------------------------------------------
  38. ; INCLUDES
  39. ----------------------------------------------------------------------------*/
  40. #include "pvmp3_audio_type_defs.h"
  41. /*----------------------------------------------------------------------------
  42. ; MACROS
  43. ; Define module specific macros here
  44. ----------------------------------------------------------------------------*/
  45. /*----------------------------------------------------------------------------
  46. ; DEFINES
  47. ; Include all pre-processor statements here.
  48. ----------------------------------------------------------------------------*/
  49. /*----------------------------------------------------------------------------
  50. ; EXTERNAL VARIABLES REFERENCES
  51. ; Declare variables used in this module but defined elsewhere
  52. ----------------------------------------------------------------------------*/
  53. /*----------------------------------------------------------------------------
  54. ; SIMPLE TYPEDEF'S
  55. ----------------------------------------------------------------------------*/
  56. /*----------------------------------------------------------------------------
  57. ; ENUMERATED TYPEDEF'S
  58. ----------------------------------------------------------------------------*/
  59. /*----------------------------------------------------------------------------
  60. ; STRUCTURES TYPEDEF'S
  61. ----------------------------------------------------------------------------*/
  62. /*
  63. * Name: BITS
  64. * Description: Holds information for processing the input data buffer
  65. * as a "stream". The data is in packed format.
  66. * Fields:
  67. * pBuffer - pointer to the beginning of the buffer. If the data type of
  68. * this changes, make sure to update the constants in ibstream.h
  69. * usedBits - number of bits read thus far from the buffer. Bit 0 is
  70. * the LSB of pBuffer[0].
  71. */
  72. typedef struct
  73. {
  74. uint8 *pBuffer;
  75. uint32 usedBits;
  76. uint32 inputBufferCurrentLength;
  77. uint32 offset;
  78. } tmp3Bits;
  79. /*----------------------------------------------------------------------------
  80. ; GLOBAL FUNCTION DEFINITIONS
  81. ; Function Prototype declaration
  82. ----------------------------------------------------------------------------*/
  83. /*----------------------------------------------------------------------------
  84. ; END
  85. ----------------------------------------------------------------------------*/
  86. #endif