aubuffer_c.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /***************************************************************************\
  2. *
  3. * (C) copyright Fraunhofer - IIS (1998)
  4. * All Rights Reserved
  5. *
  6. * $Header: /cvs/root/winamp/aacdec/incs/mp4dec_helpers/aubuffer_c.h,v 1.3 2012/05/08 20:16:50 audiodsp Exp $
  7. * project : MPEG-4 Audio Decoder
  8. * contents/description: access unit module public 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 __AUBUFFERC_H__
  18. #define __AUBUFFERC_H__
  19. #include "mp4dec_helpers/err_code.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. #if defined(WIN32) || defined(WIN64)
  24. #pragma pack(push, 8)
  25. #endif
  26. /* Opaque declaration of access unit handle */
  27. struct CAccessUnit;
  28. typedef struct CAccessUnit* CAccessUnitPtr;
  29. CAccessUnitPtr MP4AUDIODECAPI CAccessUnit_Create(const unsigned char *pBuffer, const unsigned int size);
  30. MP4_RESULT MP4AUDIODECAPI CAccessUnit_Reset (const CAccessUnitPtr self);
  31. MP4_RESULT MP4AUDIODECAPI CAccessUnit_Assign(const CAccessUnitPtr self,
  32. const unsigned char *pBuffer,
  33. const unsigned int size);
  34. MP4_RESULT MP4AUDIODECAPI CAccessUnit_GetBitCount(const CAccessUnitPtr self, unsigned int* nBits);
  35. MP4_RESULT MP4AUDIODECAPI CAccessUnit_GetValidBits(const CAccessUnitPtr self, unsigned int* nBits);
  36. MP4_RESULT MP4AUDIODECAPI CAccessUnit_MarkAsInvalid(const CAccessUnitPtr self);
  37. int MP4AUDIODECAPI CAccessUnit_IsValid(const CAccessUnitPtr self);
  38. MP4_RESULT MP4AUDIODECAPI CAccessUnit_Destroy(CAccessUnitPtr *self);
  39. #if defined(WIN32) || defined(WIN64)
  40. #pragma pack(pop)
  41. #endif
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif