mp3read.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /***************************************************************************\
  2. *
  3. * MPEG Layer3-Audio Decoder
  4. * © 1997-2006 by Fraunhofer IIS
  5. * All Rights Reserved
  6. *
  7. * filename: mp3read.h
  8. * project : ISO/MPEG-Decoder
  9. * author : Martin Sieler
  10. * date : 1998-05-26
  11. * contents/description: mp3 read-functions: sideinfo, main data,
  12. * scalefactors
  13. *
  14. *
  15. \***************************************************************************/
  16. /*
  17. * $Date: 2010/11/17 20:46:04 $
  18. * $Id: mp3read.h,v 1.1 2010/11/17 20:46:04 audiodsp Exp $
  19. */
  20. /*-------------------------------------------------------------------------*/
  21. #ifndef __MP3READ_H__
  22. #define __MP3READ_H__
  23. /* ------------------------ includes --------------------------------------*/
  24. #include "mpeg.h"
  25. /* ------------------------------------------------------------------------*/
  26. class CBitStream;
  27. /* ------------------------------------------------------------------------*/
  28. bool mp3SideInfoRead(CBitStream &Bs, MP3SI &Si, const MPEG_INFO &Info, int crc_check);
  29. bool mp3MainDataRead
  30. (
  31. CBitStream &Bs, // bitstream
  32. CBitStream &Db, // dynamic buffer
  33. const MP3SI &Si,
  34. const MPEG_INFO &Info
  35. );
  36. void mp3ScaleFactorRead
  37. (
  38. CBitStream &Bs,
  39. MP3SI_GRCH &SiGrCh,
  40. MP3SCF &ScaleFac,
  41. const MPEG_INFO &Info,
  42. const int *pScfsi,
  43. int gr,
  44. int ch
  45. );
  46. /*-------------------------------------------------------------------------*/
  47. #endif