err_code.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /***************************************************************************\
  2. *
  3. * (C) copyright Fraunhofer - IIS (1998)
  4. * All Rights Reserved
  5. *
  6. * $Header: /cvs/root/winamp/aacdec/incs/mp4dec_helpers/err_code.h,v 1.3 2012/05/08 20:16:50 audiodsp Exp $
  7. * project : MPEG-4 Audio Decoder
  8. * contents/description: exported error codes
  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 __ERR_CODE_H__
  18. #define __ERR_CODE_H__
  19. typedef int MP4_RESULT;
  20. #ifndef MP4AUDIODECAPI
  21. #if defined(WIN32) || defined(WIN64)
  22. #define MP4AUDIODECAPI __stdcall
  23. #else
  24. #define MP4AUDIODECAPI
  25. #endif
  26. #endif
  27. enum {
  28. MP4AUDIODEC_OK = 0,
  29. __exported_error_codes_start = -100,
  30. MP4AUDIODEC_NOT_OK = __exported_error_codes_start,
  31. MP4AUDIODEC_INVALID_HANDLE,
  32. MP4AUDIODEC_INVALID_POINTER,
  33. MP4AUDIODEC_INVALID_PARAMETER,
  34. MP4AUDIODEC_INVALID_VALUE,
  35. MP4AUDIODEC_INVALID_AUBUFFER,
  36. MP4AUDIODEC_INVALID_CUBUFFER,
  37. MP4AUDIODEC_INVALID_CHANNELCONFIG,
  38. MP4AUDIODEC_INVALID_NROFCHANNELS,
  39. MP4AUDIODEC_INVALID_SAMPLERATE,
  40. MP4AUDIODEC_INVALID_SAMPLESPERFRAME,
  41. MP4AUDIODEC_INVALID_EPCONFIG,
  42. MP4AUDIODEC_OUTOFMEMORY,
  43. MP4AUDIODEC_NOT_IMPLEMENTED,
  44. MP4AUDIODEC_AOT_NOT_SUPPORTED,
  45. MP4AUDIODEC_NOLAYERSTODECODE,
  46. MP4AUDIODEC_INVALID_FRAME_LENGTH,
  47. MP4AUDIODEC_TOOMANYLAYERS,
  48. MP4AUDIODEC_UNKNOWNERROR,
  49. MP4AUDIODEC_INVALID_CORECODER,
  50. MP4AUDIODEC_CELP_INVALIDCONFIG,
  51. MP4AUDIODEC_AUBUFFER_TOOMANYSUBFRAMES,
  52. MP4AUDIODEC_AUBUFFER_TOOSMALL,
  53. MP4AUDIODEC_CUBUFFER_TAGTYPE_NOTFOUND,
  54. MP4AUDIODEC_CUBUFFER_INVALIDPARAM,
  55. MP4AUDIODEC_CUBUFFER_NOMORE_ANCDATA,
  56. MP4AUDIODEC_CUBUFFER_PROPERTYNOTFOUND,
  57. MP4AUDIODEC_CUBUFFER_NOTENOUGHCHANNELS,
  58. MP4AUDIODEC_CUBUFFER_NOTENOUGHSAMPLES,
  59. MP4AUDIODEC_CUBUFFER_NOMORE_MESSAGES,
  60. MP4AUDIODEC_CUBUFFER_INVALIDPCMTYPE,
  61. MP4AUDIODEC_EP_PARSEERROR,
  62. MP4AUDIODEC_EP_PARSEERROR_DIRECTMAPPING,
  63. MP4AUDIODEC_SBRLIBERROR,
  64. MP4AUDIODEC_SBR_INVALID_ELEID,
  65. MP4AUDIODEC_MPEGS_ERROR,
  66. __exported_error_codes_end
  67. };
  68. #endif