1
0

eldspecificconfig_c.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /***************************************************************************\
  2. *
  3. * (C) copyright Fraunhofer - IIS (2007)
  4. * All Rights Reserved
  5. *
  6. * $Header: /cvs/root/winamp/aacdec/incs/mp4dec_asc/eldspecificconfig_c.h,v 1.3 2012/05/08 20:16:50 audiodsp Exp $
  7. * project : MPEG-4 Audio Decoder
  8. * contents/description: eld specific specific config parser - 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 __ELDPECIFICCONFIG_C_H__
  18. #define __ELDPECIFICCONFIG_C_H__
  19. #include "mp4dec_asc/audioobjecttypes.h"
  20. #define MAX_SBR_HEADER_SIZE 4
  21. #define MAX_ELD_SBR_ELEMENTS 8
  22. #define MAX_ELD_EXTENSIONS 6
  23. #define MAX_ELD_EXTENSIONS_LENGTH 32
  24. #define ASC_ELD_ELDEXT_TERM 0x0000
  25. #define ASC_ELD_ELDEXT_SAOC 0x0001
  26. #define ASC_ELD_ELDEXT_LDSAC 0x0002
  27. #define ASC_ELD_ELDEXT_PSEUDOMC 0x0003
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif /* __cplusplus */
  31. struct CSBitStream;
  32. typedef struct {
  33. int tag;
  34. int length;
  35. unsigned char config_payload[MAX_ELD_EXTENSIONS_LENGTH];
  36. } ELD_EXTENSION;
  37. typedef struct CSEldSpecificConfig {
  38. unsigned int m_frameLengthFlag;
  39. unsigned int m_vcb11Flag;
  40. unsigned int m_rvlcFlag;
  41. unsigned int m_hcrFlag;
  42. unsigned int m_ldSbrPresentFlag;
  43. unsigned int m_ldSbrSamplingRateFlag;
  44. unsigned int m_ldSbrCrcFlag;
  45. unsigned int m_useLDQMFTimeAlignment;
  46. unsigned char m_ldSbrHeaderData[MAX_ELD_SBR_ELEMENTS][MAX_SBR_HEADER_SIZE];
  47. ELD_EXTENSION m_eldExtension[MAX_ELD_EXTENSIONS];
  48. } CSEldSpecificConfig, *CSEldSpecificConfigPtr;
  49. void EldSpecificConfig_Parse(CSEldSpecificConfigPtr self, struct CSBitStream *bs, const int channelConfiguration, const AUDIO_OBJECT_TYPE aot, int* ldmpspresent, int* saocpresent);
  50. void EldSpecificConfig_Copy(CSEldSpecificConfigPtr self, const CSEldSpecificConfigPtr gasc);
  51. int EldSpecificConfig_Compare(const CSEldSpecificConfigPtr self, const CSEldSpecificConfigPtr eldsc, const AUDIO_OBJECT_TYPE aot);
  52. #ifdef ASC_PRINT
  53. int EldSpecificConfig_Print(const CSEldSpecificConfigPtr eldsc, char string[], const int channelConfiguration, const AUDIO_OBJECT_TYPE aot);
  54. #endif
  55. ELD_EXTENSION* getEldExtension( int tag, const CSEldSpecificConfigPtr eldsc);
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif /* __ELDPECIFICCONFIG_H__ */