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.

114 lines
3.6 KiB

  1. /**************************************************************************
  2. ***************************************************************************
  3. *
  4. * Copyright (c) 1997, Cirrus Logic, Inc.
  5. * All Rights Reserved
  6. *
  7. * FILE: bw.h
  8. *
  9. * DESCRIPTION:
  10. *
  11. * REVISION HISTORY:
  12. *
  13. * $Log: X:/log/laguna/ddraw/inc/bw.h $
  14. *
  15. * Rev 1.3 18 Sep 1997 16:05:28 bennyn
  16. *
  17. * Fixed NT 3.51 compile/link problem
  18. *
  19. * Rev 1.2 12 Sep 1997 12:11:08 bennyn
  20. *
  21. * Modified for NT DD overlay support.
  22. *
  23. * Rev 1.1 15 May 1997 15:51:06 XCONG
  24. *
  25. * Change BWE flags for DDRAW
  26. *
  27. * Rev 1.0 14 Apr 1997 11:03:48 RUSSL
  28. * PDC Release
  29. *
  30. ***************************************************************************
  31. ***************************************************************************/
  32. /**********************************************************
  33. * Copyright Cirrus Logic, Inc. 1996. All rights reserved.
  34. ***********************************************************
  35. *
  36. * BW.H
  37. *
  38. * Contains common preprocessor definitions needed for
  39. * bandwidth equations.
  40. *
  41. ***********************************************************
  42. *
  43. * WHO WHEN WHAT/WHY/HOW
  44. * --- ---- ------------
  45. * RT 11/07/96 Created.
  46. *
  47. ***********************************************************/
  48. // If WinNT 3.5 skip all the source code
  49. #if defined WINNT_VER35 // WINNT_VER35
  50. #else
  51. #ifndef BW_H
  52. #define BW_H
  53. #ifdef DOSDEBUG
  54. #include <stdio.h>
  55. #endif // DOSDEBUG
  56. #define VCFLG_CAP 0x00000001ul // Capture enabled
  57. #define VCFLG_DISP 0x00000002ul // Display enabled
  58. #define VCFLG_COLORKEY 0x00000004ul // Color key (destination) enabled
  59. #define VCFLG_CHROMAKEY 0x00000008ul // Chroma key (source color key) enabled
  60. #define VCFLG_420 0x00000010ul // 4:2:0 video
  61. #define VCFLG_PAN 0x00000020ul // Panning display mode
  62. #ifdef WINNT_VER40
  63. // Be sure to synchronize the following structures with the one
  64. // in i386\Laguna.inc!
  65. //
  66. typedef struct VIDCONFIG_
  67. {
  68. SIZEL sizXfer; // Size of xfered data in pixels by lines (after cropping)
  69. SIZEL sizCap; // Size of data stored in memory in pixels by lines
  70. SIZEL sizSrc; // Size of data read from memory in pixels by lines
  71. SIZEL sizDisp; // Size of video window rectangle in pixels by lines
  72. UINT uXferDepth; // Bits per transferred pixel
  73. UINT uCapDepth; // Bits per pixel stored in memory
  74. UINT uSrcDepth; // Bits per pixel read from memory
  75. UINT uDispDepth; // Bits per pixel of video window
  76. UINT uGfxDepth; // Bits per pixel of graphics screen
  77. DWORD dwXferRate; // Peak pixels per second into video port
  78. DWORD dwFlags;
  79. }VIDCONFIG, FAR *LPVIDCONFIG;
  80. #else
  81. typedef struct VIDCONFIG_
  82. {
  83. SIZE sizXfer; // Size of xfered data in pixels by lines (after cropping)
  84. SIZE sizCap; // Size of data stored in memory in pixels by lines
  85. SIZE sizSrc; // Size of data read from memory in pixels by lines
  86. SIZE sizDisp; // Size of video window rectangle in pixels by lines
  87. UINT uXferDepth; // Bits per transferred pixel
  88. UINT uCapDepth; // Bits per pixel stored in memory
  89. UINT uSrcDepth; // Bits per pixel read from memory
  90. UINT uDispDepth; // Bits per pixel of video window
  91. UINT uGfxDepth; // Bits per pixel of graphics screen
  92. DWORD dwXferRate; // Peak pixels per second into video port
  93. DWORD dwFlags;
  94. }VIDCONFIG, FAR *LPVIDCONFIG;
  95. #endif
  96. #ifndef ODS
  97. # ifdef DOSDEBUG
  98. # define ODS printf
  99. # else
  100. # define ODS (void)
  101. # endif // DOSDEBUG
  102. #endif // !ODS
  103. #endif // BW_H
  104. #endif // WINNT_VER35
  105.