mpeg2hwd_debug.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2007 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Abstract : Utility macros for debugging and tracing
  17. --
  18. --------------------------------------------------------------------------------
  19. --
  20. -- Version control information, please leave untouched.
  21. --
  22. -- $RCSfile: mpeg2hwd_debug.h,v $
  23. -- $Date: 2007/12/14 10:59:19 $
  24. -- $Revision: 1.3 $
  25. --
  26. ------------------------------------------------------------------------------*/
  27. #ifndef __MPEG2DEBUG_H__
  28. #define __MPEG2DEBUG_H__
  29. #ifdef _ASSERT_USED
  30. #ifndef ASSERT
  31. #include <assert.h>
  32. #define ASSERT(expr) assert(expr)
  33. #endif
  34. #else
  35. #define ASSERT(expr)
  36. #endif
  37. #ifdef _MPEG2APITRACE
  38. #include <stdio.h>
  39. #endif
  40. #ifdef _MPEG2_DEBUG_TRACE
  41. #include <stdio.h>
  42. #endif
  43. #ifdef _DEBUG_PRINT
  44. #include <stdio.h>
  45. #endif
  46. #ifdef _MPEG2APITRACE
  47. #define MPEG2FLUSH fflush(stdout)
  48. #endif
  49. #ifdef _DEBUG_PRINT
  50. #define MPEG2FLUSH fflush(stdout)
  51. #endif
  52. #ifndef MPEG2FLUSH
  53. #define MPEG2FLUSH
  54. #endif
  55. /* macro for debug printing. Note that double parenthesis has to be used, i.e.
  56. * DEBUG(("Debug printing %d\n",%d)) */
  57. #ifdef _MPEG2APITRACE
  58. #define MPEG2DEC_API_DEBUG(args) printf args
  59. #else
  60. #define MPEG2DEC_API_DEBUG(args)
  61. #endif
  62. #ifdef _DEBUG_PRINT
  63. #define MPEG2DEC_DEBUG(args) printf args
  64. #else
  65. #define MPEG2DEC_DEBUG(args)
  66. #endif
  67. #ifdef _DEC_PP_USAGE
  68. #define DECPP_STAND_ALONE 0
  69. #define DECPP_PARALLEL 1
  70. #define DECPP_PIPELINED 2
  71. #define DECPP_UNSPECIFIED 3
  72. void Mpeg2DecPpUsagePrint(DecContainer * pDecCont,
  73. u32 ppmode, u32 picIndex, u32 decStatus, u32 picId);
  74. #endif
  75. #endif /* #ifndef __MPEG2DEBUG_H__ */