Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
4.2 KiB

  1. /* *************************************************************************
  2. ** INTEL Corporation Proprietary Information
  3. **
  4. ** This listing is supplied under the terms of a license
  5. ** agreement with INTEL Corporation and may not be copied
  6. ** nor disclosed except in accordance with the terms of
  7. ** that agreement.
  8. **
  9. ** Copyright (c) 1995 Intel Corporation.
  10. ** All Rights Reserved.
  11. **
  12. ** *************************************************************************
  13. */
  14. // $Author: KLILLEVO $
  15. // $Date: 31 Oct 1996 10:21:06 $
  16. // $Archive: S:\h26x\src\common\cldebug.h_v $
  17. // $Header: S:\h26x\src\common\cldebug.h_v 1.10 31 Oct 1996 10:21:06 KLILLEVO $
  18. // $Log: S:\h26x\src\common\cldebug.h_v $
  19. ;//
  20. ;// Rev 1.10 31 Oct 1996 10:21:06 KLILLEVO
  21. ;// removed DBOUT definition to verify that all occurences in the code
  22. ;// have been removed, and to prevent future usage of DBOUT
  23. ;//
  24. ;// Rev 1.9 18 Oct 1996 18:50:14 AGUPTA2
  25. ;// Changed DBOUT into DbgLog. ASSERT is not changed to DbgAssert.
  26. ;//
  27. ;//
  28. ;// Rev 1.8 18 Oct 1996 14:30:52 MDUDA
  29. ;// Added YUY2toYUV12 enumeration.
  30. ;//
  31. ;// Rev 1.7 11 Oct 1996 16:01:28 MDUDA
  32. ;//
  33. ;// Added initial _CODEC_STATS stuff.
  34. ;//
  35. ;// Rev 1.6 27 Dec 1995 14:11:58 RMCKENZX
  36. ;//
  37. ;// Added copyright notice
  38. //
  39. // Rev 1.5 17 Nov 1995 15:13:02 BECHOLS
  40. //
  41. // Made modifications for ring 0.
  42. //
  43. // Rev 1.4 16 Nov 1995 17:34:08 AGANTZX
  44. // Added TOUT macro to output timing data
  45. //
  46. // Rev 1.3 12 Sep 1995 15:44:50 DBRUCKS
  47. // add H261 ifdef for debug statements
  48. //
  49. // Rev 1.2 03 Aug 1995 14:57:02 DBRUCKS
  50. // Add ASSERT macro
  51. //
  52. // Rev 1.1 01 Aug 1995 12:24:40 DBRUCKS
  53. // added TBD()
  54. //
  55. // Rev 1.0 31 Jul 1995 12:56:16 DBRUCKS
  56. // rename files
  57. //
  58. // Rev 1.0 17 Jul 1995 14:44:04 CZHU
  59. // Initial revision.
  60. //
  61. // Rev 1.0 17 Jul 1995 14:14:48 CZHU
  62. // Initial revision.
  63. /*
  64. * Copyright (C) 1992, 1993 Intel Corporation.
  65. */
  66. extern UINT DebugH26x;
  67. extern void AssertFailed(void FAR * fpFileName, int iLine, void FAR * fpExp);
  68. #ifndef __CLDEBUG_H__
  69. #define __CLDEBUG_H__
  70. #ifdef _DEBUG
  71. #ifdef RING0
  72. #define DBOUT(x) {SYS_printf(x);}
  73. #define TOUT(x) {SYS_printf(x);}
  74. #else
  75. #ifdef H261
  76. #define DBOUT(x) { if (DebugH26x) { \
  77. OutputDebugString((LPSTR)"M261 : "); \
  78. OutputDebugString((LPSTR)x); \
  79. OutputDebugString((LPSTR)"\n"); }}
  80. #else
  81. #define DBOUT(x) { if (DebugH26x) { \
  82. OutputDebugString((LPSTR)"M263 : "); \
  83. OutputDebugString((LPSTR)x); \
  84. OutputDebugString((LPSTR)"\n"); }}
  85. #endif
  86. #define TOUT(x) { if (DebugH26x) { \
  87. OutputDebugString((LPSTR)"TIMING : "); \
  88. OutputDebugString((LPSTR)x); \
  89. OutputDebugString((LPSTR)"\n"); }}
  90. #endif //RING0
  91. #ifdef ASSERT
  92. #undef ASSERT
  93. #endif
  94. #define ASSERT(x) { if(!(x)) AssertFailed(__FILE__,__LINE__,#x); }
  95. #else
  96. #define TOUT(x) { } // /##/
  97. #define DBOUT(x) { } // /##/
  98. #ifdef ASSERT
  99. #undef ASSERT
  100. #endif
  101. #define ASSERT(x) { } // /##/
  102. #endif
  103. #define TBD(s) DBOUT(s)
  104. #ifdef _DEBUG // { _DEBUG
  105. int WINAPI H261DbgPrintf ( LPTSTR lpszFormat, ... );
  106. extern HDBGZONE ghDbgZoneH261;
  107. #define ZONE_BITRATE_CONTROL (GETMASK(ghDbgZoneH261) & 0x0001)
  108. #define ZONE_BITRATE_CONTROL_DETAILS (GETMASK(ghDbgZoneH261) & 0x0002)
  109. #ifndef DEBUGMSG // { DEBUGMSG
  110. #define DEBUGMSG(z,s) ( (z) ? (H261DbgPrintf s ) : 0)
  111. #endif // } DEBUGMSG
  112. #ifndef FX_ENTRY // { FX_ENTRY
  113. #define FX_ENTRY(s) static TCHAR _this_fx_ [] = (s);
  114. #define _fx_ ((LPTSTR) _this_fx_)
  115. #endif // } FX_ENTRY
  116. #define ERRORMESSAGE(m) (H261DbgPrintf m)
  117. #else // }{ _DEBUG
  118. #ifndef FX_ENTRY // { FX_ENTRY
  119. #define FX_ENTRY(s)
  120. #endif // } FX_ENTRY
  121. #ifndef DEBUGMSG // { DEBUGMSG
  122. #define DEBUGMSG(z,s)
  123. #define ERRORMESSAGE(m)
  124. #endif // } DEBUGMSG
  125. #define _fx_
  126. #define ERRORMESSAGE(m)
  127. #endif // } _DEBUG
  128. #endif /* multi-inclusion protection */