slsspecificconfig_c.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /***************************************************************************\
  2. *
  3. * (C) copyright Fraunhofer - IIS (2007)
  4. * All Rights Reserved
  5. *
  6. * $Header: /cvs/root/winamp/aacdec/incs/mp4dec_asc/slsspecificconfig_c.h,v 1.3 2012/05/08 20:16:50 audiodsp Exp $
  7. * project : MPEG-4 Audio Decoder
  8. * contents/description: sls specific config interface
  9. *
  10. * This software and/or program is protected by copyright law and
  11. * international treaties. Any reproduction or distribution of this
  12. * software and/or program, or any portion of it, may result in severe
  13. * civil and criminal penalties, and will be prosecuted to the maximum
  14. * extent possible under law.
  15. *
  16. \***************************************************************************/
  17. #ifndef __SLSSPECIFICCONFIG_C_H__
  18. #define __SLSSPECIFICCONFIG_C_H__
  19. #include "mp4dec_asc/audioobjecttypes.h"
  20. #include "mp4dec_asc/programcfg_c.h"
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif /* __cplusplus */
  24. struct CSBitStream;
  25. typedef struct CSSlsSpecificConfig {
  26. unsigned int m_pcmWordLength;
  27. unsigned int m_aacCorePresent;
  28. unsigned int m_lleMainStream;
  29. unsigned int m_reservedBit;
  30. unsigned int m_frameLength;
  31. CSProgramConfig m_progrConfigElement;
  32. } CSSlsSpecificConfig, *CSSlsSpecificConfigPtr;
  33. int getSlsFrameLen(int idx);
  34. int SlsSpecificConfig_Parse(CSSlsSpecificConfigPtr self, struct CSBitStream *bs, const int channelConfiguration);
  35. /* void SlsSpecificConfig_Set(CSSlsSpecificConfigPtr self, const CSSlsSpecificConfigPtr slssc, const AUDIO_OBJECT_TYPE aot); */
  36. /* int SlsSpecificConfig_Compare(const CSSlsSpecificConfigPtr self, const CSSlsSpecificConfigPtr slssc, const AUDIO_OBJECT_TYPE aot); */
  37. int SlsSpecificConfig_Print(CSSlsSpecificConfigPtr self, char string[]);
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* __SLSSPECIFICCONFIG_H__ */