Source code of Windows XP (NT5)
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.

130 lines
5.4 KiB

  1. //
  2. // This .CPP file should be included once in your project. It defines all GUIDs
  3. // used by DXTransforms as well as the Pixel formats for DX Surfaces
  4. //
  5. #define DX_DECLARE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
  6. EXTERN_C const GUID name \
  7. = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
  8. //
  9. // Pixel format definitions
  10. //
  11. // {e436eb78-524f-11ce-9f53-0020af0ba770}
  12. DX_DECLARE_GUID(DDPF_RGB1,
  13. 0xe436eb78, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  14. // {BBF7D3F3-143F-11d1-B50A-0000F8756A10}
  15. DX_DECLARE_GUID(DDPF_RGB2,
  16. 0xbbf7d3f3, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  17. // {e436eb79-524f-11ce-9f53-0020af0ba770}
  18. DX_DECLARE_GUID(DDPF_RGB4,
  19. 0xe436eb79, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  20. // {e436eb7a-524f-11ce-9f53-0020af0ba770}
  21. DX_DECLARE_GUID(DDPF_RGB8,
  22. 0xe436eb7a, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  23. // {BBF7D3F6-143F-11d1-B50A-0000F8756A10}
  24. DX_DECLARE_GUID(DDPF_RGB332,
  25. 0xbbf7d3f6, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  26. // {BBF7D3F7-143F-11d1-B50A-0000F8756A10}
  27. DX_DECLARE_GUID(DDPF_ARGB4444,
  28. 0xbbf7d3f7, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  29. // {e436eb7b-524f-11ce-9f53-0020af0ba770}
  30. DX_DECLARE_GUID(DDPF_RGB565,
  31. 0xe436eb7b, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  32. // {BBF7D3F9-143F-11d1-B50A-0000F8756A10}
  33. DX_DECLARE_GUID(DDPF_BGR565,
  34. 0xbbf7d3f9, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  35. // {e436eb7c-524f-11ce-9f53-0020af0ba770}
  36. DX_DECLARE_GUID(DDPF_RGB555,
  37. 0xe436eb7c, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  38. // {BBF7D3FB-143F-11d1-B50A-0000F8756A10}
  39. DX_DECLARE_GUID(DDPF_ARGB1555,
  40. 0xbbf7d3fb, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  41. // {e436eb7d-524f-11ce-9f53-0020af0ba770}
  42. DX_DECLARE_GUID(DDPF_RGB24,
  43. 0xe436eb7d, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  44. // {BBF7D3FD-143F-11d1-B50A-0000F8756A10}
  45. DX_DECLARE_GUID(DDPF_BGR24,
  46. 0xbbf7d3fd, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  47. // {e436eb7e-524f-11ce-9f53-0020af0ba770}
  48. DX_DECLARE_GUID(DDPF_RGB32,
  49. 0xe436eb7e, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70);
  50. // {BBF7D3FF-143F-11d1-B50A-0000F8756A10}
  51. DX_DECLARE_GUID(DDPF_BGR32,
  52. 0xbbf7d3ff, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  53. // {BBF7D401-143F-11d1-B50A-0000F8756A10}
  54. DX_DECLARE_GUID(DDPF_ABGR32,
  55. 0xbbf7d401, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  56. // Note: this GUID is used/shared in uuids.h's MEDIASUBTYPE_ARGB32
  57. // {773c9ac0-3274-11d0-B724-00aa006c1A01}
  58. DX_DECLARE_GUID(DDPF_ARGB32,
  59. 0x773c9ac0, 0x3274, 0x11d0, 0xb7, 0x24, 0x0, 0xaa, 0x0, 0x6c, 0x1a, 0x1 );
  60. // {BBF7D403-143F-11d1-B50A-0000F8756A10}
  61. DX_DECLARE_GUID(DDPF_PMARGB32,
  62. 0xbbf7d403, 0x143f, 0x11d1, 0xb5, 0xa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  63. // {7846F94E-3915-11d1-99AA-0000F8756A10}
  64. DX_DECLARE_GUID(DDPF_A1,
  65. 0x7846f94e, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  66. // {7846F94F-3915-11d1-99AA-0000F8756A10}
  67. DX_DECLARE_GUID(DDPF_A2,
  68. 0x7846f94f, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  69. // {7846F950-3915-11d1-99AA-0000F8756A10}
  70. DX_DECLARE_GUID(DDPF_A4,
  71. 0x7846f950, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  72. // {7846F951-3915-11d1-99AA-0000F8756A10}
  73. DX_DECLARE_GUID(DDPF_A8,
  74. 0x7846f951, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  75. // {7846F952-3915-11d1-99AA-0000F8756A10}
  76. DX_DECLARE_GUID(DDPF_Z8,
  77. 0x7846f952, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  78. // {7846F953-3915-11d1-99AA-0000F8756A10}
  79. DX_DECLARE_GUID(DDPF_Z16,
  80. 0x7846f953, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  81. // {7846F954-3915-11d1-99AA-0000F8756A10}
  82. DX_DECLARE_GUID(DDPF_Z24,
  83. 0x7846f954, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  84. // {7846F955-3915-11d1-99AA-0000F8756A10}
  85. DX_DECLARE_GUID(DDPF_Z32,
  86. 0x7846f955, 0x3915, 0x11d1, 0x99, 0xaa, 0x0, 0x0, 0xf8, 0x75, 0x6a, 0x10);
  87. //
  88. // Component categories
  89. //
  90. // {C501EDBE-9E70-11d1-9053-00C04FD9189D}
  91. DX_DECLARE_GUID(CATID_DXImageTransform,
  92. 0xc501edbe, 0x9e70, 0x11d1, 0x90, 0x53, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
  93. // {C501EDBF-9E70-11d1-9053-00C04FD9189D}
  94. DX_DECLARE_GUID(CATID_DX3DTransform,
  95. 0xc501edbf, 0x9e70, 0x11d1, 0x90, 0x53, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
  96. // {ACAC94FC-E5CF-11d1-9066-00C04FD9189D}
  97. DX_DECLARE_GUID(CATID_DXAuthoringTransform,
  98. 0xacac94fc, 0xe5cf, 0x11d1, 0x90, 0x66, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
  99. // {52BA7097-B52C-11d1-81CB-0000F87557DB}
  100. DX_DECLARE_GUID(CATID_DXSurface,
  101. 0x52ba7097, 0xb52c, 0x11d1, 0x81, 0xcb, 0x0, 0x0, 0xf8, 0x75, 0x57, 0xdb);
  102. //
  103. // Service IDs.
  104. //
  105. // NOTE: The service ID for direct draw is == IID_IDirectDraw3 for compatibility
  106. // with trident service ID's. This should be the service ID for DirectDraw
  107. // no matter what version.
  108. //
  109. // BUGBUG -- Should we use this service provider ID for direct draw?
  110. //
  111. DX_DECLARE_GUID(SID_SDirectDraw,
  112. 0x618f8ad4, 0x8b7a, 0x11d0, 0x8f, 0xcc, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);
  113. //
  114. // The service ID for Direct 3D Retain Mode is the same as IID_IDirect3DRM
  115. //
  116. DX_DECLARE_GUID(SID_SDirect3DRM,
  117. 0x2bc49361, 0x8327, 0x11cf, 0xac, 0x4a, 0x0, 0x0, 0xc0, 0x38, 0x25, 0xa1);
  118. //
  119. // The service ID for DirectDraw3 is the same as IID_IDirectDraw3
  120. //
  121. DX_DECLARE_GUID(SID_SDirectDraw3,
  122. 0x618f8ad4, 0x8b7a, 0x11d0, 0x8f, 0xcc, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d);