gaspecificconfig_c.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /***************************************************************************\
  2. *
  3. * (C) copyright Fraunhofer - IIS (1998)
  4. * All Rights Reserved
  5. *
  6. * $Header: /cvs/root/winamp/aacdec/incs/mp4dec_asc/gaspecificconfig_c.h,v 1.3 2012/05/08 20:16:50 audiodsp Exp $
  7. * project : MPEG-4 Audio Decoder
  8. * contents/description: global audio 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 __GASPECIFICCONFIG_C_H__
  18. #define __GASPECIFICCONFIG_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 CSGaSpecificConfig {
  26. unsigned int m_frameLengthFlag;
  27. unsigned int m_dependsOnCoreCoder;
  28. unsigned int m_coreCoderDelay;
  29. unsigned int m_extensionFlag;
  30. unsigned int m_extensionFlag3;
  31. unsigned int m_layer;
  32. unsigned int m_numOfSubFrame;
  33. unsigned int m_layerLength;
  34. unsigned int m_vcb11Flag;
  35. unsigned int m_rvlcFlag;
  36. unsigned int m_hcrFlag;
  37. CSProgramConfig m_progrConfigElement;
  38. } CSGaSpecificConfig, *CSGaSpecificConfigPtr;
  39. void GaSpecificConfig_Parse(CSGaSpecificConfigPtr self, struct CSBitStream *bs, const int channelConfiguration, const AUDIO_OBJECT_TYPE aot);
  40. void GaSpecificConfig_Copy(CSGaSpecificConfigPtr self, const CSGaSpecificConfigPtr gasc);
  41. int GaSpecificConfig_Compare(const CSGaSpecificConfigPtr self, const CSGaSpecificConfigPtr gasc, const AUDIO_OBJECT_TYPE aot);
  42. #ifdef ASC_PRINT
  43. int GaSpecificConfig_Print(const CSGaSpecificConfigPtr gasc, char string[], const int channelConfiguration, const AUDIO_OBJECT_TYPE aot);
  44. #endif
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif /* __GASPECIFICCONFIG_H__ */