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.

4684 lines
203 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. ksmedia.h
  5. Abstract:
  6. WDM-CSA Multimedia Definitions.
  7. --*/
  8. #if !defined(_KS_)
  9. #error KS.H must be included before KSMEDIA.H
  10. #endif // !defined(_KS_)
  11. #if !defined(_KSMEDIA_)
  12. #define _KSMEDIA_
  13. typedef struct {
  14. KSPROPERTY Property;
  15. KSMULTIPLE_ITEM MultipleItem;
  16. } KSMULTIPLE_DATA_PROP, *PKSMULTIPLE_DATA_PROP;
  17. #define STATIC_KSMEDIUMSETID_MidiBus \
  18. 0x05908040L, 0x3246, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  19. DEFINE_GUIDSTRUCT("05908040-3246-11D0-A5D6-28DB04C10000", KSMEDIUMSETID_MidiBus);
  20. #define KSMEDIUMSETID_MidiBus DEFINE_GUIDNAMED(KSMEDIUMSETID_MidiBus)
  21. #define STATIC_KSMEDIUMSETID_VPBus \
  22. 0xA18C15ECL, 0xCE43, 0x11D0, 0xAB, 0xE7, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  23. DEFINE_GUIDSTRUCT("A18C15EC-CE43-11D0-ABE7-00A0C9223196", KSMEDIUMSETID_VPBus);
  24. #define KSMEDIUMSETID_VPBus DEFINE_GUIDNAMED(KSMEDIUMSETID_VPBus)
  25. #define STATIC_KSINTERFACESETID_Media \
  26. 0x3A13EB40L, 0x30A7, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  27. DEFINE_GUIDSTRUCT("3A13EB40-30A7-11D0-A5D6-28DB04C10000", KSINTERFACESETID_Media);
  28. #define KSINTERFACESETID_Media DEFINE_GUIDNAMED(KSINTERFACESETID_Media)
  29. typedef enum {
  30. KSINTERFACE_MEDIA_MUSIC,
  31. KSINTERFACE_MEDIA_WAVE_BUFFERED,
  32. KSINTERFACE_MEDIA_WAVE_QUEUED
  33. } KSINTERFACE_MEDIA;
  34. #if !defined(INIT_USBAUDIO_MID)
  35. // {4e1cecd2-1679-463b-a72f-a5bf64c86eba}
  36. #define INIT_USBAUDIO_MID(guid, id)\
  37. {\
  38. (guid)->Data1 = 0x4e1cecd2 + (USHORT)(id);\
  39. (guid)->Data2 = 0x1679;\
  40. (guid)->Data3 = 0x463b;\
  41. (guid)->Data4[0] = 0xa7;\
  42. (guid)->Data4[1] = 0x2f;\
  43. (guid)->Data4[2] = 0xa5;\
  44. (guid)->Data4[3] = 0xbf;\
  45. (guid)->Data4[4] = 0x64;\
  46. (guid)->Data4[5] = 0xc8;\
  47. (guid)->Data4[6] = 0x6e;\
  48. (guid)->Data4[7] = 0xba;\
  49. }
  50. #define EXTRACT_USBAUDIO_MID(guid)\
  51. (USHORT)((guid)->Data1 - 0x4e1cecd2)
  52. #define DEFINE_USBAUDIO_MID_GUID(id)\
  53. 0x4e1cecd2+(USHORT)(id), 0x1679, 0x463b, 0xa7, 0x2f, 0xa5, 0xbf, 0x64, 0xc8, 0x6e, 0xba
  54. #define IS_COMPATIBLE_USBAUDIO_MID(guid)\
  55. (((guid)->Data1 >= 0x4e1cecd2) &&\
  56. ((guid)->Data1 < 0x4e1cecd2 + 0xffff) &&\
  57. ((guid)->Data2 == 0x1679) &&\
  58. ((guid)->Data3 == 0x463b) &&\
  59. ((guid)->Data4[0] == 0xa7) &&\
  60. ((guid)->Data4[1] == 0x2f) &&\
  61. ((guid)->Data4[2] == 0xa5) &&\
  62. ((guid)->Data4[3] == 0xbf) &&\
  63. ((guid)->Data4[4] == 0x64) &&\
  64. ((guid)->Data4[5] == 0xc8) &&\
  65. ((guid)->Data4[6] == 0x6e) &&\
  66. ((guid)->Data4[7] == 0xba))
  67. #endif // !defined(INIT_USBAUDIO_MID)
  68. #if !defined(INIT_USBAUDIO_PID)
  69. // {abcc5a5e-c263-463b-a72f-a5bf64c86eba}
  70. #define INIT_USBAUDIO_PID(guid, id)\
  71. {\
  72. (guid)->Data1 = 0xabcc5a5e + (USHORT)(id);\
  73. (guid)->Data2 = 0xc263;\
  74. (guid)->Data3 = 0x463b;\
  75. (guid)->Data4[0] = 0xa7;\
  76. (guid)->Data4[1] = 0x2f;\
  77. (guid)->Data4[2] = 0xa5;\
  78. (guid)->Data4[3] = 0xbf;\
  79. (guid)->Data4[4] = 0x64;\
  80. (guid)->Data4[5] = 0xc8;\
  81. (guid)->Data4[6] = 0x6e;\
  82. (guid)->Data4[7] = 0xba;\
  83. }
  84. #define EXTRACT_USBAUDIO_PID(guid)\
  85. (USHORT)((guid)->Data1 - 0xabcc5a5e)
  86. #define DEFINE_USBAUDIO_PID_GUID(id)\
  87. 0xabcc5a5e+(USHORT)(id), 0xc263, 0x463b, 0xa7, 0x2f, 0xa5, 0xbf, 0x64, 0xc8, 0x6e, 0xba
  88. #define IS_COMPATIBLE_USBAUDIO_PID(guid)\
  89. (((guid)->Data1 >= 0xabcc5a5e) &&\
  90. ((guid)->Data1 < 0xabcc5a5e + 0xffff) &&\
  91. ((guid)->Data2 == 0xc263) &&\
  92. ((guid)->Data3 == 0x463b) &&\
  93. ((guid)->Data4[0] == 0xa7) &&\
  94. ((guid)->Data4[1] == 0x2f) &&\
  95. ((guid)->Data4[2] == 0xa5) &&\
  96. ((guid)->Data4[3] == 0xbf) &&\
  97. ((guid)->Data4[4] == 0x64) &&\
  98. ((guid)->Data4[5] == 0xc8) &&\
  99. ((guid)->Data4[6] == 0x6e) &&\
  100. ((guid)->Data4[7] == 0xba))
  101. #endif // !defined(INIT_USBAUDIO_PID)
  102. #if !defined(INIT_USBAUDIO_PRODUCT_NAME)
  103. // {FC575048-2E08-463B-A72F-A5BF64C86EBA}
  104. #define INIT_USBAUDIO_PRODUCT_NAME(guid, vid, pid, strIndex)\
  105. {\
  106. (guid)->Data1 = 0XFC575048 + (USHORT)(vid);\
  107. (guid)->Data2 = 0x2E08 + (USHORT)(pid);\
  108. (guid)->Data3 = 0x463B + (USHORT)(strIndex);\
  109. (guid)->Data4[0] = 0xA7;\
  110. (guid)->Data4[1] = 0x2F;\
  111. (guid)->Data4[2] = 0xA5;\
  112. (guid)->Data4[3] = 0xBF;\
  113. (guid)->Data4[4] = 0x64;\
  114. (guid)->Data4[5] = 0xC8;\
  115. (guid)->Data4[6] = 0x6E;\
  116. (guid)->Data4[7] = 0xBA;\
  117. }
  118. #define DEFINE_USBAUDIO_PRODUCT_NAME(vid, pid, strIndex)\
  119. 0xFC575048+(USHORT)(vid), 0x2E08+(USHORT)(pid), 0x463B+(USHORT)(strIndex), 0xA7, 0x2F, 0xA5, 0xBF, 0x64, 0xC8, 0x6E, 0xBA
  120. #endif // !defined(INIT_USBAUDIO_PRODUCT_NAME)
  121. // USB Component ID
  122. #define STATIC_KSCOMPONENTID_USBAUDIO \
  123. 0x8F1275F0, 0x26E9, 0x4264, 0xBA, 0x4D, 0x39, 0xFF, 0xF0, 0x1D, 0x94, 0xAA
  124. DEFINE_GUIDSTRUCT("8F1275F0-26E9-4264-BA4D-39FFF01D94AA", KSCOMPONENTID_USBAUDIO);
  125. #define KSCOMPONENTID_USBAUDIO DEFINE_GUIDNAMED(KSCOMPONENTID_USBAUDIO)
  126. // USB Terminals
  127. #define INIT_USB_TERMINAL(guid, id)\
  128. {\
  129. (guid)->Data1 = 0xDFF219E0 + (USHORT)(id);\
  130. (guid)->Data2 = 0xF70F;\
  131. (guid)->Data3 = 0x11D0;\
  132. (guid)->Data4[0] = 0xb9;\
  133. (guid)->Data4[1] = 0x17;\
  134. (guid)->Data4[2] = 0x00;\
  135. (guid)->Data4[3] = 0xa0;\
  136. (guid)->Data4[4] = 0xc9;\
  137. (guid)->Data4[5] = 0x22;\
  138. (guid)->Data4[6] = 0x31;\
  139. (guid)->Data4[7] = 0x96;\
  140. }
  141. #define EXTRACT_USB_TERMINAL(guid)\
  142. (USHORT)((guid)->Data1 - 0xDFF219E0)
  143. #define DEFINE_USB_TERMINAL_GUID(id)\
  144. 0xDFF219E0+(USHORT)(id), 0xF70F, 0x11D0, 0xB9, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  145. #define STATIC_KSNODETYPE_MICROPHONE\
  146. DEFINE_USB_TERMINAL_GUID(0x0201)
  147. DEFINE_GUIDSTRUCT("DFF21BE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_MICROPHONE);
  148. #define KSNODETYPE_MICROPHONE DEFINE_GUIDNAMED(KSNODETYPE_MICROPHONE)
  149. #define STATIC_KSNODETYPE_DESKTOP_MICROPHONE\
  150. DEFINE_USB_TERMINAL_GUID(0x0202)
  151. DEFINE_GUIDSTRUCT("DFF21BE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DESKTOP_MICROPHONE);
  152. #define KSNODETYPE_DESKTOP_MICROPHONE DEFINE_GUIDNAMED(KSNODETYPE_DESKTOP_MICROPHONE)
  153. #define STATIC_KSNODETYPE_PERSONAL_MICROPHONE\
  154. DEFINE_USB_TERMINAL_GUID(0x0203)
  155. DEFINE_GUIDSTRUCT("DFF21BE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_PERSONAL_MICROPHONE);
  156. #define KSNODETYPE_PERSONAL_MICROPHONE DEFINE_GUIDNAMED(KSNODETYPE_PERSONAL_MICROPHONE)
  157. #define STATIC_KSNODETYPE_OMNI_DIRECTIONAL_MICROPHONE\
  158. DEFINE_USB_TERMINAL_GUID(0x0204)
  159. DEFINE_GUIDSTRUCT("DFF21BE4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_OMNI_DIRECTIONAL_MICROPHONE);
  160. #define KSNODETYPE_OMNI_DIRECTIONAL_MICROPHONE DEFINE_GUIDNAMED(KSNODETYPE_OMNI_DIRECTIONAL_MICROPHONE)
  161. #define STATIC_KSNODETYPE_MICROPHONE_ARRAY\
  162. DEFINE_USB_TERMINAL_GUID(0x0205)
  163. DEFINE_GUIDSTRUCT("DFF21BE5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_MICROPHONE_ARRAY);
  164. #define KSNODETYPE_MICROPHONE_ARRAY DEFINE_GUIDNAMED(KSNODETYPE_MICROPHONE_ARRAY)
  165. #define STATIC_KSNODETYPE_PROCESSING_MICROPHONE_ARRAY\
  166. DEFINE_USB_TERMINAL_GUID(0x0206)
  167. DEFINE_GUIDSTRUCT("DFF21BE6-F70F-11D0-B917-00A0C9223196", KSNODETYPE_PROCESSING_MICROPHONE_ARRAY);
  168. #define KSNODETYPE_PROCESSING_MICROPHONE_ARRAY DEFINE_GUIDNAMED(KSNODETYPE_PROCESSING_MICROPHONE_ARRAY)
  169. #define STATIC_KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR \
  170. 0x830a44f2, 0xa32d, 0x476b, 0xbe, 0x97, 0x42, 0x84, 0x56, 0x73, 0xb3, 0x5a
  171. DEFINE_GUIDSTRUCT("830a44f2-a32d-476b-be97-42845673b35a", KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR);
  172. #define KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR DEFINE_GUIDNAMED(KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR)
  173. #define STATIC_KSNODETYPE_SPEAKER\
  174. DEFINE_USB_TERMINAL_GUID(0x0301)
  175. DEFINE_GUIDSTRUCT("DFF21CE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SPEAKER);
  176. #define KSNODETYPE_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_SPEAKER)
  177. #define STATIC_KSNODETYPE_HEADPHONES\
  178. DEFINE_USB_TERMINAL_GUID(0x0302)
  179. DEFINE_GUIDSTRUCT("DFF21CE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_HEADPHONES);
  180. #define KSNODETYPE_HEADPHONES DEFINE_GUIDNAMED(KSNODETYPE_HEADPHONES)
  181. #define STATIC_KSNODETYPE_HEAD_MOUNTED_DISPLAY_AUDIO\
  182. DEFINE_USB_TERMINAL_GUID(0x0303)
  183. DEFINE_GUIDSTRUCT("DFF21CE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_HEAD_MOUNTED_DISPLAY_AUDIO);
  184. #define KSNODETYPE_HEAD_MOUNTED_DISPLAY_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_HEAD_MOUNTED_DISPLAY_AUDIO)
  185. #define STATIC_KSNODETYPE_DESKTOP_SPEAKER\
  186. DEFINE_USB_TERMINAL_GUID(0x0304)
  187. DEFINE_GUIDSTRUCT("DFF21CE4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DESKTOP_SPEAKER);
  188. #define KSNODETYPE_DESKTOP_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_DESKTOP_SPEAKER)
  189. #define STATIC_KSNODETYPE_ROOM_SPEAKER\
  190. DEFINE_USB_TERMINAL_GUID(0x0305)
  191. DEFINE_GUIDSTRUCT("DFF21CE5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ROOM_SPEAKER);
  192. #define KSNODETYPE_ROOM_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_ROOM_SPEAKER)
  193. #define STATIC_KSNODETYPE_COMMUNICATION_SPEAKER\
  194. DEFINE_USB_TERMINAL_GUID(0x0306)
  195. DEFINE_GUIDSTRUCT("DFF21CE6-F70F-11D0-B917-00A0C9223196", KSNODETYPE_COMMUNICATION_SPEAKER);
  196. #define KSNODETYPE_COMMUNICATION_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_COMMUNICATION_SPEAKER)
  197. #define STATIC_KSNODETYPE_LOW_FREQUENCY_EFFECTS_SPEAKER\
  198. DEFINE_USB_TERMINAL_GUID(0x0307)
  199. DEFINE_GUIDSTRUCT("DFF21CE7-F70F-11D0-B917-00A0C9223196", KSNODETYPE_LOW_FREQUENCY_EFFECTS_SPEAKER);
  200. #define KSNODETYPE_LOW_FREQUENCY_EFFECTS_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_LOW_FREQUENCY_EFFECTS_SPEAKER)
  201. #define STATIC_KSNODETYPE_HANDSET\
  202. DEFINE_USB_TERMINAL_GUID(0x0401)
  203. DEFINE_GUIDSTRUCT("DFF21DE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_HANDSET);
  204. #define KSNODETYPE_HANDSET DEFINE_GUIDNAMED(KSNODETYPE_HANDSET)
  205. #define STATIC_KSNODETYPE_HEADSET\
  206. DEFINE_USB_TERMINAL_GUID(0x0402)
  207. DEFINE_GUIDSTRUCT("DFF21DE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_HEADSET);
  208. #define KSNODETYPE_HEADSET DEFINE_GUIDNAMED(KSNODETYPE_HEADSET)
  209. #define STATIC_KSNODETYPE_SPEAKERPHONE_NO_ECHO_REDUCTION\
  210. DEFINE_USB_TERMINAL_GUID(0x0403)
  211. DEFINE_GUIDSTRUCT("DFF21DE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SPEAKERPHONE_NO_ECHO_REDUCTION);
  212. #define KSNODETYPE_SPEAKERPHONE_NO_ECHO_REDUCTION DEFINE_GUIDNAMED(KSNODETYPE_SPEAKERPHONE_NO_ECHO_REDUCTION)
  213. #define STATIC_KSNODETYPE_ECHO_SUPPRESSING_SPEAKERPHONE\
  214. DEFINE_USB_TERMINAL_GUID(0x0404)
  215. DEFINE_GUIDSTRUCT("DFF21DE4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ECHO_SUPPRESSING_SPEAKERPHONE);
  216. #define KSNODETYPE_ECHO_SUPPRESSING_SPEAKERPHONE DEFINE_GUIDNAMED(KSNODETYPE_ECHO_SUPPRESSING_SPEAKERPHONE)
  217. #define STATIC_KSNODETYPE_ECHO_CANCELING_SPEAKERPHONE\
  218. DEFINE_USB_TERMINAL_GUID(0x0405)
  219. DEFINE_GUIDSTRUCT("DFF21DE5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ECHO_CANCELING_SPEAKERPHONE);
  220. #define KSNODETYPE_ECHO_CANCELING_SPEAKERPHONE DEFINE_GUIDNAMED(KSNODETYPE_ECHO_CANCELING_SPEAKERPHONE)
  221. #define STATIC_KSNODETYPE_PHONE_LINE\
  222. DEFINE_USB_TERMINAL_GUID(0x0501)
  223. DEFINE_GUIDSTRUCT("DFF21EE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_PHONE_LINE);
  224. #define KSNODETYPE_PHONE_LINE DEFINE_GUIDNAMED(KSNODETYPE_PHONE_LINE)
  225. #define STATIC_KSNODETYPE_TELEPHONE\
  226. DEFINE_USB_TERMINAL_GUID(0x0502)
  227. DEFINE_GUIDSTRUCT("DFF21EE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_TELEPHONE);
  228. #define KSNODETYPE_TELEPHONE DEFINE_GUIDNAMED(KSNODETYPE_TELEPHONE)
  229. #define STATIC_KSNODETYPE_DOWN_LINE_PHONE\
  230. DEFINE_USB_TERMINAL_GUID(0x0503)
  231. DEFINE_GUIDSTRUCT("DFF21EE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DOWN_LINE_PHONE);
  232. #define KSNODETYPE_DOWN_LINE_PHONE DEFINE_GUIDNAMED(KSNODETYPE_DOWN_LINE_PHONE)
  233. #define STATIC_KSNODETYPE_ANALOG_CONNECTOR\
  234. DEFINE_USB_TERMINAL_GUID(0x601)
  235. DEFINE_GUIDSTRUCT("DFF21FE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ANALOG_CONNECTOR);
  236. #define KSNODETYPE_ANALOG_CONNECTOR DEFINE_GUIDNAMED(KSNODETYPE_ANALOG_CONNECTOR)
  237. #define STATIC_KSNODETYPE_DIGITAL_AUDIO_INTERFACE\
  238. DEFINE_USB_TERMINAL_GUID(0x0602)
  239. DEFINE_GUIDSTRUCT("DFF21FE2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DIGITAL_AUDIO_INTERFACE);
  240. #define KSNODETYPE_DIGITAL_AUDIO_INTERFACE DEFINE_GUIDNAMED(KSNODETYPE_DIGITAL_AUDIO_INTERFACE)
  241. #define STATIC_KSNODETYPE_LINE_CONNECTOR\
  242. DEFINE_USB_TERMINAL_GUID(0x0603)
  243. DEFINE_GUIDSTRUCT("DFF21FE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_LINE_CONNECTOR);
  244. #define KSNODETYPE_LINE_CONNECTOR DEFINE_GUIDNAMED(KSNODETYPE_LINE_CONNECTOR)
  245. #define STATIC_KSNODETYPE_LEGACY_AUDIO_CONNECTOR\
  246. DEFINE_USB_TERMINAL_GUID(0x0604)
  247. DEFINE_GUIDSTRUCT("DFF21FE4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_LEGACY_AUDIO_CONNECTOR);
  248. #define KSNODETYPE_LEGACY_AUDIO_CONNECTOR DEFINE_GUIDNAMED(KSNODETYPE_LEGACY_AUDIO_CONNECTOR)
  249. #define STATIC_KSNODETYPE_SPDIF_INTERFACE\
  250. DEFINE_USB_TERMINAL_GUID(0x0605)
  251. DEFINE_GUIDSTRUCT("DFF21FE5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SPDIF_INTERFACE);
  252. #define KSNODETYPE_SPDIF_INTERFACE DEFINE_GUIDNAMED(KSNODETYPE_SPDIF_INTERFACE)
  253. #define STATIC_KSNODETYPE_1394_DA_STREAM\
  254. DEFINE_USB_TERMINAL_GUID(0x0606)
  255. DEFINE_GUIDSTRUCT("DFF21FE6-F70F-11D0-B917-00A0C9223196", KSNODETYPE_1394_DA_STREAM);
  256. #define KSNODETYPE_1394_DA_STREAM DEFINE_GUIDNAMED(KSNODETYPE_1394_DA_STREAM)
  257. #define STATIC_KSNODETYPE_1394_DV_STREAM_SOUNDTRACK\
  258. DEFINE_USB_TERMINAL_GUID(0x0607)
  259. DEFINE_GUIDSTRUCT("DFF21FE7-F70F-11D0-B917-00A0C9223196", KSNODETYPE_1394_DV_STREAM_SOUNDTRACK);
  260. #define KSNODETYPE_1394_DV_STREAM_SOUNDTRACK DEFINE_GUIDNAMED(KSNODETYPE_1394_DV_STREAM_SOUNDTRACK)
  261. #define STATIC_KSNODETYPE_LEVEL_CALIBRATION_NOISE_SOURCE\
  262. DEFINE_USB_TERMINAL_GUID(0x0701)
  263. DEFINE_GUIDSTRUCT("DFF220E1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_LEVEL_CALIBRATION_NOISE_SOURCE);
  264. #define KSNODETYPE_LEVEL_CALIBRATION_NOISE_SOURCE DEFINE_GUIDNAMED(KSNODETYPE_LEVEL_CALIBRATION_NOISE_SOURCE)
  265. #define STATIC_KSNODETYPE_EQUALIZATION_NOISE\
  266. DEFINE_USB_TERMINAL_GUID(0x0702)
  267. DEFINE_GUIDSTRUCT("DFF220E2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_EQUALIZATION_NOISE);
  268. #define KSNODETYPE_EQUALIZATION_NOISE DEFINE_GUIDNAMED(KSNODETYPE_EQUALIZATION_NOISE)
  269. #define STATIC_KSNODETYPE_CD_PLAYER\
  270. DEFINE_USB_TERMINAL_GUID(0x0703)
  271. DEFINE_GUIDSTRUCT("DFF220E3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_CD_PLAYER);
  272. #define KSNODETYPE_CD_PLAYER DEFINE_GUIDNAMED(KSNODETYPE_CD_PLAYER)
  273. #define STATIC_KSNODETYPE_DAT_IO_DIGITAL_AUDIO_TAPE\
  274. DEFINE_USB_TERMINAL_GUID(0x0704)
  275. DEFINE_GUIDSTRUCT("DFF220E4-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DAT_IO_DIGITAL_AUDIO_TAPE);
  276. #define KSNODETYPE_DAT_IO_DIGITAL_AUDIO_TAPE DEFINE_GUIDNAMED(KSNODETYPE_DAT_IO_DIGITAL_AUDIO_TAPE)
  277. #define STATIC_KSNODETYPE_DCC_IO_DIGITAL_COMPACT_CASSETTE\
  278. DEFINE_USB_TERMINAL_GUID(0x0705)
  279. DEFINE_GUIDSTRUCT("DFF220E5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DCC_IO_DIGITAL_COMPACT_CASSETTE);
  280. #define KSNODETYPE_DCC_IO_DIGITAL_COMPACT_CASSETTE DEFINE_GUIDNAMED(KSNODETYPE_DCC_IO_DIGITAL_COMPACT_CASSETTE)
  281. #define STATIC_KSNODETYPE_MINIDISK\
  282. DEFINE_USB_TERMINAL_GUID(0x0706)
  283. DEFINE_GUIDSTRUCT("DFF220E6-F70F-11D0-B917-00A0C9223196", KSNODETYPE_MINIDISK);
  284. #define KSNODETYPE_MINIDISK DEFINE_GUIDNAMED(KSNODETYPE_MINIDISK)
  285. #define STATIC_KSNODETYPE_ANALOG_TAPE\
  286. DEFINE_USB_TERMINAL_GUID(0x0707)
  287. DEFINE_GUIDSTRUCT("DFF220E7-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ANALOG_TAPE);
  288. #define KSNODETYPE_ANALOG_TAPE DEFINE_GUIDNAMED(KSNODETYPE_ANALOG_TAPE)
  289. #define STATIC_KSNODETYPE_PHONOGRAPH\
  290. DEFINE_USB_TERMINAL_GUID(0x0708)
  291. DEFINE_GUIDSTRUCT("DFF220E8-F70F-11D0-B917-00A0C9223196", KSNODETYPE_PHONOGRAPH);
  292. #define KSNODETYPE_PHONOGRAPH DEFINE_GUIDNAMED(KSNODETYPE_PHONOGRAPH)
  293. #define STATIC_KSNODETYPE_VCR_AUDIO\
  294. DEFINE_USB_TERMINAL_GUID(0x0708)
  295. DEFINE_GUIDSTRUCT("DFF220E9-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VCR_AUDIO);
  296. #define KSNODETYPE_VCR_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_VCR_AUDIO)
  297. #define STATIC_KSNODETYPE_VIDEO_DISC_AUDIO\
  298. DEFINE_USB_TERMINAL_GUID(0x070A)
  299. DEFINE_GUIDSTRUCT("DFF220EA-F70F-11D0-B917-00A0C9223196", KSNODETYPE_VIDEO_DISC_AUDIO);
  300. #define KSNODETYPE_VIDEO_DISC_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_VIDEO_DISC_AUDIO)
  301. #define STATIC_KSNODETYPE_DVD_AUDIO\
  302. DEFINE_USB_TERMINAL_GUID(0x070B)
  303. DEFINE_GUIDSTRUCT("DFF220EB-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DVD_AUDIO);
  304. #define KSNODETYPE_DVD_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_DVD_AUDIO)
  305. #define STATIC_KSNODETYPE_TV_TUNER_AUDIO\
  306. DEFINE_USB_TERMINAL_GUID(0x070C)
  307. DEFINE_GUIDSTRUCT("DFF220EC-F70F-11D0-B917-00A0C9223196", KSNODETYPE_TV_TUNER_AUDIO);
  308. #define KSNODETYPE_TV_TUNER_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_TV_TUNER_AUDIO)
  309. #define STATIC_KSNODETYPE_SATELLITE_RECEIVER_AUDIO\
  310. DEFINE_USB_TERMINAL_GUID(0x070D)
  311. DEFINE_GUIDSTRUCT("DFF220ED-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SATELLITE_RECEIVER_AUDIO);
  312. #define KSNODETYPE_SATELLITE_RECEIVER_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_SATELLITE_RECEIVER_AUDIO)
  313. #define STATIC_KSNODETYPE_CABLE_TUNER_AUDIO\
  314. DEFINE_USB_TERMINAL_GUID(0x070E)
  315. DEFINE_GUIDSTRUCT("DFF220EE-F70F-11D0-B917-00A0C9223196", KSNODETYPE_CABLE_TUNER_AUDIO);
  316. #define KSNODETYPE_CABLE_TUNER_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_CABLE_TUNER_AUDIO)
  317. #define STATIC_KSNODETYPE_DSS_AUDIO\
  318. DEFINE_USB_TERMINAL_GUID(0x070F)
  319. DEFINE_GUIDSTRUCT("DFF220EF-F70F-11D0-B917-00A0C9223196", KSNODETYPE_DSS_AUDIO);
  320. #define KSNODETYPE_DSS_AUDIO DEFINE_GUIDNAMED(KSNODETYPE_DSS_AUDIO)
  321. #define STATIC_KSNODETYPE_RADIO_RECEIVER\
  322. DEFINE_USB_TERMINAL_GUID(0x0710)
  323. DEFINE_GUIDSTRUCT("DFF220F0-F70F-11D0-B917-00A0C9223196", KSNODETYPE_RADIO_RECEIVER);
  324. #define KSNODETYPE_RADIO_RECEIVER DEFINE_GUIDNAMED(KSNODETYPE_RADIO_RECEIVER)
  325. #define STATIC_KSNODETYPE_RADIO_TRANSMITTER\
  326. DEFINE_USB_TERMINAL_GUID(0x0711)
  327. DEFINE_GUIDSTRUCT("DFF220F1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_RADIO_TRANSMITTER);
  328. #define KSNODETYPE_RADIO_TRANSMITTER DEFINE_GUIDNAMED(KSNODETYPE_RADIO_TRANSMITTER)
  329. #define STATIC_KSNODETYPE_MULTITRACK_RECORDER\
  330. DEFINE_USB_TERMINAL_GUID(0x0712)
  331. DEFINE_GUIDSTRUCT("DFF220F2-F70F-11D0-B917-00A0C9223196", KSNODETYPE_MULTITRACK_RECORDER);
  332. #define KSNODETYPE_MULTITRACK_RECORDER DEFINE_GUIDNAMED(KSNODETYPE_MULTITRACK_RECORDER)
  333. #define STATIC_KSNODETYPE_SYNTHESIZER\
  334. DEFINE_USB_TERMINAL_GUID(0x0713)
  335. DEFINE_GUIDSTRUCT("DFF220F3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SYNTHESIZER);
  336. #define KSNODETYPE_SYNTHESIZER DEFINE_GUIDNAMED(KSNODETYPE_SYNTHESIZER)
  337. // Microsoft's WDMAUD virtual swsynth pin name guid
  338. #define STATIC_KSNODETYPE_SWSYNTH\
  339. 0x423274A0L, 0x8B81, 0x11D1, 0xA0, 0x50, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88
  340. DEFINE_GUIDSTRUCT("423274A0-8B81-11D1-A050-0000F8004788", KSNODETYPE_SWSYNTH);
  341. #define KSNODETYPE_SWSYNTH DEFINE_GUIDNAMED(KSNODETYPE_SWSYNTH)
  342. // Microsoft's SWMIDI midi pin and node name guid
  343. #define STATIC_KSNODETYPE_SWMIDI\
  344. 0xCB9BEFA0L, 0xA251, 0x11D1, 0xA0, 0x50, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88
  345. DEFINE_GUIDSTRUCT("CB9BEFA0-A251-11D1-A050-0000F8004788", KSNODETYPE_SWMIDI);
  346. #define KSNODETYPE_SWMIDI DEFINE_GUIDNAMED(KSNODETYPE_SWMIDI)
  347. #define STATIC_KSNODETYPE_DRM_DESCRAMBLE\
  348. 0xFFBB6E3FL, 0xCCFE, 0x4D84, 0x90, 0xD9, 0x42, 0x14, 0x18, 0xB0, 0x3A, 0x8E
  349. DEFINE_GUIDSTRUCT("FFBB6E3F-CCFE-4D84-90D9-421418B03A8E", KSNODETYPE_DRM_DESCRAMBLE);
  350. #define KSNODETYPE_DRM_DESCRAMBLE DEFINE_GUIDNAMED(KSNODETYPE_DRM_DESCRAMBLE)
  351. // General categories
  352. #define STATIC_KSCATEGORY_AUDIO \
  353. 0x6994AD04L, 0x93EF, 0x11D0, 0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  354. DEFINE_GUIDSTRUCT("6994AD04-93EF-11D0-A3CC-00A0C9223196", KSCATEGORY_AUDIO);
  355. #define KSCATEGORY_AUDIO DEFINE_GUIDNAMED(KSCATEGORY_AUDIO)
  356. #define STATIC_KSCATEGORY_VIDEO \
  357. 0x6994AD05L, 0x93EF, 0x11D0, 0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  358. DEFINE_GUIDSTRUCT("6994AD05-93EF-11D0-A3CC-00A0C9223196", KSCATEGORY_VIDEO);
  359. #define KSCATEGORY_VIDEO DEFINE_GUIDNAMED(KSCATEGORY_VIDEO)
  360. #define STATIC_KSCATEGORY_TEXT \
  361. 0x6994AD06L, 0x93EF, 0x11D0, 0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  362. DEFINE_GUIDSTRUCT("6994AD06-93EF-11D0-A3CC-00A0C9223196", KSCATEGORY_TEXT);
  363. #define KSCATEGORY_TEXT DEFINE_GUIDNAMED(KSCATEGORY_TEXT)
  364. #define STATIC_KSCATEGORY_NETWORK \
  365. 0x67C9CC3CL, 0x69C4, 0x11D2, 0x87, 0x59, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  366. DEFINE_GUIDSTRUCT("67C9CC3C-69C4-11D2-8759-00A0C9223196", KSCATEGORY_NETWORK);
  367. #define KSCATEGORY_NETWORK DEFINE_GUIDNAMED(KSCATEGORY_NETWORK)
  368. #define STATIC_KSCATEGORY_TOPOLOGY \
  369. 0xDDA54A40L, 0x1E4C, 0x11D1, 0xA0, 0x50, 0x40, 0x57, 0x05, 0xC1, 0x00, 0x00
  370. DEFINE_GUIDSTRUCT("DDA54A40-1E4C-11D1-A050-405705C10000", KSCATEGORY_TOPOLOGY);
  371. #define KSCATEGORY_TOPOLOGY DEFINE_GUIDNAMED(KSCATEGORY_TOPOLOGY)
  372. #define STATIC_KSCATEGORY_VIRTUAL \
  373. 0x3503EAC4L, 0x1F26, 0x11D1, 0x8A, 0xB0, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  374. DEFINE_GUIDSTRUCT("3503EAC4-1F26-11D1-8AB0-00A0C9223196", KSCATEGORY_VIRTUAL);
  375. #define KSCATEGORY_VIRTUAL DEFINE_GUIDNAMED(KSCATEGORY_VIRTUAL)
  376. #define STATIC_KSCATEGORY_ACOUSTIC_ECHO_CANCEL \
  377. 0xBF963D80L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  378. DEFINE_GUIDSTRUCT("BF963D80-C559-11D0-8A2B-00A0C9255AC1", KSCATEGORY_ACOUSTIC_ECHO_CANCEL);
  379. #define KSCATEGORY_ACOUSTIC_ECHO_CANCEL DEFINE_GUIDNAMED(KSCATEGORY_ACOUSTIC_ECHO_CANCEL)
  380. #define STATIC_KSCATEGORY_SYSAUDIO \
  381. 0xA7C7A5B1L, 0x5AF3, 0x11D1, 0x9C, 0xED, 0x00, 0xA0, 0x24, 0xBF, 0x04, 0x07
  382. DEFINE_GUIDSTRUCT("A7C7A5B1-5AF3-11D1-9CED-00A024BF0407", KSCATEGORY_SYSAUDIO);
  383. #define KSCATEGORY_SYSAUDIO DEFINE_GUIDNAMED(KSCATEGORY_SYSAUDIO)
  384. #define STATIC_KSCATEGORY_WDMAUD \
  385. 0x3E227E76L, 0x690D, 0x11D2, 0x81, 0x61, 0x00, 0x00, 0xF8, 0x77, 0x5B, 0xF1
  386. DEFINE_GUIDSTRUCT("3E227E76-690D-11D2-8161-0000F8775BF1", KSCATEGORY_WDMAUD);
  387. #define KSCATEGORY_WDMAUD DEFINE_GUIDNAMED(KSCATEGORY_WDMAUD)
  388. #define STATIC_KSCATEGORY_AUDIO_GFX \
  389. 0x9BAF9572L, 0x340C, 0x11D3, 0xAB, 0xDC, 0x00, 0xA0, 0xC9, 0x0A, 0xB1, 0x6F
  390. DEFINE_GUIDSTRUCT("9BAF9572-340C-11D3-ABDC-00A0C90AB16F", KSCATEGORY_AUDIO_GFX);
  391. #define KSCATEGORY_AUDIO_GFX DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_GFX)
  392. #define STATIC_KSCATEGORY_AUDIO_SPLITTER \
  393. 0x9EA331FAL, 0xB91B, 0x45F8, 0x92, 0x85, 0xBD, 0x2B, 0xC7, 0x7A, 0xFC, 0xDE
  394. DEFINE_GUIDSTRUCT("9EA331FA-B91B-45F8-9285-BD2BC77AFCDE", KSCATEGORY_AUDIO_SPLITTER);
  395. #define KSCATEGORY_AUDIO_SPLITTER DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_SPLITTER)
  396. #define STATIC_KSCATEGORY_SYNTHESIZER STATIC_KSNODETYPE_SYNTHESIZER
  397. #define KSCATEGORY_SYNTHESIZER KSNODETYPE_SYNTHESIZER
  398. #define STATIC_KSCATEGORY_DRM_DESCRAMBLE STATIC_KSNODETYPE_DRM_DESCRAMBLE
  399. #define KSCATEGORY_DRM_DESCRAMBLE KSNODETYPE_DRM_DESCRAMBLE
  400. #define STATIC_KSCATEGORY_AUDIO_DEVICE \
  401. 0xFBF6F530L, 0x07B9, 0x11D2, 0xA7, 0x1E, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88
  402. DEFINE_GUIDSTRUCT("FBF6F530-07B9-11D2-A71E-0000F8004788", KSCATEGORY_AUDIO_DEVICE);
  403. #define KSCATEGORY_AUDIO_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_DEVICE)
  404. #define STATIC_KSCATEGORY_PREFERRED_WAVEOUT_DEVICE \
  405. 0xD6C5066EL, 0x72C1, 0x11D2, 0x97, 0x55, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88
  406. DEFINE_GUIDSTRUCT("D6C5066E-72C1-11D2-9755-0000F8004788", KSCATEGORY_PREFERRED_WAVEOUT_DEVICE);
  407. #define KSCATEGORY_PREFERRED_WAVEOUT_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_PREFERRED_WAVEOUT_DEVICE)
  408. #define STATIC_KSCATEGORY_PREFERRED_WAVEIN_DEVICE \
  409. 0xD6C50671L, 0x72C1, 0x11D2, 0x97, 0x55, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88
  410. DEFINE_GUIDSTRUCT("D6C50671-72C1-11D2-9755-0000F8004788", KSCATEGORY_PREFERRED_WAVEIN_DEVICE);
  411. #define KSCATEGORY_PREFERRED_WAVEIN_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_PREFERRED_WAVEIN_DEVICE)
  412. #define STATIC_KSCATEGORY_PREFERRED_MIDIOUT_DEVICE \
  413. 0xD6C50674L, 0x72C1, 0x11D2, 0x97, 0x55, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88
  414. DEFINE_GUIDSTRUCT("D6C50674-72C1-11D2-9755-0000F8004788", KSCATEGORY_PREFERRED_MIDIOUT_DEVICE);
  415. #define KSCATEGORY_PREFERRED_MIDIOUT_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_PREFERRED_MIDIOUT_DEVICE)
  416. // Special pin category for wdmaud
  417. #define STATIC_KSCATEGORY_WDMAUD_USE_PIN_NAME \
  418. 0x47A4FA20L, 0xA251, 0x11D1, 0xA0, 0x50, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88
  419. DEFINE_GUIDSTRUCT("47A4FA20-A251-11D1-A050-0000F8004788", KSCATEGORY_WDMAUD_USE_PIN_NAME);
  420. #define KSCATEGORY_WDMAUD_USE_PIN_NAME DEFINE_GUIDNAMED(KSCATEGORY_WDMAUD_USE_PIN_NAME)
  421. // Escalante Platform Interface
  422. #define STATIC_KSCATEGORY_ESCALANTE_PLATFORM_DRIVER \
  423. 0x74f3aea8L, 0x9768, 0x11d1, 0x8e, 0x07, 0x00, 0xa0, 0xc9, 0x5e, 0xc2, 0x2e
  424. DEFINE_GUIDSTRUCT("74f3aea8-9768-11d1-8e07-00a0c95ec22e", KSCATEGORY_ESCALANTE_PLATFORM_DRIVER);
  425. #define KSCATEGORY_ESCALANTE_PLATFORM_DRIVER DEFINE_GUIDNAMED(KSCATEGORY_ESCALANTE_PLATFORM_DRIVER)
  426. // -- major types ---
  427. // 'vids' == MEDIATYPE_Video,
  428. #define STATIC_KSDATAFORMAT_TYPE_VIDEO\
  429. 0x73646976L, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71
  430. DEFINE_GUIDSTRUCT("73646976-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_VIDEO);
  431. #define KSDATAFORMAT_TYPE_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_VIDEO)
  432. // 'auds' == MEDIATYPE_Audio
  433. #define STATIC_KSDATAFORMAT_TYPE_AUDIO\
  434. 0x73647561L, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71
  435. DEFINE_GUIDSTRUCT("73647561-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_AUDIO);
  436. #define KSDATAFORMAT_TYPE_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_AUDIO)
  437. // 'txts' == MEDIATYPE_Text
  438. #define STATIC_KSDATAFORMAT_TYPE_TEXT\
  439. 0x73747874L, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71
  440. DEFINE_GUIDSTRUCT("73747874-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_TEXT);
  441. #define KSDATAFORMAT_TYPE_TEXT DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_TEXT)
  442. #if !defined( DEFINE_WAVEFORMATEX_GUID )
  443. #define DEFINE_WAVEFORMATEX_GUID(x) (USHORT)(x), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71
  444. #endif
  445. #define STATIC_KSDATAFORMAT_SUBTYPE_WAVEFORMATEX\
  446. 0x00000000L, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71
  447. DEFINE_GUIDSTRUCT("00000000-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_WAVEFORMATEX);
  448. #define KSDATAFORMAT_SUBTYPE_WAVEFORMATEX DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_WAVEFORMATEX)
  449. #define INIT_WAVEFORMATEX_GUID(Guid, x)\
  450. {\
  451. *(Guid) = KSDATAFORMAT_SUBTYPE_WAVEFORMATEX;\
  452. (Guid)->Data1 = (USHORT)(x);\
  453. }
  454. #define EXTRACT_WAVEFORMATEX_ID(Guid)\
  455. (USHORT)((Guid)->Data1)
  456. #define IS_VALID_WAVEFORMATEX_GUID(Guid)\
  457. (!memcmp(((PUSHORT)&KSDATAFORMAT_SUBTYPE_WAVEFORMATEX) + 1, ((PUSHORT)(Guid)) + 1, sizeof(GUID) - sizeof(USHORT)))
  458. #if !defined(INIT_MMREG_MID)
  459. //{d5a47fa7-6d98-11d1-a21a-00a0c9223196}
  460. #define INIT_MMREG_MID(guid, id)\
  461. {\
  462. (guid)->Data1 = 0xd5a47fa7 + (USHORT)(id);\
  463. (guid)->Data2 = 0x6d98;\
  464. (guid)->Data3 = 0x11d1;\
  465. (guid)->Data4[0] = 0xa2;\
  466. (guid)->Data4[1] = 0x1a;\
  467. (guid)->Data4[2] = 0x00;\
  468. (guid)->Data4[3] = 0xa0;\
  469. (guid)->Data4[4] = 0xc9;\
  470. (guid)->Data4[5] = 0x22;\
  471. (guid)->Data4[6] = 0x31;\
  472. (guid)->Data4[7] = 0x96;\
  473. }
  474. #define EXTRACT_MMREG_MID(guid)\
  475. (USHORT)((guid)->Data1 - 0xd5a47fa7)
  476. #define DEFINE_MMREG_MID_GUID(id)\
  477. 0xd5a47fa7+(USHORT)(id), 0x6d98, 0x11d1, 0xa2, 0x1a, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96
  478. #define IS_COMPATIBLE_MMREG_MID(guid)\
  479. (((guid)->Data1 >= 0xd5a47fa7) &&\
  480. ((guid)->Data1 < 0xd5a47fa7 + 0xffff) &&\
  481. ((guid)->Data2 == 0x6d98) &&\
  482. ((guid)->Data3 == 0x11d1) &&\
  483. ((guid)->Data4[0] == 0xa2) &&\
  484. ((guid)->Data4[1] == 0x1a) &&\
  485. ((guid)->Data4[2] == 0x00) &&\
  486. ((guid)->Data4[3] == 0xa0) &&\
  487. ((guid)->Data4[4] == 0xc9) &&\
  488. ((guid)->Data4[5] == 0x22) &&\
  489. ((guid)->Data4[6] == 0x31) &&\
  490. ((guid)->Data4[7] == 0x96))
  491. #endif // !defined(INIT_MMREG_MID)
  492. #if !defined(INIT_MMREG_PID)
  493. //{e36dc2ac-6d9a-11d1-a21a-00a0c9223196}
  494. #define INIT_MMREG_PID(guid, id)\
  495. {\
  496. (guid)->Data1 = 0xe36dc2ac + (USHORT)(id);\
  497. (guid)->Data2 = 0x6d9a;\
  498. (guid)->Data3 = 0x11d1;\
  499. (guid)->Data4[0] = 0xa2;\
  500. (guid)->Data4[1] = 0x1a;\
  501. (guid)->Data4[2] = 0x00;\
  502. (guid)->Data4[3] = 0xa0;\
  503. (guid)->Data4[4] = 0xc9;\
  504. (guid)->Data4[5] = 0x22;\
  505. (guid)->Data4[6] = 0x31;\
  506. (guid)->Data4[7] = 0x96;\
  507. }
  508. #define EXTRACT_MMREG_PID(guid)\
  509. (USHORT)((guid)->Data1 - 0xe36dc2ac)
  510. #define DEFINE_MMREG_PID_GUID(id)\
  511. 0xe36dc2ac+(USHORT)(id), 0x6d9a, 0x11d1, 0xa2, 0x1a, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96
  512. #define IS_COMPATIBLE_MMREG_PID(guid)\
  513. (((guid)->Data1 >= 0xe36dc2ac) &&\
  514. ((guid)->Data1 < 0xe36dc2ac + 0xffff) &&\
  515. ((guid)->Data2 == 0x6d9a) &&\
  516. ((guid)->Data3 == 0x11d1) &&\
  517. ((guid)->Data4[0] == 0xa2) &&\
  518. ((guid)->Data4[1] == 0x1a) &&\
  519. ((guid)->Data4[2] == 0x00) &&\
  520. ((guid)->Data4[3] == 0xa0) &&\
  521. ((guid)->Data4[4] == 0xc9) &&\
  522. ((guid)->Data4[5] == 0x22) &&\
  523. ((guid)->Data4[6] == 0x31) &&\
  524. ((guid)->Data4[7] == 0x96))
  525. #endif // !defined(INIT_MMREG_PID)
  526. #define STATIC_KSDATAFORMAT_SUBTYPE_ANALOG\
  527. 0x6dba3190L, 0x67bd, 0x11cf, 0xa0, 0xf7, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4
  528. DEFINE_GUIDSTRUCT("6dba3190-67bd-11cf-a0f7-0020afd156e4", KSDATAFORMAT_SUBTYPE_ANALOG);
  529. #define KSDATAFORMAT_SUBTYPE_ANALOG DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_ANALOG)
  530. #define STATIC_KSDATAFORMAT_SUBTYPE_PCM\
  531. DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_PCM)
  532. DEFINE_GUIDSTRUCT("00000001-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_PCM);
  533. #define KSDATAFORMAT_SUBTYPE_PCM DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_PCM)
  534. #if defined(_INC_MMREG)
  535. #define STATIC_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT\
  536. DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_IEEE_FLOAT)
  537. DEFINE_GUIDSTRUCT("00000003-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_IEEE_FLOAT);
  538. #define KSDATAFORMAT_SUBTYPE_IEEE_FLOAT DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_IEEE_FLOAT)
  539. #define STATIC_KSDATAFORMAT_SUBTYPE_DRM\
  540. DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_DRM)
  541. DEFINE_GUIDSTRUCT("00000009-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_DRM);
  542. #define KSDATAFORMAT_SUBTYPE_DRM DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_DRM)
  543. #define STATIC_KSDATAFORMAT_SUBTYPE_ALAW\
  544. DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_ALAW)
  545. DEFINE_GUIDSTRUCT("00000006-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_ALAW);
  546. #define KSDATAFORMAT_SUBTYPE_ALAW DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_ALAW)
  547. #define STATIC_KSDATAFORMAT_SUBTYPE_MULAW\
  548. DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_MULAW)
  549. DEFINE_GUIDSTRUCT("00000007-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_MULAW);
  550. #define KSDATAFORMAT_SUBTYPE_MULAW DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MULAW)
  551. #define STATIC_KSDATAFORMAT_SUBTYPE_ADPCM\
  552. DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_ADPCM)
  553. DEFINE_GUIDSTRUCT("00000002-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_ADPCM);
  554. #define KSDATAFORMAT_SUBTYPE_ADPCM DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_ADPCM)
  555. #define STATIC_KSDATAFORMAT_SUBTYPE_MPEG\
  556. DEFINE_WAVEFORMATEX_GUID(WAVE_FORMAT_MPEG)
  557. DEFINE_GUIDSTRUCT("00000050-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_MPEG);
  558. #define KSDATAFORMAT_SUBTYPE_MPEG DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG)
  559. #endif // defined(_INC_MMREG)
  560. #define STATIC_KSDATAFORMAT_SPECIFIER_VC_ID\
  561. 0xAD98D184L, 0xAAC3, 0x11D0, 0xA4, 0x1C, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  562. DEFINE_GUIDSTRUCT("AD98D184-AAC3-11D0-A41C-00A0C9223196", KSDATAFORMAT_SPECIFIER_VC_ID);
  563. #define KSDATAFORMAT_SPECIFIER_VC_ID DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_VC_ID)
  564. #define STATIC_KSDATAFORMAT_SPECIFIER_WAVEFORMATEX\
  565. 0x05589f81L, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a
  566. DEFINE_GUIDSTRUCT("05589f81-c356-11ce-bf01-00aa0055595a", KSDATAFORMAT_SPECIFIER_WAVEFORMATEX);
  567. #define KSDATAFORMAT_SPECIFIER_WAVEFORMATEX DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_WAVEFORMATEX)
  568. #define STATIC_KSDATAFORMAT_SPECIFIER_DSOUND\
  569. 0x518590a2L, 0xa184, 0x11d0, 0x85, 0x22, 0x00, 0xc0, 0x4f, 0xd9, 0xba, 0xf3
  570. DEFINE_GUIDSTRUCT("518590a2-a184-11d0-8522-00c04fd9baf3", KSDATAFORMAT_SPECIFIER_DSOUND);
  571. #define KSDATAFORMAT_SPECIFIER_DSOUND DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DSOUND)
  572. #if defined(_INC_MMSYSTEM) || defined(_INC_MMREG)
  573. #if !defined( PACK_PRAGMAS_NOT_SUPPORTED )
  574. #include <pshpack1.h>
  575. #endif
  576. typedef struct {
  577. KSDATAFORMAT DataFormat;
  578. WAVEFORMATEX WaveFormatEx;
  579. } KSDATAFORMAT_WAVEFORMATEX, *PKSDATAFORMAT_WAVEFORMATEX;
  580. #ifndef _WAVEFORMATEXTENSIBLE_
  581. #define _WAVEFORMATEXTENSIBLE_
  582. typedef struct {
  583. WAVEFORMATEX Format;
  584. union {
  585. WORD wValidBitsPerSample; /* bits of precision */
  586. WORD wSamplesPerBlock; /* valid if wBitsPerSample==0 */
  587. WORD wReserved; /* If neither applies, set to zero. */
  588. } Samples;
  589. DWORD dwChannelMask; /* which channels are */
  590. /* present in stream */
  591. GUID SubFormat;
  592. } WAVEFORMATEXTENSIBLE, *PWAVEFORMATEXTENSIBLE;
  593. #endif // !_WAVEFORMATEXTENSIBLE_
  594. #if !defined(WAVE_FORMAT_EXTENSIBLE)
  595. #define WAVE_FORMAT_EXTENSIBLE 0xFFFE
  596. #endif // !defined(WAVE_FORMAT_EXTENSIBLE)
  597. // DirectSound buffer description
  598. typedef struct {
  599. ULONG Flags;
  600. ULONG Control;
  601. WAVEFORMATEX WaveFormatEx;
  602. } KSDSOUND_BUFFERDESC, *PKSDSOUND_BUFFERDESC;
  603. // DirectSound format
  604. typedef struct {
  605. KSDATAFORMAT DataFormat;
  606. KSDSOUND_BUFFERDESC BufferDesc;
  607. } KSDATAFORMAT_DSOUND, *PKSDATAFORMAT_DSOUND;
  608. #if !defined( PACK_PRAGMAS_NOT_SUPPORTED )
  609. #include <poppack.h>
  610. #endif
  611. #endif // defined(_INC_MMSYSTEM) || defined(_INC_MMREG)
  612. // DirectSound buffer flags
  613. #define KSDSOUND_BUFFER_PRIMARY 0x00000001
  614. #define KSDSOUND_BUFFER_STATIC 0x00000002
  615. #define KSDSOUND_BUFFER_LOCHARDWARE 0x00000004
  616. #define KSDSOUND_BUFFER_LOCSOFTWARE 0x00000008
  617. // DirectSound buffer control flags
  618. #define KSDSOUND_BUFFER_CTRL_3D 0x00000001
  619. #define KSDSOUND_BUFFER_CTRL_FREQUENCY 0x00000002
  620. #define KSDSOUND_BUFFER_CTRL_PAN 0x00000004
  621. #define KSDSOUND_BUFFER_CTRL_VOLUME 0x00000008
  622. #define KSDSOUND_BUFFER_CTRL_POSITIONNOTIFY 0x00000010
  623. typedef struct {
  624. #if defined(_NTDDK_)
  625. ULONGLONG PlayOffset;
  626. ULONGLONG WriteOffset;
  627. #else // !_NTDDK_
  628. DWORDLONG PlayOffset;
  629. DWORDLONG WriteOffset;
  630. #endif // !_NTDDK_
  631. } KSAUDIO_POSITION, *PKSAUDIO_POSITION;
  632. //===========================================================================
  633. // DirectSound3D HAL
  634. typedef struct _DS3DVECTOR {
  635. union {
  636. FLOAT x;
  637. FLOAT dvX;
  638. };
  639. union {
  640. FLOAT y;
  641. FLOAT dvY;
  642. };
  643. union {
  644. FLOAT z;
  645. FLOAT dvZ;
  646. };
  647. } DS3DVECTOR, *PDS3DVECTOR;
  648. //===========================================================================
  649. //===========================================================================
  650. // KSPROPSETID_DirectSound3DListener : {437B3414-D060-11d0-8583-00C04FD9BAF3}
  651. #define STATIC_KSPROPSETID_DirectSound3DListener\
  652. 0x437b3414L, 0xd060, 0x11d0, 0x85, 0x83, 0x00, 0xc0, 0x4f, 0xd9, 0xba, 0xf3
  653. DEFINE_GUIDSTRUCT("437b3414-d060-11d0-8583-00c04fd9baf3",KSPROPSETID_DirectSound3DListener);
  654. #define KSPROPSETID_DirectSound3DListener DEFINE_GUIDNAMED(KSPROPSETID_DirectSound3DListener)
  655. typedef enum {
  656. KSPROPERTY_DIRECTSOUND3DLISTENER_ALL,
  657. KSPROPERTY_DIRECTSOUND3DLISTENER_POSITION,
  658. KSPROPERTY_DIRECTSOUND3DLISTENER_VELOCITY,
  659. KSPROPERTY_DIRECTSOUND3DLISTENER_ORIENTATION,
  660. KSPROPERTY_DIRECTSOUND3DLISTENER_DISTANCEFACTOR,
  661. KSPROPERTY_DIRECTSOUND3DLISTENER_ROLLOFFFACTOR,
  662. KSPROPERTY_DIRECTSOUND3DLISTENER_DOPPLERFACTOR,
  663. KSPROPERTY_DIRECTSOUND3DLISTENER_BATCH,
  664. KSPROPERTY_DIRECTSOUND3DLISTENER_ALLOCATION
  665. } KSPROPERTY_DIRECTSOUND3DLISTENER;
  666. typedef struct {
  667. DS3DVECTOR Position;
  668. DS3DVECTOR Velocity;
  669. DS3DVECTOR OrientFront;
  670. DS3DVECTOR OrientTop;
  671. FLOAT DistanceFactor;
  672. FLOAT RolloffFactor;
  673. FLOAT DopplerFactor;
  674. } KSDS3D_LISTENER_ALL, *PKSDS3D_LISTENER_ALL;
  675. typedef struct {
  676. DS3DVECTOR Front;
  677. DS3DVECTOR Top;
  678. } KSDS3D_LISTENER_ORIENTATION, *PKSDS3D_LISTENER_ORIENTATION;
  679. //===========================================================================
  680. //===========================================================================
  681. // KSPROPSETID_DirectSound3DBuffer : {437B3411-D060-11d0-8583-00C04FD9BAF3}
  682. #define STATIC_KSPROPSETID_DirectSound3DBuffer\
  683. 0x437b3411L, 0xd060, 0x11d0, 0x85, 0x83, 0x00, 0xc0, 0x4f, 0xd9, 0xba, 0xf3
  684. DEFINE_GUIDSTRUCT("437b3411-d060-11d0-8583-00c04fd9baf3", KSPROPSETID_DirectSound3DBuffer);
  685. #define KSPROPSETID_DirectSound3DBuffer DEFINE_GUIDNAMED(KSPROPSETID_DirectSound3DBuffer)
  686. typedef enum {
  687. KSPROPERTY_DIRECTSOUND3DBUFFER_ALL,
  688. KSPROPERTY_DIRECTSOUND3DBUFFER_POSITION,
  689. KSPROPERTY_DIRECTSOUND3DBUFFER_VELOCITY,
  690. KSPROPERTY_DIRECTSOUND3DBUFFER_CONEANGLES,
  691. KSPROPERTY_DIRECTSOUND3DBUFFER_CONEORIENTATION,
  692. KSPROPERTY_DIRECTSOUND3DBUFFER_CONEOUTSIDEVOLUME,
  693. KSPROPERTY_DIRECTSOUND3DBUFFER_MINDISTANCE,
  694. KSPROPERTY_DIRECTSOUND3DBUFFER_MAXDISTANCE,
  695. KSPROPERTY_DIRECTSOUND3DBUFFER_MODE
  696. } KSPROPERTY_DIRECTSOUND3DBUFFER;
  697. typedef struct {
  698. DS3DVECTOR Position;
  699. DS3DVECTOR Velocity;
  700. ULONG InsideConeAngle;
  701. ULONG OutsideConeAngle;
  702. DS3DVECTOR ConeOrientation;
  703. LONG ConeOutsideVolume;
  704. FLOAT MinDistance;
  705. FLOAT MaxDistance;
  706. ULONG Mode;
  707. } KSDS3D_BUFFER_ALL, *PKSDS3D_BUFFER_ALL;
  708. typedef struct {
  709. ULONG InsideConeAngle;
  710. ULONG OutsideConeAngle;
  711. } KSDS3D_BUFFER_CONE_ANGLES, *PKSDS3D_BUFFER_CONE_ANGLES;
  712. #define KSAUDIO_STEREO_SPEAKER_GEOMETRY_HEADPHONE (-1)
  713. #define KSAUDIO_STEREO_SPEAKER_GEOMETRY_MIN 5
  714. #define KSAUDIO_STEREO_SPEAKER_GEOMETRY_NARROW 10
  715. #define KSAUDIO_STEREO_SPEAKER_GEOMETRY_WIDE 20
  716. #define KSAUDIO_STEREO_SPEAKER_GEOMETRY_MAX 180
  717. #define KSDSOUND_3D_MODE_NORMAL 0x00000000
  718. #define KSDSOUND_3D_MODE_HEADRELATIVE 0x00000001
  719. #define KSDSOUND_3D_MODE_DISABLE 0x00000002
  720. typedef struct {
  721. KSDATARANGE DataRange;
  722. ULONG MaximumChannels;
  723. ULONG MinimumBitsPerSample;
  724. ULONG MaximumBitsPerSample;
  725. ULONG MinimumSampleFrequency;
  726. ULONG MaximumSampleFrequency;
  727. } KSDATARANGE_AUDIO, *PKSDATARANGE_AUDIO;
  728. //---------------------------------------------------------------------------
  729. #define STATIC_KSDATAFORMAT_SUBTYPE_RIFF\
  730. 0x4995DAEEL, 0x9EE6, 0x11D0, 0xA4, 0x0E, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  731. DEFINE_GUIDSTRUCT("4995DAEE-9EE6-11D0-A40E-00A0C9223196", KSDATAFORMAT_SUBTYPE_RIFF);
  732. #define KSDATAFORMAT_SUBTYPE_RIFF DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_RIFF)
  733. #define STATIC_KSDATAFORMAT_SUBTYPE_RIFFWAVE\
  734. 0xe436eb8bL, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70
  735. DEFINE_GUIDSTRUCT("e436eb8b-524f-11ce-9f53-0020af0ba770", KSDATAFORMAT_SUBTYPE_RIFFWAVE);
  736. #define KSDATAFORMAT_SUBTYPE_RIFFWAVE DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_RIFFWAVE)
  737. //===========================================================================
  738. //===========================================================================
  739. #define STATIC_KSPROPSETID_Bibliographic \
  740. 0x07BA150EL, 0xE2B1, 0x11D0, 0xAC, 0x17, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  741. DEFINE_GUIDSTRUCT("07BA150E-E2B1-11D0-AC17-00A0C9223196", KSPROPSETID_Bibliographic);
  742. #define KSPROPSETID_Bibliographic DEFINE_GUIDNAMED(KSPROPSETID_Bibliographic)
  743. //Repeatable tags contain all entries within the property, each preceeded by length
  744. typedef enum {
  745. KSPROPERTY_BIBLIOGRAPHIC_LEADER = 'RDL ',
  746. KSPROPERTY_BIBLIOGRAPHIC_LCCN = '010 ',
  747. KSPROPERTY_BIBLIOGRAPHIC_ISBN = '020 ',
  748. KSPROPERTY_BIBLIOGRAPHIC_ISSN = '220 ',
  749. KSPROPERTY_BIBLIOGRAPHIC_CATALOGINGSOURCE = '040 ',
  750. KSPROPERTY_BIBLIOGRAPHIC_MAINPERSONALNAME = '001 ',
  751. KSPROPERTY_BIBLIOGRAPHIC_MAINCORPORATEBODY = '011 ',
  752. KSPROPERTY_BIBLIOGRAPHIC_MAINMEETINGNAME = '111 ',
  753. KSPROPERTY_BIBLIOGRAPHIC_MAINUNIFORMTITLE = '031 ',
  754. KSPROPERTY_BIBLIOGRAPHIC_UNIFORMTITLE = '042 ',
  755. KSPROPERTY_BIBLIOGRAPHIC_TITLESTATEMENT = '542 ',
  756. KSPROPERTY_BIBLIOGRAPHIC_VARYINGFORMTITLE = '642 ',
  757. KSPROPERTY_BIBLIOGRAPHIC_PUBLICATION = '062 ',
  758. KSPROPERTY_BIBLIOGRAPHIC_PHYSICALDESCRIPTION = '003 ',
  759. KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYTITLE = '044 ',
  760. KSPROPERTY_BIBLIOGRAPHIC_SERIESSTATEMENT = '094 ',
  761. KSPROPERTY_BIBLIOGRAPHIC_GENERALNOTE = '005 ',
  762. KSPROPERTY_BIBLIOGRAPHIC_BIBLIOGRAPHYNOTE = '405 ',
  763. KSPROPERTY_BIBLIOGRAPHIC_CONTENTSNOTE = '505 ',
  764. KSPROPERTY_BIBLIOGRAPHIC_CREATIONCREDIT = '805 ',
  765. KSPROPERTY_BIBLIOGRAPHIC_CITATION = '015 ',
  766. KSPROPERTY_BIBLIOGRAPHIC_PARTICIPANT = '115 ',
  767. KSPROPERTY_BIBLIOGRAPHIC_SUMMARY = '025 ',
  768. KSPROPERTY_BIBLIOGRAPHIC_TARGETAUDIENCE = '125 ',
  769. KSPROPERTY_BIBLIOGRAPHIC_ADDEDFORMAVAILABLE = '035 ',
  770. KSPROPERTY_BIBLIOGRAPHIC_SYSTEMDETAILS = '835 ',
  771. KSPROPERTY_BIBLIOGRAPHIC_AWARDS = '685 ',
  772. KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYPERSONALNAME = '006 ',
  773. KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYTOPICALTERM = '056 ',
  774. KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYGEOGRAPHIC = '156 ',
  775. KSPROPERTY_BIBLIOGRAPHIC_INDEXTERMGENRE = '556 ',
  776. KSPROPERTY_BIBLIOGRAPHIC_INDEXTERMCURRICULUM = '856 ',
  777. KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYUNIFORMTITLE = '037 ',
  778. KSPROPERTY_BIBLIOGRAPHIC_ADDEDENTRYRELATED = '047 ',
  779. KSPROPERTY_BIBLIOGRAPHIC_SERIESSTATEMENTPERSONALNAME = '008 ',
  780. KSPROPERTY_BIBLIOGRAPHIC_SERIESSTATEMENTUNIFORMTITLE = '038 '
  781. } KSPROPERTY_BIBLIOGRAPHIC;
  782. #define STATIC_KSPROPSETID_TopologyNode\
  783. 0x45FFAAA1L, 0x6E1B, 0x11D0, 0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00
  784. DEFINE_GUIDSTRUCT("45FFAAA1-6E1B-11D0-BCF2-444553540000", KSPROPSETID_TopologyNode);
  785. #define KSPROPSETID_TopologyNode DEFINE_GUIDNAMED(KSPROPSETID_TopologyNode)
  786. typedef enum {
  787. KSPROPERTY_TOPOLOGYNODE_ENABLE = 1,
  788. KSPROPERTY_TOPOLOGYNODE_RESET
  789. } KSPROPERTY_TOPOLOGYNODE;
  790. //===========================================================================
  791. #if defined(_NTDDK_)
  792. typedef NTSTATUS (CALLBACK *PRTAUDIOGETPOSITION)(IN PFILE_OBJECT PinFileObject,
  793. OUT PUCHAR *ppPlayPosition,
  794. OUT PLONG plOffset);
  795. #endif // defined(_NTDDK_)
  796. #define STATIC_KSPROPSETID_RtAudio\
  797. 0xa855a48c, 0x2f78, 0x4729, 0x90, 0x51, 0x19, 0x68, 0x74, 0x6b, 0x9e, 0xef
  798. DEFINE_GUIDSTRUCT("A855A48C-2F78-4729-9051-1968746B9EEF", KSPROPSETID_RtAudio);
  799. #define KSPROPSETID_RtAudio DEFINE_GUIDNAMED(KSPROPSETID_RtAudio)
  800. typedef enum {
  801. KSPROPERTY_RTAUDIO_GETPOSITIONFUNCTION
  802. } KSPROPERTY_RTAUDIO;
  803. //===========================================================================
  804. #define STATIC_KSPROPSETID_DrmAudioStream\
  805. 0x2f2c8ddd, 0x4198, 0x4fac, 0xba, 0x29, 0x61, 0xbb, 0x5, 0xb7, 0xde, 0x6
  806. DEFINE_GUIDSTRUCT("2F2C8DDD-4198-4fac-BA29-61BB05B7DE06", KSPROPSETID_DrmAudioStream);
  807. #define KSPROPSETID_DrmAudioStream DEFINE_GUIDNAMED(KSPROPSETID_DrmAudioStream)
  808. typedef enum {
  809. KSPROPERTY_DRMAUDIOSTREAM_CONTENTID
  810. } KSPROPERTY_DRMAUDIOSTREAM;
  811. //===========================================================================
  812. #define STATIC_KSPROPSETID_Audio\
  813. 0x45FFAAA0L, 0x6E1B, 0x11D0, 0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00
  814. DEFINE_GUIDSTRUCT("45FFAAA0-6E1B-11D0-BCF2-444553540000", KSPROPSETID_Audio);
  815. #define KSPROPSETID_Audio DEFINE_GUIDNAMED(KSPROPSETID_Audio)
  816. typedef enum {
  817. KSPROPERTY_AUDIO_LATENCY = 1,
  818. KSPROPERTY_AUDIO_COPY_PROTECTION,
  819. KSPROPERTY_AUDIO_CHANNEL_CONFIG,
  820. KSPROPERTY_AUDIO_VOLUMELEVEL,
  821. KSPROPERTY_AUDIO_POSITION,
  822. KSPROPERTY_AUDIO_DYNAMIC_RANGE,
  823. KSPROPERTY_AUDIO_QUALITY,
  824. KSPROPERTY_AUDIO_SAMPLING_RATE,
  825. KSPROPERTY_AUDIO_DYNAMIC_SAMPLING_RATE,
  826. KSPROPERTY_AUDIO_MIX_LEVEL_TABLE,
  827. KSPROPERTY_AUDIO_MIX_LEVEL_CAPS,
  828. KSPROPERTY_AUDIO_MUX_SOURCE,
  829. KSPROPERTY_AUDIO_MUTE,
  830. KSPROPERTY_AUDIO_BASS,
  831. KSPROPERTY_AUDIO_MID,
  832. KSPROPERTY_AUDIO_TREBLE,
  833. KSPROPERTY_AUDIO_BASS_BOOST,
  834. KSPROPERTY_AUDIO_EQ_LEVEL,
  835. KSPROPERTY_AUDIO_NUM_EQ_BANDS,
  836. KSPROPERTY_AUDIO_EQ_BANDS,
  837. KSPROPERTY_AUDIO_AGC,
  838. KSPROPERTY_AUDIO_DELAY,
  839. KSPROPERTY_AUDIO_LOUDNESS,
  840. KSPROPERTY_AUDIO_WIDE_MODE,
  841. KSPROPERTY_AUDIO_WIDENESS,
  842. KSPROPERTY_AUDIO_REVERB_LEVEL,
  843. KSPROPERTY_AUDIO_CHORUS_LEVEL,
  844. KSPROPERTY_AUDIO_DEV_SPECIFIC,
  845. KSPROPERTY_AUDIO_DEMUX_DEST,
  846. KSPROPERTY_AUDIO_STEREO_ENHANCE,
  847. KSPROPERTY_AUDIO_MANUFACTURE_GUID,
  848. KSPROPERTY_AUDIO_PRODUCT_GUID,
  849. KSPROPERTY_AUDIO_CPU_RESOURCES,
  850. KSPROPERTY_AUDIO_STEREO_SPEAKER_GEOMETRY,
  851. KSPROPERTY_AUDIO_SURROUND_ENCODE,
  852. KSPROPERTY_AUDIO_3D_INTERFACE,
  853. KSPROPERTY_AUDIO_PEAKMETER,
  854. KSPROPERTY_AUDIO_ALGORITHM_INSTANCE,
  855. KSPROPERTY_AUDIO_FILTER_STATE,
  856. KSPROPERTY_AUDIO_PREFERRED_STATUS
  857. } KSPROPERTY_AUDIO;
  858. // Audio quality constants
  859. #define KSAUDIO_QUALITY_WORST 0x0
  860. #define KSAUDIO_QUALITY_PC 0x1
  861. #define KSAUDIO_QUALITY_BASIC 0x2
  862. #define KSAUDIO_QUALITY_ADVANCED 0x3
  863. // Audio CPU resource constants
  864. #define KSAUDIO_CPU_RESOURCES_NOT_HOST_CPU 0x00000000
  865. #define KSAUDIO_CPU_RESOURCES_HOST_CPU 0x7FFFFFFF
  866. typedef struct {
  867. BOOL fCopyrighted;
  868. BOOL fOriginal;
  869. } KSAUDIO_COPY_PROTECTION, *PKSAUDIO_COPY_PROTECTION;
  870. typedef struct {
  871. LONG ActiveSpeakerPositions;
  872. } KSAUDIO_CHANNEL_CONFIG, *PKSAUDIO_CHANNEL_CONFIG;
  873. // Speaker Positions:
  874. #define SPEAKER_FRONT_LEFT 0x1
  875. #define SPEAKER_FRONT_RIGHT 0x2
  876. #define SPEAKER_FRONT_CENTER 0x4
  877. #define SPEAKER_LOW_FREQUENCY 0x8
  878. #define SPEAKER_BACK_LEFT 0x10
  879. #define SPEAKER_BACK_RIGHT 0x20
  880. #define SPEAKER_FRONT_LEFT_OF_CENTER 0x40
  881. #define SPEAKER_FRONT_RIGHT_OF_CENTER 0x80
  882. #define SPEAKER_BACK_CENTER 0x100
  883. #define SPEAKER_SIDE_LEFT 0x200
  884. #define SPEAKER_SIDE_RIGHT 0x400
  885. #define SPEAKER_TOP_CENTER 0x800
  886. #define SPEAKER_TOP_FRONT_LEFT 0x1000
  887. #define SPEAKER_TOP_FRONT_CENTER 0x2000
  888. #define SPEAKER_TOP_FRONT_RIGHT 0x4000
  889. #define SPEAKER_TOP_BACK_LEFT 0x8000
  890. #define SPEAKER_TOP_BACK_CENTER 0x10000
  891. #define SPEAKER_TOP_BACK_RIGHT 0x20000
  892. // Bit mask locations reserved for future use
  893. #define SPEAKER_RESERVED 0x7FFC0000
  894. // Used to specify that any possible permutation of speaker configurations
  895. #define SPEAKER_ALL 0x80000000
  896. // DirectSound Speaker Config
  897. #define KSAUDIO_SPEAKER_DIRECTOUT 0
  898. #define KSAUDIO_SPEAKER_MONO (SPEAKER_FRONT_CENTER)
  899. #define KSAUDIO_SPEAKER_STEREO (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT)
  900. #define KSAUDIO_SPEAKER_QUAD (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
  901. SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
  902. #define KSAUDIO_SPEAKER_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
  903. SPEAKER_FRONT_CENTER | SPEAKER_BACK_CENTER)
  904. #define KSAUDIO_SPEAKER_5POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
  905. SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \
  906. SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
  907. #define KSAUDIO_SPEAKER_7POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
  908. SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \
  909. SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | \
  910. SPEAKER_FRONT_LEFT_OF_CENTER | SPEAKER_FRONT_RIGHT_OF_CENTER)
  911. // DVD Speaker Positions
  912. #define KSAUDIO_SPEAKER_GROUND_FRONT_LEFT SPEAKER_FRONT_LEFT
  913. #define KSAUDIO_SPEAKER_GROUND_FRONT_CENTER SPEAKER_FRONT_CENTER
  914. #define KSAUDIO_SPEAKER_GROUND_FRONT_RIGHT SPEAKER_FRONT_RIGHT
  915. #define KSAUDIO_SPEAKER_GROUND_REAR_LEFT SPEAKER_BACK_LEFT
  916. #define KSAUDIO_SPEAKER_GROUND_REAR_RIGHT SPEAKER_BACK_RIGHT
  917. #define KSAUDIO_SPEAKER_TOP_MIDDLE SPEAKER_TOP_CENTER
  918. #define KSAUDIO_SPEAKER_SUPER_WOOFER SPEAKER_LOW_FREQUENCY
  919. typedef struct {
  920. ULONG QuietCompression;
  921. ULONG LoudCompression;
  922. } KSAUDIO_DYNAMIC_RANGE, *PKSAUDIO_DYNAMIC_RANGE;
  923. typedef struct {
  924. BOOL Mute;
  925. LONG Level;
  926. } KSAUDIO_MIXLEVEL, *PKSAUDIO_MIXLEVEL;
  927. typedef struct {
  928. BOOL Mute;
  929. LONG Minimum;
  930. LONG Maximum;
  931. LONG Reset;
  932. } KSAUDIO_MIX_CAPS, *PKSAUDIO_MIX_CAPS;
  933. typedef struct {
  934. ULONG InputChannels;
  935. ULONG OutputChannels;
  936. KSAUDIO_MIX_CAPS Capabilities[1];
  937. } KSAUDIO_MIXCAP_TABLE, *PKSAUDIO_MIXCAP_TABLE;
  938. typedef enum {
  939. SE_TECH_NONE,
  940. SE_TECH_ANALOG_DEVICES_PHAT,
  941. SE_TECH_CREATIVE,
  942. SE_TECH_NATIONAL_SEMI,
  943. SE_TECH_YAMAHA_YMERSION,
  944. SE_TECH_BBE,
  945. SE_TECH_CRYSTAL_SEMI,
  946. SE_TECH_QSOUND_QXPANDER,
  947. SE_TECH_SPATIALIZER,
  948. SE_TECH_SRS,
  949. SE_TECH_PLATFORM_TECH,
  950. SE_TECH_AKM,
  951. SE_TECH_AUREAL,
  952. SE_TECH_AZTECH,
  953. SE_TECH_BINAURA,
  954. SE_TECH_ESS_TECH,
  955. SE_TECH_HARMAN_VMAX,
  956. SE_TECH_NVIDEA,
  957. SE_TECH_PHILIPS_INCREDIBLE,
  958. SE_TECH_TEXAS_INST,
  959. SE_TECH_VLSI_TECH
  960. } SE_TECHNIQUE;
  961. typedef struct {
  962. SE_TECHNIQUE Technique;
  963. ULONG Center;
  964. ULONG Depth;
  965. ULONG Reserved;
  966. } KSAUDIO_STEREO_ENHANCE, *PKSAUDIO_STEREO_ENHANCE;
  967. typedef enum { // preferred device index
  968. KSPROPERTY_SYSAUDIO_NORMAL_DEFAULT = 0,
  969. KSPROPERTY_SYSAUDIO_PLAYBACK_DEFAULT,
  970. KSPROPERTY_SYSAUDIO_RECORD_DEFAULT,
  971. KSPROPERTY_SYSAUDIO_MIDI_DEFAULT,
  972. KSPROPERTY_SYSAUDIO_MIXER_DEFAULT
  973. } KSPROPERTY_SYSAUDIO_DEFAULT_TYPE;
  974. typedef struct {
  975. BOOL Enable;
  976. KSPROPERTY_SYSAUDIO_DEFAULT_TYPE DeviceType;
  977. ULONG Flags;
  978. ULONG Reserved;
  979. } KSAUDIO_PREFERRED_STATUS, *PKSAUDIO_PREFERRED_STATUS;
  980. //===========================================================================
  981. // Topology Node Type GUIDs
  982. #define STATIC_KSNODETYPE_DAC\
  983. 0x507AE360L, 0xC554, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  984. DEFINE_GUIDSTRUCT("507AE360-C554-11D0-8A2B-00A0C9255AC1", KSNODETYPE_DAC);
  985. #define KSNODETYPE_DAC DEFINE_GUIDNAMED(KSNODETYPE_DAC)
  986. #define STATIC_KSNODETYPE_ADC\
  987. 0x4D837FE0L, 0xC555, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  988. DEFINE_GUIDSTRUCT("4D837FE0-C555-11D0-8A2B-00A0C9255AC1", KSNODETYPE_ADC);
  989. #define KSNODETYPE_ADC DEFINE_GUIDNAMED(KSNODETYPE_ADC)
  990. #define STATIC_KSNODETYPE_SRC\
  991. 0x9DB7B9E0L, 0xC555, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  992. DEFINE_GUIDSTRUCT("9DB7B9E0-C555-11D0-8A2B-00A0C9255AC1", KSNODETYPE_SRC);
  993. #define KSNODETYPE_SRC DEFINE_GUIDNAMED(KSNODETYPE_SRC)
  994. #define STATIC_KSNODETYPE_SUPERMIX\
  995. 0xE573ADC0L, 0xC555, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  996. DEFINE_GUIDSTRUCT("E573ADC0-C555-11D0-8A2B-00A0C9255AC1", KSNODETYPE_SUPERMIX);
  997. #define KSNODETYPE_SUPERMIX DEFINE_GUIDNAMED(KSNODETYPE_SUPERMIX)
  998. #define STATIC_KSNODETYPE_MUX\
  999. 0x2CEAF780L, 0xC556, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1000. DEFINE_GUIDSTRUCT("2CEAF780-C556-11D0-8A2B-00A0C9255AC1", KSNODETYPE_MUX);
  1001. #define KSNODETYPE_MUX DEFINE_GUIDNAMED(KSNODETYPE_MUX)
  1002. #define STATIC_KSNODETYPE_DEMUX\
  1003. 0xC0EB67D4L, 0xE807, 0x11D0, 0x95, 0x8A, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1004. DEFINE_GUIDSTRUCT("C0EB67D4-E807-11D0-958A-00C04FB925D3", KSNODETYPE_DEMUX);
  1005. #define KSNODETYPE_DEMUX DEFINE_GUIDNAMED(KSNODETYPE_DEMUX)
  1006. #define STATIC_KSNODETYPE_SUM\
  1007. 0xDA441A60L, 0xC556, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1008. DEFINE_GUIDSTRUCT("DA441A60-C556-11D0-8A2B-00A0C9255AC1", KSNODETYPE_SUM);
  1009. #define KSNODETYPE_SUM DEFINE_GUIDNAMED(KSNODETYPE_SUM)
  1010. #define STATIC_KSNODETYPE_MUTE\
  1011. 0x02B223C0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1012. DEFINE_GUIDSTRUCT("02B223C0-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_MUTE);
  1013. #define KSNODETYPE_MUTE DEFINE_GUIDNAMED(KSNODETYPE_MUTE)
  1014. #define STATIC_KSNODETYPE_VOLUME\
  1015. 0x3A5ACC00L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1016. DEFINE_GUIDSTRUCT("3A5ACC00-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_VOLUME);
  1017. #define KSNODETYPE_VOLUME DEFINE_GUIDNAMED(KSNODETYPE_VOLUME)
  1018. #define STATIC_KSNODETYPE_TONE\
  1019. 0x7607E580L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1020. DEFINE_GUIDSTRUCT("7607E580-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_TONE);
  1021. #define KSNODETYPE_TONE DEFINE_GUIDNAMED(KSNODETYPE_TONE)
  1022. #define STATIC_KSNODETYPE_EQUALIZER\
  1023. 0x9D41B4A0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1024. DEFINE_GUIDSTRUCT("9D41B4A0-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_EQUALIZER);
  1025. #define KSNODETYPE_EQUALIZER DEFINE_GUIDNAMED(KSNODETYPE_EQUALIZER)
  1026. #define STATIC_KSNODETYPE_AGC\
  1027. 0xE88C9BA0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1028. DEFINE_GUIDSTRUCT("E88C9BA0-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_AGC);
  1029. #define KSNODETYPE_AGC DEFINE_GUIDNAMED(KSNODETYPE_AGC)
  1030. #define STATIC_KSNODETYPE_NOISE_SUPPRESS\
  1031. 0xe07f903f, 0x62fd, 0x4e60, 0x8c, 0xdd, 0xde, 0xa7, 0x23, 0x66, 0x65, 0xb5
  1032. DEFINE_GUIDSTRUCT("E07F903F-62FD-4e60-8CDD-DEA7236665B5", KSNODETYPE_NOISE_SUPPRESS);
  1033. #define KSNODETYPE_NOISE_SUPPRESS DEFINE_GUIDNAMED(KSNODETYPE_NOISE_SUPPRESS)
  1034. #define STATIC_KSNODETYPE_DELAY\
  1035. 0x144981E0L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1036. DEFINE_GUIDSTRUCT("144981E0-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_DELAY);
  1037. #define KSNODETYPE_DELAY DEFINE_GUIDNAMED(KSNODETYPE_DELAY)
  1038. #define STATIC_KSNODETYPE_LOUDNESS\
  1039. 0x41887440L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1040. DEFINE_GUIDSTRUCT("41887440-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_LOUDNESS);
  1041. #define KSNODETYPE_LOUDNESS DEFINE_GUIDNAMED(KSNODETYPE_LOUDNESS)
  1042. #define STATIC_KSNODETYPE_PROLOGIC_DECODER\
  1043. 0x831C2C80L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1044. DEFINE_GUIDSTRUCT("831C2C80-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_PROLOGIC_DECODER);
  1045. #define KSNODETYPE_PROLOGIC_DECODER DEFINE_GUIDNAMED(KSNODETYPE_PROLOGIC_DECODER)
  1046. #define STATIC_KSNODETYPE_STEREO_WIDE\
  1047. 0xA9E69800L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1048. DEFINE_GUIDSTRUCT("A9E69800-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_STEREO_WIDE);
  1049. #define KSNODETYPE_STEREO_WIDE DEFINE_GUIDNAMED(KSNODETYPE_STEREO_WIDE)
  1050. #define STATIC_KSNODETYPE_STEREO_ENHANCE\
  1051. 0xAF6878ACL, 0xE83F, 0x11D0, 0x95, 0x8A, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1052. DEFINE_GUIDSTRUCT("AF6878AC-E83F-11D0-958A-00C04FB925D3", KSNODETYPE_STEREO_ENHANCE);
  1053. #define KSNODETYPE_STEREO_ENHANCE DEFINE_GUIDNAMED(KSNODETYPE_STEREO_ENHANCE)
  1054. #define STATIC_KSNODETYPE_REVERB\
  1055. 0xEF0328E0L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1056. DEFINE_GUIDSTRUCT("EF0328E0-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_REVERB);
  1057. #define KSNODETYPE_REVERB DEFINE_GUIDNAMED(KSNODETYPE_REVERB)
  1058. #define STATIC_KSNODETYPE_CHORUS\
  1059. 0x20173F20L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1060. DEFINE_GUIDSTRUCT("20173F20-C559-11D0-8A2B-00A0C9255AC1", KSNODETYPE_CHORUS);
  1061. #define KSNODETYPE_CHORUS DEFINE_GUIDNAMED(KSNODETYPE_CHORUS)
  1062. #define STATIC_KSNODETYPE_3D_EFFECTS\
  1063. 0x55515860L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1064. DEFINE_GUIDSTRUCT("55515860-C559-11D0-8A2B-00A0C9255AC1", KSNODETYPE_3D_EFFECTS);
  1065. #define KSNODETYPE_3D_EFFECTS DEFINE_GUIDNAMED(KSNODETYPE_3D_EFFECTS)
  1066. #define STATIC_KSNODETYPE_ACOUSTIC_ECHO_CANCEL STATIC_KSCATEGORY_ACOUSTIC_ECHO_CANCEL
  1067. #define KSNODETYPE_ACOUSTIC_ECHO_CANCEL KSCATEGORY_ACOUSTIC_ECHO_CANCEL
  1068. #define STATIC_KSALGORITHMINSTANCE_SYSTEM_ACOUSTIC_ECHO_CANCEL\
  1069. 0x1c22c56dL, 0x9879, 0x4f5b, 0xa3, 0x89, 0x27, 0x99, 0x6d, 0xdc, 0x28, 0x10
  1070. DEFINE_GUIDSTRUCT("1C22C56D-9879-4f5b-A389-27996DDC2810", KSALGORITHMINSTANCE_SYSTEM_ACOUSTIC_ECHO_CANCEL);
  1071. #define KSALGORITHMINSTANCE_SYSTEM_ACOUSTIC_ECHO_CANCEL DEFINE_GUIDNAMED(KSALGORITHMINSTANCE_SYSTEM_ACOUSTIC_ECHO_CANCEL)
  1072. #define STATIC_KSALGORITHMINSTANCE_SYSTEM_NOISE_SUPPRESS\
  1073. 0x5ab0882eL, 0x7274, 0x4516, 0x87, 0x7d, 0x4e, 0xee, 0x99, 0xba, 0x4f, 0xd0
  1074. DEFINE_GUIDSTRUCT("5AB0882E-7274-4516-877D-4EEE99BA4FD0", KSALGORITHMINSTANCE_SYSTEM_NOISE_SUPPRESS);
  1075. #define KSALGORITHMINSTANCE_SYSTEM_NOISE_SUPPRESS DEFINE_GUIDNAMED(KSALGORITHMINSTANCE_SYSTEM_NOISE_SUPPRESS)
  1076. #define STATIC_KSALGORITHMINSTANCE_SYSTEM_AGC\
  1077. 0x950e55b9L, 0x877c, 0x4c67, 0xbe, 0x8, 0xe4, 0x7b, 0x56, 0x11, 0x13, 0xa
  1078. DEFINE_GUIDSTRUCT("950E55B9-877C-4c67-BE08-E47B5611130A", KSALGORITHMINSTANCE_SYSTEM_AGC);
  1079. #define KSALGORITHMINSTANCE_SYSTEM_AGC DEFINE_GUIDNAMED(KSALGORITHMINSTANCE_SYSTEM_AGC)
  1080. #define STATIC_KSALGORITHMINSTANCE_SYSTEM_MICROPHONE_ARRAY_PROCESSOR\
  1081. 0xB6F5A0A0L, 0x9E61, 0x4F8C, 0x91, 0xE3, 0x76, 0xCF, 0xF, 0x3C, 0x47, 0x1F
  1082. DEFINE_GUIDSTRUCT("B6F5A0A0-9E61-4f8c-91E3-76CF0F3C471F", KSALGORITHMINSTANCE_SYSTEM_MICROPHONE_ARRAY_PROCESSOR);
  1083. #define KSALGORITHMINSTANCE_SYSTEM_MICROPHONE_ARRAY_PROCESSOR DEFINE_GUIDNAMED(KSALGORITHMINSTANCE_SYSTEM_MICROPHONE_ARRAY_PROCESSOR)
  1084. #define STATIC_KSNODETYPE_MICROPHONE_ARRAY_PROCESSOR STATIC_KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR
  1085. #define KSNODETYPE_MICROPHONE_ARRAY_PROCESSOR KSCATEGORY_MICROPHONE_ARRAY_PROCESSOR
  1086. #define STATIC_KSNODETYPE_DEV_SPECIFIC\
  1087. 0x941C7AC0L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
  1088. DEFINE_GUIDSTRUCT("941C7AC0-C559-11D0-8A2B-00A0C9255AC1", KSNODETYPE_DEV_SPECIFIC);
  1089. #define KSNODETYPE_DEV_SPECIFIC DEFINE_GUIDNAMED(KSNODETYPE_DEV_SPECIFIC)
  1090. #define STATIC_KSNODETYPE_PROLOGIC_ENCODER\
  1091. 0x8074C5B2L, 0x3C66, 0x11D2, 0xB4, 0x5A, 0x30, 0x78, 0x30, 0x2C, 0x20, 0x30
  1092. DEFINE_GUIDSTRUCT("8074C5B2-3C66-11D2-B45A-3078302C2030", KSNODETYPE_PROLOGIC_ENCODER);
  1093. #define KSNODETYPE_PROLOGIC_ENCODER DEFINE_GUIDNAMED(KSNODETYPE_PROLOGIC_ENCODER)
  1094. #define KSNODETYPE_SURROUND_ENCODER KSNODETYPE_PROLOGIC_ENCODER
  1095. #define STATIC_KSNODETYPE_PEAKMETER\
  1096. 0xa085651eL, 0x5f0d, 0x4b36, 0xa8, 0x69, 0xd1, 0x95, 0xd6, 0xab, 0x4b, 0x9e
  1097. DEFINE_GUIDSTRUCT("A085651E-5F0D-4b36-A869-D195D6AB4B9E", KSNODETYPE_PEAKMETER);
  1098. #define KSNODETYPE_PEAKMETER DEFINE_GUIDNAMED(KSNODETYPE_PEAKMETER)
  1099. //===========================================================================
  1100. // Topology Node Name GUIDs for common audio nodes
  1101. #define STATIC_KSAUDFNAME_BASS\
  1102. 0x185FEDE0L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1103. DEFINE_GUIDSTRUCT("185FEDE0-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_BASS);
  1104. #define KSAUDFNAME_BASS DEFINE_GUIDNAMED(KSAUDFNAME_BASS)
  1105. #define STATIC_KSAUDFNAME_TREBLE\
  1106. 0x185FEDE1L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1107. DEFINE_GUIDSTRUCT("185FEDE1-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_TREBLE);
  1108. #define KSAUDFNAME_TREBLE DEFINE_GUIDNAMED(KSAUDFNAME_TREBLE)
  1109. #define STATIC_KSAUDFNAME_3D_STEREO\
  1110. 0x185FEDE2L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1111. DEFINE_GUIDSTRUCT("185FEDE2-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_3D_STEREO);
  1112. #define KSAUDFNAME_3D_STEREO DEFINE_GUIDNAMED(KSAUDFNAME_3D_STEREO)
  1113. #define STATIC_KSAUDFNAME_MASTER_VOLUME\
  1114. 0x185FEDE3L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1115. DEFINE_GUIDSTRUCT("185FEDE3-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MASTER_VOLUME);
  1116. #define KSAUDFNAME_MASTER_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MASTER_VOLUME)
  1117. #define STATIC_KSAUDFNAME_MASTER_MUTE\
  1118. 0x185FEDE4L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1119. DEFINE_GUIDSTRUCT("185FEDE4-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MASTER_MUTE);
  1120. #define KSAUDFNAME_MASTER_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MASTER_MUTE)
  1121. #define STATIC_KSAUDFNAME_WAVE_VOLUME\
  1122. 0x185FEDE5L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1123. DEFINE_GUIDSTRUCT("185FEDE5-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_VOLUME);
  1124. #define KSAUDFNAME_WAVE_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_VOLUME)
  1125. #define STATIC_KSAUDFNAME_WAVE_MUTE\
  1126. 0x185FEDE6L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1127. DEFINE_GUIDSTRUCT("185FEDE6-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_MUTE);
  1128. #define KSAUDFNAME_WAVE_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_MUTE)
  1129. #define STATIC_KSAUDFNAME_MIDI_VOLUME\
  1130. 0x185FEDE7L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1131. DEFINE_GUIDSTRUCT("185FEDE7-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIDI_VOLUME);
  1132. #define KSAUDFNAME_MIDI_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIDI_VOLUME)
  1133. #define STATIC_KSAUDFNAME_MIDI_MUTE\
  1134. 0x185FEDE8L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1135. DEFINE_GUIDSTRUCT("185FEDE8-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIDI_MUTE);
  1136. #define KSAUDFNAME_MIDI_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MIDI_MUTE)
  1137. #define STATIC_KSAUDFNAME_CD_VOLUME\
  1138. 0x185FEDE9L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1139. DEFINE_GUIDSTRUCT("185FEDE9-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_VOLUME);
  1140. #define KSAUDFNAME_CD_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_CD_VOLUME)
  1141. #define STATIC_KSAUDFNAME_CD_MUTE\
  1142. 0x185FEDEAL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1143. DEFINE_GUIDSTRUCT("185FEDEA-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_MUTE);
  1144. #define KSAUDFNAME_CD_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_CD_MUTE)
  1145. #define STATIC_KSAUDFNAME_LINE_VOLUME\
  1146. 0x185FEDEBL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1147. DEFINE_GUIDSTRUCT("185FEDEB-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_VOLUME);
  1148. #define KSAUDFNAME_LINE_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_LINE_VOLUME)
  1149. #define STATIC_KSAUDFNAME_LINE_MUTE\
  1150. 0x185FEDECL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1151. DEFINE_GUIDSTRUCT("185FEDEC-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_MUTE);
  1152. #define KSAUDFNAME_LINE_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_LINE_MUTE)
  1153. #define STATIC_KSAUDFNAME_MIC_VOLUME\
  1154. 0x185FEDEDL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1155. DEFINE_GUIDSTRUCT("185FEDED-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIC_VOLUME);
  1156. #define KSAUDFNAME_MIC_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIC_VOLUME)
  1157. #define STATIC_KSAUDFNAME_MIC_MUTE\
  1158. 0x185FEDEEL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1159. DEFINE_GUIDSTRUCT("185FEDEE-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIC_MUTE);
  1160. #define KSAUDFNAME_MIC_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MIC_MUTE)
  1161. #define STATIC_KSAUDFNAME_RECORDING_SOURCE\
  1162. 0x185FEDEFL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1163. DEFINE_GUIDSTRUCT("185FEDEF-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_RECORDING_SOURCE);
  1164. #define KSAUDFNAME_RECORDING_SOURCE DEFINE_GUIDNAMED(KSAUDFNAME_RECORDING_SOURCE)
  1165. #define STATIC_KSAUDFNAME_PC_SPEAKER_VOLUME\
  1166. 0x185FEDF0L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1167. DEFINE_GUIDSTRUCT("185FEDF0-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_PC_SPEAKER_VOLUME);
  1168. #define KSAUDFNAME_PC_SPEAKER_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_PC_SPEAKER_VOLUME)
  1169. #define STATIC_KSAUDFNAME_PC_SPEAKER_MUTE\
  1170. 0x185FEDF1L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1171. DEFINE_GUIDSTRUCT("185FEDF1-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_PC_SPEAKER_MUTE);
  1172. #define KSAUDFNAME_PC_SPEAKER_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_PC_SPEAKER_MUTE)
  1173. #define STATIC_KSAUDFNAME_MIDI_IN_VOLUME\
  1174. 0x185FEDF2L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1175. DEFINE_GUIDSTRUCT("185FEDF2-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIDI_IN_VOLUME);
  1176. #define KSAUDFNAME_MIDI_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIDI_IN_VOLUME)
  1177. #define STATIC_KSAUDFNAME_CD_IN_VOLUME\
  1178. 0x185FEDF3L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1179. DEFINE_GUIDSTRUCT("185FEDF3-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_IN_VOLUME);
  1180. #define KSAUDFNAME_CD_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_CD_IN_VOLUME)
  1181. #define STATIC_KSAUDFNAME_LINE_IN_VOLUME\
  1182. 0x185FEDF4L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1183. DEFINE_GUIDSTRUCT("185FEDF4-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_IN_VOLUME);
  1184. #define KSAUDFNAME_LINE_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_LINE_IN_VOLUME)
  1185. #define STATIC_KSAUDFNAME_MIC_IN_VOLUME\
  1186. 0x185FEDF5L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1187. DEFINE_GUIDSTRUCT("185FEDF5-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIC_IN_VOLUME);
  1188. #define KSAUDFNAME_MIC_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIC_IN_VOLUME)
  1189. #define STATIC_KSAUDFNAME_WAVE_IN_VOLUME\
  1190. 0x185FEDF6L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1191. DEFINE_GUIDSTRUCT("185FEDF6-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_IN_VOLUME);
  1192. #define KSAUDFNAME_WAVE_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_IN_VOLUME)
  1193. #define STATIC_KSAUDFNAME_VOLUME_CONTROL\
  1194. 0x185FEDF7L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1195. DEFINE_GUIDSTRUCT("185FEDF7-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_VOLUME_CONTROL);
  1196. #define KSAUDFNAME_VOLUME_CONTROL DEFINE_GUIDNAMED(KSAUDFNAME_VOLUME_CONTROL)
  1197. #define STATIC_KSAUDFNAME_MIDI\
  1198. 0x185FEDF8L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1199. DEFINE_GUIDSTRUCT("185FEDF8-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIDI);
  1200. #define KSAUDFNAME_MIDI DEFINE_GUIDNAMED(KSAUDFNAME_MIDI)
  1201. #define STATIC_KSAUDFNAME_LINE_IN\
  1202. 0x185FEDF9L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1203. DEFINE_GUIDSTRUCT("185FEDF9-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_IN);
  1204. #define KSAUDFNAME_LINE_IN DEFINE_GUIDNAMED(KSAUDFNAME_LINE_IN)
  1205. #define STATIC_KSAUDFNAME_RECORDING_CONTROL\
  1206. 0x185FEDFAL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1207. DEFINE_GUIDSTRUCT("185FEDFA-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_RECORDING_CONTROL);
  1208. #define KSAUDFNAME_RECORDING_CONTROL DEFINE_GUIDNAMED(KSAUDFNAME_RECORDING_CONTROL)
  1209. #define STATIC_KSAUDFNAME_CD_AUDIO\
  1210. 0x185FEDFBL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1211. DEFINE_GUIDSTRUCT("185FEDFB-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_AUDIO);
  1212. #define KSAUDFNAME_CD_AUDIO DEFINE_GUIDNAMED(KSAUDFNAME_CD_AUDIO)
  1213. #define STATIC_KSAUDFNAME_AUX_VOLUME\
  1214. 0x185FEDFCL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1215. DEFINE_GUIDSTRUCT("185FEDFC-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_AUX_VOLUME);
  1216. #define KSAUDFNAME_AUX_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_AUX_VOLUME)
  1217. #define STATIC_KSAUDFNAME_AUX_MUTE\
  1218. 0x185FEDFDL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1219. DEFINE_GUIDSTRUCT("185FEDFD-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_AUX_MUTE);
  1220. #define KSAUDFNAME_AUX_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_AUX_MUTE)
  1221. #define STATIC_KSAUDFNAME_AUX\
  1222. 0x185FEDFEL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1223. DEFINE_GUIDSTRUCT("185FEDFE-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_AUX);
  1224. #define KSAUDFNAME_AUX DEFINE_GUIDNAMED(KSAUDFNAME_AUX)
  1225. #define STATIC_KSAUDFNAME_PC_SPEAKER\
  1226. 0x185FEDFFL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1227. DEFINE_GUIDSTRUCT("185FEDFF-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_PC_SPEAKER);
  1228. #define KSAUDFNAME_PC_SPEAKER DEFINE_GUIDNAMED(KSAUDFNAME_PC_SPEAKER)
  1229. #define STATIC_KSAUDFNAME_WAVE_OUT_MIX\
  1230. 0x185FEE00L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1231. DEFINE_GUIDSTRUCT("185FEE00-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_OUT_MIX);
  1232. #define KSAUDFNAME_WAVE_OUT_MIX DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_OUT_MIX)
  1233. #define STATIC_KSAUDFNAME_MONO_OUT\
  1234. 0xf9b41dc3L, 0x96e2, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1235. DEFINE_GUIDSTRUCT("F9B41DC3-96E2-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_OUT);
  1236. #define KSAUDFNAME_MONO_OUT DEFINE_GUIDNAMED(KSAUDFNAME_MONO_OUT)
  1237. #define STATIC_KSAUDFNAME_STEREO_MIX\
  1238. 0xdff077L, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1239. DEFINE_GUIDSTRUCT("00DFF077-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_STEREO_MIX);
  1240. #define KSAUDFNAME_STEREO_MIX DEFINE_GUIDNAMED(KSAUDFNAME_STEREO_MIX)
  1241. #define STATIC_KSAUDFNAME_MONO_MIX\
  1242. 0xdff078L, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1243. DEFINE_GUIDSTRUCT("00DFF078-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_MIX);
  1244. #define KSAUDFNAME_MONO_MIX DEFINE_GUIDNAMED(KSAUDFNAME_MONO_MIX)
  1245. #define STATIC_KSAUDFNAME_MONO_OUT_VOLUME\
  1246. 0x1ad247ebL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1247. DEFINE_GUIDSTRUCT("1AD247EB-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_OUT_VOLUME);
  1248. #define KSAUDFNAME_MONO_OUT_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MONO_OUT_VOLUME)
  1249. #define STATIC_KSAUDFNAME_MONO_OUT_MUTE\
  1250. 0x1ad247ecL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1251. DEFINE_GUIDSTRUCT("1AD247EC-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_OUT_MUTE);
  1252. #define KSAUDFNAME_MONO_OUT_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MONO_OUT_MUTE)
  1253. #define STATIC_KSAUDFNAME_STEREO_MIX_VOLUME\
  1254. 0x1ad247edL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1255. DEFINE_GUIDSTRUCT("1AD247ED-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_STEREO_MIX_VOLUME);
  1256. #define KSAUDFNAME_STEREO_MIX_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_STEREO_MIX_VOLUME)
  1257. #define STATIC_KSAUDFNAME_STEREO_MIX_MUTE\
  1258. 0x22b0eafdL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1259. DEFINE_GUIDSTRUCT("22B0EAFD-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_STEREO_MIX_MUTE);
  1260. #define KSAUDFNAME_STEREO_MIX_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_STEREO_MIX_MUTE)
  1261. #define STATIC_KSAUDFNAME_MONO_MIX_VOLUME\
  1262. 0x22b0eafeL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1263. DEFINE_GUIDSTRUCT("22B0EAFE-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_MIX_VOLUME);
  1264. #define KSAUDFNAME_MONO_MIX_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MONO_MIX_VOLUME)
  1265. #define STATIC_KSAUDFNAME_MONO_MIX_MUTE\
  1266. 0x2bc31d69L, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1267. DEFINE_GUIDSTRUCT("2BC31D69-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MONO_MIX_MUTE);
  1268. #define KSAUDFNAME_MONO_MIX_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MONO_MIX_MUTE)
  1269. #define STATIC_KSAUDFNAME_MICROPHONE_BOOST\
  1270. 0x2bc31d6aL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1271. DEFINE_GUIDSTRUCT("2BC31D6A-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MICROPHONE_BOOST);
  1272. #define KSAUDFNAME_MICROPHONE_BOOST DEFINE_GUIDNAMED(KSAUDFNAME_MICROPHONE_BOOST)
  1273. #define STATIC_KSAUDFNAME_ALTERNATE_MICROPHONE\
  1274. 0x2bc31d6bL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1275. DEFINE_GUIDSTRUCT("2BC31D6B-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_ALTERNATE_MICROPHONE);
  1276. #define KSAUDFNAME_ALTERNATE_MICROPHONE DEFINE_GUIDNAMED(KSAUDFNAME_ALTERNATE_MICROPHONE)
  1277. #define STATIC_KSAUDFNAME_3D_DEPTH\
  1278. 0x63ff5747L, 0x991f, 0x11d2, 0xac, 0x4d, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1279. DEFINE_GUIDSTRUCT("63FF5747-991F-11d2-AC4D-00C04F8EFB68", KSAUDFNAME_3D_DEPTH);
  1280. #define KSAUDFNAME_3D_DEPTH DEFINE_GUIDNAMED(KSAUDFNAME_3D_DEPTH)
  1281. #define STATIC_KSAUDFNAME_3D_CENTER\
  1282. 0x9f0670b4L, 0x991f, 0x11d2, 0xac, 0x4d, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1283. DEFINE_GUIDSTRUCT("9F0670B4-991F-11d2-AC4D-00C04F8EFB68", KSAUDFNAME_3D_CENTER);
  1284. #define KSAUDFNAME_3D_CENTER DEFINE_GUIDNAMED(KSAUDFNAME_3D_CENTER)
  1285. #define STATIC_KSAUDFNAME_VIDEO_VOLUME\
  1286. 0x9b46e708L, 0x992a, 0x11d2, 0xac, 0x4d, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1287. DEFINE_GUIDSTRUCT("9B46E708-992A-11d2-AC4D-00C04F8EFB68", KSAUDFNAME_VIDEO_VOLUME);
  1288. #define KSAUDFNAME_VIDEO_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_VIDEO_VOLUME)
  1289. #define STATIC_KSAUDFNAME_VIDEO_MUTE\
  1290. 0x9b46e709L, 0x992a, 0x11d2, 0xac, 0x4d, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1291. DEFINE_GUIDSTRUCT("9B46E709-992A-11d2-AC4D-00C04F8EFB68", KSAUDFNAME_VIDEO_MUTE);
  1292. #define KSAUDFNAME_VIDEO_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_VIDEO_MUTE)
  1293. #define STATIC_KSAUDFNAME_VIDEO\
  1294. 0x915daec4L, 0xa434, 0x11d2, 0xac, 0x52, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
  1295. DEFINE_GUIDSTRUCT("915DAEC4-A434-11d2-AC52-00C04F8EFB68", KSAUDFNAME_VIDEO);
  1296. #define KSAUDFNAME_VIDEO DEFINE_GUIDNAMED(KSAUDFNAME_VIDEO)
  1297. #define STATIC_KSAUDFNAME_PEAKMETER\
  1298. 0x57e24340L, 0xfc5b, 0x4612, 0xa5, 0x62, 0x72, 0xb1, 0x1a, 0x29, 0xdf, 0xae
  1299. DEFINE_GUIDSTRUCT("57E24340-FC5B-4612-A562-72B11A29DFAE", KSAUDFNAME_PEAKMETER);
  1300. #define KSAUDFNAME_PEAKMETER DEFINE_GUIDNAMED(KSAUDFNAME_PEAKMETER)
  1301. // Internal topology node pin definitions
  1302. #define KSNODEPIN_STANDARD_IN 1
  1303. #define KSNODEPIN_STANDARD_OUT 0
  1304. #define KSNODEPIN_SUM_MUX_IN 1 // can be >= 1
  1305. #define KSNODEPIN_SUM_MUX_OUT 0
  1306. #define KSNODEPIN_DEMUX_IN 0
  1307. #define KSNODEPIN_DEMUX_OUT 1 // can be >= 1
  1308. #define KSNODEPIN_AEC_RENDER_IN 1
  1309. #define KSNODEPIN_AEC_RENDER_OUT 0
  1310. #define KSNODEPIN_AEC_CAPTURE_IN 2
  1311. #define KSNODEPIN_AEC_CAPTURE_OUT 3
  1312. //===========================================================================
  1313. //===========================================================================
  1314. #define STATIC_KSMETHODSETID_Wavetable\
  1315. 0xDCEF31EBL, 0xD907, 0x11D0, 0x95, 0x83, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1316. DEFINE_GUIDSTRUCT("DCEF31EB-D907-11D0-9583-00C04FB925D3", KSMETHODSETID_Wavetable);
  1317. #define KSMETHODSETID_Wavetable DEFINE_GUIDNAMED(KSMETHODSETID_Wavetable)
  1318. typedef enum {
  1319. KSMETHOD_WAVETABLE_WAVE_ALLOC,
  1320. KSMETHOD_WAVETABLE_WAVE_FREE,
  1321. KSMETHOD_WAVETABLE_WAVE_FIND,
  1322. KSMETHOD_WAVETABLE_WAVE_WRITE
  1323. } KSMETHOD_WAVETABLE;
  1324. typedef struct {
  1325. KSIDENTIFIER Identifier; // wave identifier
  1326. ULONG Size; // wave size
  1327. BOOL Looped; // wave looped flag
  1328. ULONG LoopPoint; // wave loop point
  1329. BOOL InROM; // wave InROM flag
  1330. KSDATAFORMAT Format; // wave format
  1331. } KSWAVETABLE_WAVE_DESC, *PKSWAVETABLE_WAVE_DESC;
  1332. //===========================================================================
  1333. //===========================================================================
  1334. /*
  1335. Property sets and items
  1336. */
  1337. //===========================================================================
  1338. //===========================================================================
  1339. #define STATIC_KSPROPSETID_Acoustic_Echo_Cancel\
  1340. 0xd7a4af8bL, 0x3dc1, 0x4902, 0x91, 0xea, 0x8a, 0x15, 0xc9, 0x0e, 0x05, 0xb2
  1341. DEFINE_GUIDSTRUCT("D7A4AF8B-3DC1-4902-91EA-8A15C90E05B2", KSPROPSETID_Acoustic_Echo_Cancel);
  1342. #define KSPROPSETID_Acoustic_Echo_Cancel DEFINE_GUIDNAMED(KSPROPSETID_Acoustic_Echo_Cancel)
  1343. typedef enum {
  1344. KSPROPERTY_AEC_NOISE_FILL_ENABLE = 0,
  1345. KSPROPERTY_AEC_STATUS,
  1346. KSPROPERTY_AEC_MODE
  1347. } KSPROPERTY_AEC;
  1348. #define AEC_STATUS_FD_HISTORY_UNINITIALIZED 0x0
  1349. #define AEC_STATUS_FD_HISTORY_CONTINUOUSLY_CONVERGED 0x1
  1350. #define AEC_STATUS_FD_HISTORY_PREVIOUSLY_DIVERGED 0x2
  1351. #define AEC_STATUS_FD_CURRENTLY_CONVERGED 0x8
  1352. #define AEC_MODE_PASS_THROUGH 0x0
  1353. #define AEC_MODE_HALF_DUPLEX 0x1
  1354. #define AEC_MODE_FULL_DUPLEX 0x2
  1355. //===========================================================================
  1356. //===========================================================================
  1357. #define STATIC_KSPROPSETID_Wave_Queued\
  1358. 0x16a15b10L, 0x16f0, 0x11d0, 0xa1, 0x95, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4
  1359. DEFINE_GUIDSTRUCT("16a15b10-16f0-11d0-a195-0020afd156e4", KSPROPSETID_Wave_Queued);
  1360. #define KSPROPSETID_Wave_Queued DEFINE_GUIDNAMED(KSPROPSETID_Wave_Queued)
  1361. #define KSPROPERTY_WAVE_QUEUED_POSITION 0x00000001
  1362. #define STATIC_KSMETHODSETID_Wave_Queued\
  1363. 0x7432c160L, 0x8827, 0x11cf, 0xa1, 0x02, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4
  1364. DEFINE_GUIDSTRUCT("7432c160-8827-11cf-a102-0020afd156e4", KSMETHODSETID_Wave_Queued);
  1365. #define KSMETHODSETID_Wave_Queued DEFINE_GUIDNAMED(KSMETHODSETID_Wave_Queued)
  1366. #define KSMETHOD_WAVE_QUEUED_BREAKLOOP 0x00000001
  1367. #define STATIC_KSPROPSETID_Wave\
  1368. 0x924e54b0L, 0x630f, 0x11cf, 0xad, 0xa7, 0x08, 0x00, 0x3e, 0x30, 0x49, 0x4a
  1369. DEFINE_GUIDSTRUCT("924e54b0-630f-11cf-ada7-08003e30494a", KSPROPSETID_Wave);
  1370. #define KSPROPSETID_Wave DEFINE_GUIDNAMED(KSPROPSETID_Wave)
  1371. typedef enum {
  1372. KSPROPERTY_WAVE_COMPATIBLE_CAPABILITIES,
  1373. KSPROPERTY_WAVE_INPUT_CAPABILITIES,
  1374. KSPROPERTY_WAVE_OUTPUT_CAPABILITIES,
  1375. KSPROPERTY_WAVE_BUFFER,
  1376. KSPROPERTY_WAVE_FREQUENCY,
  1377. KSPROPERTY_WAVE_VOLUME,
  1378. KSPROPERTY_WAVE_PAN
  1379. } KSPROPERTY_WAVE;
  1380. typedef struct {
  1381. ULONG ulDeviceType;
  1382. } KSWAVE_COMPATCAPS, *PKSWAVE_COMPATCAPS;
  1383. #define KSWAVE_COMPATCAPS_INPUT 0x00000000
  1384. #define KSWAVE_COMPATCAPS_OUTPUT 0x00000001
  1385. typedef struct {
  1386. ULONG MaximumChannelsPerConnection;
  1387. ULONG MinimumBitsPerSample;
  1388. ULONG MaximumBitsPerSample;
  1389. ULONG MinimumSampleFrequency;
  1390. ULONG MaximumSampleFrequency;
  1391. ULONG TotalConnections;
  1392. ULONG ActiveConnections;
  1393. } KSWAVE_INPUT_CAPABILITIES, *PKSWAVE_INPUT_CAPABILITIES;
  1394. typedef struct {
  1395. ULONG MaximumChannelsPerConnection;
  1396. ULONG MinimumBitsPerSample;
  1397. ULONG MaximumBitsPerSample;
  1398. ULONG MinimumSampleFrequency;
  1399. ULONG MaximumSampleFrequency;
  1400. ULONG TotalConnections;
  1401. ULONG StaticConnections;
  1402. ULONG StreamingConnections;
  1403. ULONG ActiveConnections;
  1404. ULONG ActiveStaticConnections;
  1405. ULONG ActiveStreamingConnections;
  1406. ULONG Total3DConnections;
  1407. ULONG Static3DConnections;
  1408. ULONG Streaming3DConnections;
  1409. ULONG Active3DConnections;
  1410. ULONG ActiveStatic3DConnections;
  1411. ULONG ActiveStreaming3DConnections;
  1412. ULONG TotalSampleMemory;
  1413. ULONG FreeSampleMemory;
  1414. ULONG LargestFreeContiguousSampleMemory;
  1415. } KSWAVE_OUTPUT_CAPABILITIES, *PKSWAVE_OUTPUT_CAPABILITIES;
  1416. typedef struct {
  1417. LONG LeftAttenuation;
  1418. LONG RightAttenuation;
  1419. } KSWAVE_VOLUME, *PKSWAVE_VOLUME;
  1420. #define KSWAVE_BUFFER_ATTRIBUTEF_LOOPING 0x00000001
  1421. #define KSWAVE_BUFFER_ATTRIBUTEF_STATIC 0x00000002
  1422. typedef struct {
  1423. ULONG Attributes;
  1424. ULONG BufferSize;
  1425. PVOID BufferAddress;
  1426. } KSWAVE_BUFFER, *PKSWAVE_BUFFER;
  1427. //===========================================================================
  1428. //===========================================================================
  1429. #define STATIC_KSMUSIC_TECHNOLOGY_PORT\
  1430. 0x86C92E60L, 0x62E8, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1431. DEFINE_GUIDSTRUCT("86C92E60-62E8-11CF-A5D6-28DB04C10000", KSMUSIC_TECHNOLOGY_PORT);
  1432. #define KSMUSIC_TECHNOLOGY_PORT DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_PORT)
  1433. #define STATIC_KSMUSIC_TECHNOLOGY_SQSYNTH\
  1434. 0x0ECF4380L, 0x62E9, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1435. DEFINE_GUIDSTRUCT("0ECF4380-62E9-11CF-A5D6-28DB04C10000", KSMUSIC_TECHNOLOGY_SQSYNTH);
  1436. #define KSMUSIC_TECHNOLOGY_SQSYNTH DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_SQSYNTH)
  1437. #define STATIC_KSMUSIC_TECHNOLOGY_FMSYNTH\
  1438. 0x252C5C80L, 0x62E9, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1439. DEFINE_GUIDSTRUCT("252C5C80-62E9-11CF-A5D6-28DB04C10000", KSMUSIC_TECHNOLOGY_FMSYNTH);
  1440. #define KSMUSIC_TECHNOLOGY_FMSYNTH DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_FMSYNTH)
  1441. #define STATIC_KSMUSIC_TECHNOLOGY_WAVETABLE\
  1442. 0x394EC7C0L, 0x62E9, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1443. DEFINE_GUIDSTRUCT("394EC7C0-62E9-11CF-A5D6-28DB04C10000", KSMUSIC_TECHNOLOGY_WAVETABLE);
  1444. #define KSMUSIC_TECHNOLOGY_WAVETABLE DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_WAVETABLE)
  1445. #define STATIC_KSMUSIC_TECHNOLOGY_SWSYNTH\
  1446. 0x37407736L, 0x3620, 0x11D1, 0x85, 0xD3, 0x00, 0x00, 0xF8, 0x75, 0x43, 0x80
  1447. DEFINE_GUIDSTRUCT("37407736-3620-11D1-85D3-0000F8754380", KSMUSIC_TECHNOLOGY_SWSYNTH);
  1448. #define KSMUSIC_TECHNOLOGY_SWSYNTH DEFINE_GUIDNAMED(KSMUSIC_TECHNOLOGY_SWSYNTH)
  1449. #define STATIC_KSPROPSETID_WaveTable\
  1450. 0x8539E660L, 0x62E9, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1451. DEFINE_GUIDSTRUCT("8539E660-62E9-11CF-A5D6-28DB04C10000", KSPROPSETID_WaveTable);
  1452. #define KSPROPSETID_WaveTable DEFINE_GUIDNAMED(KSPROPSETID_WaveTable)
  1453. typedef enum {
  1454. KSPROPERTY_WAVETABLE_LOAD_SAMPLE,
  1455. KSPROPERTY_WAVETABLE_UNLOAD_SAMPLE,
  1456. KSPROPERTY_WAVETABLE_MEMORY,
  1457. KSPROPERTY_WAVETABLE_VERSION
  1458. } KSPROPERTY_WAVETABLE;
  1459. typedef struct {
  1460. KSDATARANGE DataRange;
  1461. GUID Technology;
  1462. ULONG Channels;
  1463. ULONG Notes;
  1464. ULONG ChannelMask;
  1465. } KSDATARANGE_MUSIC, *PKSDATARANGE_MUSIC;
  1466. //===========================================================================
  1467. #define STATIC_KSEVENTSETID_Cyclic\
  1468. 0x142C1AC0L, 0x072A, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1469. DEFINE_GUIDSTRUCT("142C1AC0-072A-11D0-A5D6-28DB04C10000", KSEVENTSETID_Cyclic);
  1470. #define KSEVENTSETID_Cyclic DEFINE_GUIDNAMED(KSEVENTSETID_Cyclic)
  1471. typedef enum {
  1472. KSEVENT_CYCLIC_TIME_INTERVAL,
  1473. } KSEVENT_CYCLIC_TIME;
  1474. #define STATIC_KSPROPSETID_Cyclic\
  1475. 0x3FFEAEA0L, 0x2BEE, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1476. DEFINE_GUIDSTRUCT("3FFEAEA0-2BEE-11CF-A5D6-28DB04C10000", KSPROPSETID_Cyclic);
  1477. #define KSPROPSETID_Cyclic DEFINE_GUIDNAMED(KSPROPSETID_Cyclic)
  1478. typedef enum {
  1479. KSPROPERTY_CYCLIC_POSITION,
  1480. } KSPROPERTY_CYCLIC;
  1481. //===========================================================================
  1482. #define STATIC_KSEVENTSETID_AudioControlChange\
  1483. 0xE85E9698L, 0xFA2F, 0x11D1, 0x95, 0xBD, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
  1484. DEFINE_GUIDSTRUCT("E85E9698-FA2F-11D1-95BD-00C04FB925D3", KSEVENTSETID_AudioControlChange);
  1485. #define KSEVENTSETID_AudioControlChange DEFINE_GUIDNAMED(KSEVENTSETID_AudioControlChange)
  1486. typedef enum {
  1487. KSEVENT_CONTROL_CHANGE,
  1488. } KSEVENT_AUDIO_CONTROL_CHANGE;
  1489. //===========================================================================
  1490. #define STATIC_KSEVENTSETID_LoopedStreaming\
  1491. 0x4682B940L, 0xC6EF, 0x11D0, 0x96, 0xD8, 0x00, 0xAA, 0x00, 0x51, 0xE5, 0x1D
  1492. DEFINE_GUIDSTRUCT("4682B940-C6EF-11D0-96D8-00AA0051E51D", KSEVENTSETID_LoopedStreaming);
  1493. #define KSEVENTSETID_LoopedStreaming DEFINE_GUIDNAMED(KSEVENTSETID_LoopedStreaming)
  1494. typedef enum {
  1495. KSEVENT_LOOPEDSTREAMING_POSITION,
  1496. } KSEVENT_LOOPEDSTREAMING;
  1497. typedef struct {
  1498. KSEVENTDATA KsEventData;
  1499. #if defined(_NTDDK_)
  1500. ULONGLONG Position;
  1501. #else // !_NTDDK_
  1502. DWORDLONG Position;
  1503. #endif // !_NTDDK_
  1504. } LOOPEDSTREAMING_POSITION_EVENT_DATA, *PLOOPEDSTREAMING_POSITION_EVENT_DATA ;
  1505. // @@BEGIN_DDKSPLIT
  1506. //===========================================================================
  1507. #define STATIC_KSEVENTSETID_Sysaudio \
  1508. 0x04800320L, 0x4491, 0x11D1, 0xA0, 0x50, 0x40, 0x57, 0x05, 0xC1, 0x00, 0x00
  1509. DEFINE_GUIDSTRUCT("04800320-4491-11D1-A050-405705C10000", KSEVENTSETID_Sysaudio);
  1510. #define KSEVENTSETID_Sysaudio DEFINE_GUIDNAMED(KSEVENTSETID_Sysaudio)
  1511. typedef enum {
  1512. KSEVENT_SYSAUDIO_ADDREMOVE_DEVICE,
  1513. KSEVENT_SYSAUDIO_CHANGE_DEVICE
  1514. } KSEVENT_SYSAUDIO;
  1515. // @@END_DDKSPLIT
  1516. //===========================================================================
  1517. #define STATIC_KSPROPSETID_Sysaudio\
  1518. 0xCBE3FAA0L, 0xCC75, 0x11D0, 0xB4, 0x65, 0x00, 0x00, 0x1A, 0x18, 0x18, 0xE6
  1519. DEFINE_GUIDSTRUCT("CBE3FAA0-CC75-11D0-B465-00001A1818E6", KSPROPSETID_Sysaudio);
  1520. #define KSPROPSETID_Sysaudio DEFINE_GUIDNAMED(KSPROPSETID_Sysaudio)
  1521. typedef enum {
  1522. KSPROPERTY_SYSAUDIO_DEVICE_COUNT = 1,
  1523. KSPROPERTY_SYSAUDIO_DEVICE_FRIENDLY_NAME = 2,
  1524. KSPROPERTY_SYSAUDIO_DEVICE_INSTANCE = 3,
  1525. KSPROPERTY_SYSAUDIO_DEVICE_INTERFACE_NAME = 4,
  1526. KSPROPERTY_SYSAUDIO_SELECT_GRAPH = 5,
  1527. KSPROPERTY_SYSAUDIO_CREATE_VIRTUAL_SOURCE = 6,
  1528. KSPROPERTY_SYSAUDIO_DEVICE_DEFAULT = 7,
  1529. // @@BEGIN_DDKSPLIT
  1530. KSPROPERTY_SYSAUDIO_ALWAYS_CREATE_VIRTUAL_SOURCE = 8,
  1531. KSPROPERTY_SYSAUDIO_ADDREMOVE_LOCK = 9,
  1532. KSPROPERTY_SYSAUDIO_ADDREMOVE_UNLOCK = 10,
  1533. KSPROPERTY_SYSAUDIO_RENDER_PIN_INSTANCES = 11,
  1534. KSPROPERTY_SYSAUDIO_RENDER_CONNECTION_INDEX = 12,
  1535. KSPROPERTY_SYSAUDIO_CREATE_VIRTUAL_SOURCE_ONLY = 13,
  1536. // @@END_DDKSPLIT
  1537. KSPROPERTY_SYSAUDIO_INSTANCE_INFO = 14,
  1538. // @@BEGIN_DDKSPLIT
  1539. KSPROPERTY_SYSAUDIO_PREFERRED_DEVICE = 15,
  1540. // @@END_DDKSPLIT
  1541. KSPROPERTY_SYSAUDIO_COMPONENT_ID = 16,
  1542. // @@BEGIN_DDKSPLIT
  1543. KSPROPERTY_SYSAUDIO_ADDREMOVE_GFX = 17
  1544. // @@END_DDKSPLIT
  1545. } KSPROPERTY_SYSAUDIO;
  1546. typedef struct {
  1547. KSPROPERTY Property;
  1548. GUID PinCategory;
  1549. GUID PinName;
  1550. } SYSAUDIO_CREATE_VIRTUAL_SOURCE, *PSYSAUDIO_CREATE_VIRTUAL_SOURCE;
  1551. // @@BEGIN_DDKSPLIT
  1552. typedef struct {
  1553. BOOL Enable;
  1554. HANDLE hGfx;
  1555. ULONG ulOrder; // Order of the GFX
  1556. ULONG ulType; // Type of the GFX
  1557. ULONG ulFlags;
  1558. ULONG ulDeviceNameOffset; // DeviceInterface on which this GFX needs to be attached
  1559. ULONG ulFriendlyNameOffset; // Friendly name of the GFX
  1560. } SYSAUDIO_GFX, *PSYSAUDIO_GFX;
  1561. #define GFX_DEVICETYPE_RENDER 1
  1562. #define GFX_DEVICETYPE_CAPTURE 2
  1563. // @@END_DDKSPLIT
  1564. typedef struct {
  1565. KSPROPERTY Property;
  1566. ULONG PinId;
  1567. ULONG NodeId;
  1568. ULONG Flags;
  1569. ULONG Reserved;
  1570. } SYSAUDIO_SELECT_GRAPH, *PSYSAUDIO_SELECT_GRAPH;
  1571. typedef struct {
  1572. KSPROPERTY Property;
  1573. ULONG Flags;
  1574. ULONG DeviceNumber;
  1575. } SYSAUDIO_INSTANCE_INFO, *PSYSAUDIO_INSTANCE_INFO;
  1576. #define SYSAUDIO_FLAGS_DONT_COMBINE_PINS 0x00000001
  1577. // @@BEGIN_DDKSPLIT
  1578. typedef struct {
  1579. KSPROPERTY Property;
  1580. ULONG Flags;
  1581. ULONG Index; // KSPROPERTY_SYSAUDIO_DEFAULT_TYPE
  1582. } SYSAUDIO_PREFERRED_DEVICE, *PSYSAUDIO_PREFERRED_DEVICE;
  1583. #define SYSAUDIO_FLAGS_CLEAR_PREFERRED 0x00000002
  1584. // @@END_DDKSPLIT
  1585. #define STATIC_KSPROPSETID_Sysaudio_Pin \
  1586. 0xA3A53220L, 0xC6E4, 0x11D0, 0xB4, 0x65, 0x00, 0x00, 0x1A, 0x18, 0x18, 0xE6
  1587. DEFINE_GUIDSTRUCT("A3A53220-C6E4-11D0-B465-00001A1818E6", KSPROPSETID_Sysaudio_Pin);
  1588. #define KSPROPSETID_Sysaudio_Pin DEFINE_GUIDNAMED(KSPROPSETID_Sysaudio_Pin)
  1589. typedef enum {
  1590. // @@BEGIN_DDKSPLIT
  1591. KSPROPERTY_SYSAUDIO_TOPOLOGY_CONNECTION_INDEX = 0,
  1592. // @@END_DDKSPLIT
  1593. KSPROPERTY_SYSAUDIO_ATTACH_VIRTUAL_SOURCE = 1,
  1594. // @@BEGIN_DDKSPLIT
  1595. KSPROPERTY_SYSAUDIO_PIN_VOLUME_NODE = 2
  1596. // @@END_DDKSPLIT
  1597. } KSPROPERTY_SYSAUDIO_PIN;
  1598. typedef struct {
  1599. KSPROPERTY Property;
  1600. ULONG MixerPinId;
  1601. ULONG Reserved;
  1602. } SYSAUDIO_ATTACH_VIRTUAL_SOURCE, *PSYSAUDIO_ATTACH_VIRTUAL_SOURCE;
  1603. //===========================================================================
  1604. typedef struct {
  1605. KSPROPERTY Property;
  1606. ULONG NodeId;
  1607. ULONG Reserved;
  1608. } KSNODEPROPERTY, *PKSNODEPROPERTY;
  1609. typedef struct {
  1610. KSNODEPROPERTY NodeProperty;
  1611. LONG Channel; // value to get or set
  1612. ULONG Reserved;
  1613. } KSNODEPROPERTY_AUDIO_CHANNEL, *PKSNODEPROPERTY_AUDIO_CHANNEL;
  1614. typedef struct {
  1615. KSNODEPROPERTY NodeProperty;
  1616. ULONG DevSpecificId;
  1617. ULONG DeviceInfo;
  1618. ULONG Length;
  1619. } KSNODEPROPERTY_AUDIO_DEV_SPECIFIC, *PKSNODEPROPERTY_AUDIO_DEV_SPECIFIC;
  1620. typedef struct {
  1621. KSNODEPROPERTY NodeProperty;
  1622. PVOID ListenerId;
  1623. #ifndef _WIN64
  1624. ULONG Reserved;
  1625. #endif // _WIN64
  1626. } KSNODEPROPERTY_AUDIO_3D_LISTENER, *PKSNODEPROPERTY_AUDIO_3D_LISTENER;
  1627. typedef struct {
  1628. KSNODEPROPERTY NodeProperty;
  1629. PVOID AppContext;
  1630. ULONG Length;
  1631. #ifndef _WIN64
  1632. ULONG Reserved;
  1633. #endif // _WIN64
  1634. } KSNODEPROPERTY_AUDIO_PROPERTY, *PKSNODEPROPERTY_AUDIO_PROPERTY;
  1635. //===========================================================================
  1636. // {79A9312E-59AE-43b0-A350-8B05284CAB24}
  1637. #define STATIC_KSPROPSETID_AudioGfx\
  1638. 0x79a9312eL, 0x59ae, 0x43b0, 0xa3, 0x50, 0x8b, 0x5, 0x28, 0x4c, 0xab, 0x24
  1639. DEFINE_GUIDSTRUCT("79A9312E-59AE-43b0-A350-8B05284CAB24", KSPROPSETID_AudioGfx);
  1640. #define KSPROPSETID_AudioGfx DEFINE_GUIDNAMED(KSPROPSETID_AudioGfx)
  1641. typedef enum {
  1642. KSPROPERTY_AUDIOGFX_RENDERTARGETDEVICEID,
  1643. KSPROPERTY_AUDIOGFX_CAPTURETARGETDEVICEID
  1644. } KSPROPERTY_AUDIOGFX;
  1645. //===========================================================================
  1646. #define STATIC_KSPROPSETID_Linear\
  1647. 0x5A2FFE80L, 0x16B9, 0x11D0, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1648. DEFINE_GUIDSTRUCT("5A2FFE80-16B9-11D0-A5D6-28DB04C10000", KSPROPSETID_Linear);
  1649. #define KSPROPSETID_Linear DEFINE_GUIDNAMED(KSPROPSETID_Linear)
  1650. typedef enum {
  1651. KSPROPERTY_LINEAR_POSITION,
  1652. } KSPROPERTY_LINEAR;
  1653. //===========================================================================
  1654. //
  1655. // Midi definitions
  1656. //
  1657. /*
  1658. Formats
  1659. */
  1660. #define STATIC_KSDATAFORMAT_TYPE_MUSIC\
  1661. 0xE725D360L, 0x62CC, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1662. DEFINE_GUIDSTRUCT("E725D360-62CC-11CF-A5D6-28DB04C10000", KSDATAFORMAT_TYPE_MUSIC);
  1663. #define KSDATAFORMAT_TYPE_MUSIC DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MUSIC)
  1664. // 'mids' == MEDIATYPE_Midi
  1665. #define STATIC_KSDATAFORMAT_TYPE_MIDI\
  1666. 0x7364696DL, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71
  1667. DEFINE_GUIDSTRUCT("7364696D-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_MIDI);
  1668. #define KSDATAFORMAT_TYPE_MIDI DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MIDI)
  1669. #define STATIC_KSDATAFORMAT_SUBTYPE_MIDI\
  1670. 0x1D262760L, 0xE957, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1671. DEFINE_GUIDSTRUCT("1D262760-E957-11CF-A5D6-28DB04C10000", KSDATAFORMAT_SUBTYPE_MIDI);
  1672. #define KSDATAFORMAT_SUBTYPE_MIDI DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MIDI)
  1673. #define STATIC_KSDATAFORMAT_SUBTYPE_MIDI_BUS\
  1674. 0x2CA15FA0L, 0x6CFE, 0x11CF, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00
  1675. DEFINE_GUIDSTRUCT("2CA15FA0-6CFE-11CF-A5D6-28DB04C10000", KSDATAFORMAT_SUBTYPE_MIDI_BUS);
  1676. #define KSDATAFORMAT_SUBTYPE_MIDI_BUS DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MIDI_BUS)
  1677. #define STATIC_KSDATAFORMAT_SUBTYPE_RIFFMIDI\
  1678. 0x4995DAF0L, 0x9EE6, 0x11D0, 0xA4, 0x0E, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  1679. DEFINE_GUIDSTRUCT("4995DAF0-9EE6-11D0-A40E-00A0C9223196", KSDATAFORMAT_SUBTYPE_RIFFMIDI);
  1680. #define KSDATAFORMAT_SUBTYPE_RIFFMIDI DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_RIFFMIDI)
  1681. /*
  1682. KSDATAFORMAT_SUBTYPE_DIRECTMUSIC
  1683. see DMusicKS.h
  1684. */
  1685. // WARNING! This structure MUST be dword aligned
  1686. // regardless of the number of data bytes.
  1687. typedef struct {
  1688. ULONG TimeDeltaMs; // Delta Milliseconds from the previous midiformat
  1689. // in the packet. The first midiformat in the packet
  1690. // is a delta from the PTS in the KSSTREAM_HEADER.
  1691. ULONG ByteCount; // Number of bytes of data that follow this struct.
  1692. } KSMUSICFORMAT, *PKSMUSICFORMAT;
  1693. //
  1694. // This entire set of MPEG Standard/Dialect Guids are obsolete. Do not use them.
  1695. //
  1696. //====================================================================================================
  1697. //====================================================================================================
  1698. // The following official MPEG Formats, Subtypes and Specifiers are listed as required or optional
  1699. // These official MPEG GUIDs are the preferred method of supporting MPEG/AC-3 media types in new code.
  1700. // Older MPEG GUIDs should also be supported for compatibilty, but these new modes are still required.
  1701. //====================================================================================================
  1702. //====================================================================================================
  1703. /*
  1704. This is a summary of what media types/specifiers will be required for all DVD+DSS+DVB+DTV MPEG decoders.
  1705. These media types are what the decoder driver must accept, hardware support for all of these media types
  1706. may or may not actually be provided by the decoder natively. These media types are intended to define
  1707. the "officially" supported MPEG/AC-3 media types that all WHQL certified decoders must implement. This
  1708. specifically includes driver and/or hardware support for all the required standards and dialects.
  1709. All MPEG video decoders must support all of the MPEG video modes shown as [required] below.
  1710. All MPEG audio decoders must support all of the MPEG audio modes shown as [required] below.
  1711. All AC-3 audio decoders must support all of the AC-3 audio modes shown as [required] below.
  1712. The line items shown as [optional] need not be implemented, but are possible formats that might be implemented.
  1713. Note that the input/output pin formats are defined by 2 or 3 GUIDs: TYPE, SUBTYPE, and maybe SPECIFIER.
  1714. The specifiers are included if the data format is a "dialect" that needs to be differentiated during decoding.
  1715. The decoder MUST be prepared to deal with ALL requests for _required_ "Standard" formats OR _required_ "Dialects".
  1716. STATIC_KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM [required]
  1717. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO [required]
  1718. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO [optional]
  1719. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO [required]
  1720. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO [optional]
  1721. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO [required]
  1722. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO [required]
  1723. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO [required]
  1724. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO [optional]
  1725. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO [required]
  1726. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO [optional]
  1727. STATIC_KSDATAFORMAT_TYPE_STANDARD_PES_PACKET [required]
  1728. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO [optional]
  1729. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO [optional]
  1730. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO [optional]
  1731. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO [optional]
  1732. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO [required]
  1733. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO [required]
  1734. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO [required]
  1735. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO [required]
  1736. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO [required]
  1737. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO [optional]
  1738. STATIC_KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER [required]
  1739. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO [required]
  1740. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO [required]
  1741. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO [required]
  1742. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO [optional]
  1743. STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO [required]
  1744. STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO [optional]
  1745. Note that the SPECIFIER GUIDs normally identify particular versions of MPEG such as DSS and DVD.
  1746. This approach was taken to minimize the number of DSS/DVB/DVD/DTV etc. media SUBTYPES.
  1747. These specifiers are currently required to disambiguate MPEG syntax _parsing_ by the decoder
  1748. using alternate parsing routines or downloadable firmware or hardware decode settings.
  1749. In the future these specifiers will be extended to cover new KS MPEG flavors such as DVB and DTV.
  1750. Thus, the optional specifiers will be subject to clarification and/or definition as they are needed.
  1751. Important note: Per the ITU MPEG specs, MPEG 2 media may contain pure MPEG 1 syntax and
  1752. any "MPEG 2" PES packets may actually contain MPEG 1 payloads and MPEG 1 syntax. Some MPEG
  1753. broadcasts can revert from MPEG2 to MPEG1 format data at their discretion, without warning.
  1754. CAUTION: Decoders MUST attempt to process MPEG data AS SOON AS POSSIBLE after reception.
  1755. In particular, elementary MPEG or MPEG PES packet streams should not be aggregated into DVD
  1756. "pack headers" internally before submission to the codec hardware if AT ALL POSSIBLE. The
  1757. reason is that mpeg data may need to be processed immediately but there may be no additional
  1758. MPEG data forthcoming to fill up the PES packet OR DVD "pack" in a timely fashion. This is
  1759. particularly true of MPEG dialects that utilize "repeat field signally" to reuse the last
  1760. decoded MPEG video field.
  1761. */
  1762. /////////////////////////////////////////////////////////////////////////
  1763. // The major data type GUIDs that define the data packet encapsulation //
  1764. /////////////////////////////////////////////////////////////////////////
  1765. // STATIC_KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM
  1766. #define STATIC_KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM \
  1767. 0x36523b11L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1768. DEFINE_GUIDSTRUCT("36523B11-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM );
  1769. #define KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_STANDARD_ELEMENTARY_STREAM)
  1770. // STATIC_KSDATAFORMAT_TYPE_STANDARD_PES_PACKET
  1771. #define STATIC_KSDATAFORMAT_TYPE_STANDARD_PES_PACKET \
  1772. 0x36523b12L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1773. DEFINE_GUIDSTRUCT("36523B12-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_TYPE_STANDARD_PES_PACKET );
  1774. #define KSDATAFORMAT_TYPE_STANDARD_PES_PACKET DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_STANDARD_PES_PACKET)
  1775. // STATIC_KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER
  1776. #define STATIC_KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER \
  1777. 0x36523b13L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1778. DEFINE_GUIDSTRUCT("36523B13-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER );
  1779. #define KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_STANDARD_PACK_HEADER)
  1780. ///////////////////////////////////////////////////////////////////////////////
  1781. // The minor data subtype GUIDs that define the exact class of the data type.//
  1782. ///////////////////////////////////////////////////////////////////////////////
  1783. // STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO
  1784. #define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO \
  1785. 0x36523b21L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1786. DEFINE_GUIDSTRUCT("36523B21-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO );
  1787. #define KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_VIDEO)
  1788. // STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO
  1789. #define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO \
  1790. 0x36523b22L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1791. DEFINE_GUIDSTRUCT("36523B22-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO );
  1792. #define KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_MPEG1_AUDIO)
  1793. // STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO
  1794. #define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO \
  1795. 0x36523b23L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1796. DEFINE_GUIDSTRUCT("36523B23-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO );
  1797. #define KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_VIDEO)
  1798. // STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO
  1799. #define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO \
  1800. 0x36523b24L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1801. DEFINE_GUIDSTRUCT("36523B24-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO );
  1802. #define KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_MPEG2_AUDIO)
  1803. // STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO
  1804. #define STATIC_KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO \
  1805. 0x36523b25L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1806. DEFINE_GUIDSTRUCT("36523B25-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO );
  1807. #define KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_STANDARD_AC3_AUDIO)
  1808. ///////////////////////////////////////////////////////////////////////////////
  1809. // The low-level specifier GUIDs that define the flavor of the data subtype. //
  1810. // Some SUBTYPES, notably MPEG2_VIDEO, MPEG2_AUDIO have different dialects. //
  1811. // These specifiers are intended to be accompanied by a specifier structure. //
  1812. ///////////////////////////////////////////////////////////////////////////////
  1813. // STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO
  1814. #define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO \
  1815. 0x36523b31L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1816. DEFINE_GUIDSTRUCT("36523B31-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO );
  1817. #define KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_VIDEO)
  1818. // STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO
  1819. #define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO \
  1820. 0x36523b32L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1821. DEFINE_GUIDSTRUCT("36523B32-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO );
  1822. #define KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_MPEG1_AUDIO)
  1823. // STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO Associated with KS_MPEGVIDEOINFO2 defined later
  1824. #define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO \
  1825. 0x36523b33L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1826. DEFINE_GUIDSTRUCT("36523B33-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO );
  1827. #define KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_VIDEO)
  1828. // STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO Associated with KS_MPEGAUDIOINFO defined later
  1829. #define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO \
  1830. 0x36523b34L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1831. DEFINE_GUIDSTRUCT("36523B34-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO );
  1832. #define KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_MPEG2_AUDIO)
  1833. // STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO
  1834. #define STATIC_KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO \
  1835. 0x36523b35L, 0x8ee5, 0x11d1, 0x8c, 0xa3, 0x00, 0x60, 0xb0, 0x57, 0x66, 0x4a
  1836. DEFINE_GUIDSTRUCT("36523B35-8EE5-11d1-8CA3-0060B057664A", KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO );
  1837. #define KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DIALECT_AC3_AUDIO)
  1838. //====================================================================================================
  1839. //====================================================================================================
  1840. // *** COMPATIBILITY WARNING ***
  1841. // The *following* older DSS, MPEG, DVD & AC-3 GUID definitions are retained for backward compability.
  1842. // These MPEG GUIDs should also be supported for compatibilty, but the above newer modes are still required.
  1843. //====================================================================================================
  1844. //====================================================================================================
  1845. //
  1846. // DSS definitions
  1847. //
  1848. #define STATIC_KSDATAFORMAT_SUBTYPE_DSS_VIDEO\
  1849. 0xa0af4f81L, 0xe163, 0x11d0, 0xba, 0xd9, 0x00, 0x60, 0x97, 0x44, 0x11, 0x1a
  1850. DEFINE_GUIDSTRUCT("a0af4f81-e163-11d0-bad9-00609744111a", KSDATAFORMAT_SUBTYPE_DSS_VIDEO);
  1851. #define KSDATAFORMAT_SUBTYPE_DSS_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_DSS_VIDEO)
  1852. #define STATIC_KSDATAFORMAT_SUBTYPE_DSS_AUDIO\
  1853. 0xa0af4f82L, 0xe163, 0x11d0, 0xba, 0xd9, 0x00, 0x60, 0x97, 0x44, 0x11, 0x1a
  1854. DEFINE_GUIDSTRUCT("a0af4f82-e163-11d0-bad9-00609744111a", KSDATAFORMAT_SUBTYPE_DSS_AUDIO);
  1855. #define KSDATAFORMAT_SUBTYPE_DSS_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_DSS_AUDIO)
  1856. //
  1857. // End of obsolete MPEG definitions.
  1858. //
  1859. //
  1860. // mpeg 1 definitions
  1861. //
  1862. #define STATIC_KSDATAFORMAT_SUBTYPE_MPEG1Packet\
  1863. 0xe436eb80, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70
  1864. DEFINE_GUIDSTRUCT("e436eb80-524f-11ce-9F53-0020af0ba770", KSDATAFORMAT_SUBTYPE_MPEG1Packet);
  1865. #define KSDATAFORMAT_SUBTYPE_MPEG1Packet DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG1Packet)
  1866. #define STATIC_KSDATAFORMAT_SUBTYPE_MPEG1Payload\
  1867. 0xe436eb81, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70
  1868. DEFINE_GUIDSTRUCT("e436eb81-524f-11ce-9F53-0020af0ba770", KSDATAFORMAT_SUBTYPE_MPEG1Payload);
  1869. #define KSDATAFORMAT_SUBTYPE_MPEG1Payload DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG1Payload)
  1870. // MEDIASUBTYPE_MPEG1Video
  1871. #define STATIC_KSDATAFORMAT_SUBTYPE_MPEG1Video\
  1872. 0xe436eb86, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70
  1873. DEFINE_GUIDSTRUCT("e436eb86-524f-11ce-9f53-0020af0ba770", KSDATAFORMAT_SUBTYPE_MPEG1Video);
  1874. #define KSDATAFORMAT_SUBTYPE_MPEG1Video DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG1Video)
  1875. //FORMAT_MPEGVideo
  1876. #define STATIC_KSDATAFORMAT_SPECIFIER_MPEG1_VIDEO\
  1877. 0x05589f82L, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a
  1878. DEFINE_GUIDSTRUCT("05589f82-c356-11ce-bf01-00aa0055595a", KSDATAFORMAT_SPECIFIER_MPEG1_VIDEO);
  1879. #define KSDATAFORMAT_SPECIFIER_MPEG1_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_MPEG1_VIDEO)
  1880. //
  1881. // mpeg 2 definitions
  1882. //
  1883. #define STATIC_KSDATAFORMAT_TYPE_MPEG2_PES\
  1884. 0xe06d8020L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1885. DEFINE_GUIDSTRUCT("e06d8020-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_TYPE_MPEG2_PES);
  1886. #define KSDATAFORMAT_TYPE_MPEG2_PES DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MPEG2_PES)
  1887. #define STATIC_KSDATAFORMAT_TYPE_MPEG2_PROGRAM\
  1888. 0xe06d8022L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1889. DEFINE_GUIDSTRUCT("e06d8022-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_TYPE_MPEG2_PROGRAM);
  1890. #define KSDATAFORMAT_TYPE_MPEG2_PROGRAM DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MPEG2_PROGRAM)
  1891. #define STATIC_KSDATAFORMAT_TYPE_MPEG2_TRANSPORT\
  1892. 0xe06d8023L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1893. DEFINE_GUIDSTRUCT("e06d8023-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_TYPE_MPEG2_TRANSPORT);
  1894. #define KSDATAFORMAT_TYPE_MPEG2_TRANSPORT DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MPEG2_TRANSPORT)
  1895. #define STATIC_KSDATAFORMAT_SUBTYPE_MPEG2_VIDEO\
  1896. 0xe06d8026L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1897. DEFINE_GUIDSTRUCT("e06d8026-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_MPEG2_VIDEO);
  1898. #define KSDATAFORMAT_SUBTYPE_MPEG2_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG2_VIDEO)
  1899. // use MPEGVIDEOINFO2 (defined below) with KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO
  1900. #define STATIC_KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO\
  1901. 0xe06d80e3L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1902. DEFINE_GUIDSTRUCT("e06d80e3-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO);
  1903. #define KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO)
  1904. //
  1905. // Mpeg2 video properties
  1906. //
  1907. #define STATIC_KSPROPSETID_Mpeg2Vid\
  1908. 0xC8E11B60L, 0x0CC9, 0x11D0, 0xBD, 0x69, 0x00, 0x35, 0x05, 0xC1, 0x03, 0xA9
  1909. DEFINE_GUIDSTRUCT("C8E11B60-0CC9-11D0-BD69-003505C103A9", KSPROPSETID_Mpeg2Vid);
  1910. #define KSPROPSETID_Mpeg2Vid DEFINE_GUIDNAMED( KSPROPSETID_Mpeg2Vid )
  1911. typedef enum {
  1912. KSPROPERTY_MPEG2VID_MODES, // available output modes of decoder
  1913. KSPROPERTY_MPEG2VID_CUR_MODE, // current mode of the decoder
  1914. KSPROPERTY_MPEG2VID_4_3_RECT, // output coordinates for 4:3 source
  1915. KSPROPERTY_MPEG2VID_16_9_RECT, // output coordinates for 16:9 source
  1916. KSPROPERTY_MPEG2VID_16_9_PANSCAN, // pan and scan vectors
  1917. } KSPROPERTY_MPEG2VID;
  1918. //
  1919. // bit field definitions for MPEG2 VIDEO mode
  1920. //
  1921. #define KSMPEGVIDMODE_PANSCAN 0x0001
  1922. #define KSMPEGVIDMODE_LTRBOX 0x0002
  1923. #define KSMPEGVIDMODE_SCALE 0x0004
  1924. //
  1925. // rectangle definitions for the 4/3 and 16/9 cropping properties of
  1926. // the MPEG2Video decoder
  1927. //
  1928. typedef struct _KSMPEGVID_RECT {
  1929. ULONG StartX;
  1930. ULONG StartY;
  1931. ULONG EndX;
  1932. ULONG EndY;
  1933. } KSMPEGVID_RECT, *PKSMPEGVID_RECT;
  1934. //
  1935. // Params for pan / scan
  1936. //
  1937. //
  1938. // MPEG2 Audio definition
  1939. //
  1940. #define STATIC_KSDATAFORMAT_SUBTYPE_MPEG2_AUDIO\
  1941. 0xe06d802bL, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1942. DEFINE_GUIDSTRUCT("e06d802b-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_MPEG2_AUDIO);
  1943. #define KSDATAFORMAT_SUBTYPE_MPEG2_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MPEG2_AUDIO)
  1944. #define STATIC_KSDATAFORMAT_SPECIFIER_MPEG2_AUDIO\
  1945. 0xe06d80e5L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1946. DEFINE_GUIDSTRUCT("e06d80e5-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SPECIFIER_MPEG2_AUDIO);
  1947. #define KSDATAFORMAT_SPECIFIER_MPEG2_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_MPEG2_AUDIO)
  1948. //
  1949. // DVD LPCM Audio definition
  1950. //
  1951. #define STATIC_KSDATAFORMAT_SUBTYPE_LPCM_AUDIO\
  1952. 0xe06d8032L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1953. DEFINE_GUIDSTRUCT("e06d8032-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_LPCM_AUDIO);
  1954. #define KSDATAFORMAT_SUBTYPE_LPCM_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_LPCM_AUDIO)
  1955. #define STATIC_KSDATAFORMAT_SPECIFIER_LPCM_AUDIO\
  1956. 0xe06d80e6L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1957. DEFINE_GUIDSTRUCT("e06d80e6-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SPECIFIER_LPCM_AUDIO);
  1958. #define KSDATAFORMAT_SPECIFIER_LPCM_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_LPCM_AUDIO)
  1959. //
  1960. // AC-3 definition
  1961. //
  1962. #define STATIC_KSDATAFORMAT_SUBTYPE_AC3_AUDIO\
  1963. 0xe06d802cL, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1964. DEFINE_GUIDSTRUCT("e06d802c-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_AC3_AUDIO);
  1965. #define KSDATAFORMAT_SUBTYPE_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_AC3_AUDIO)
  1966. #define STATIC_KSDATAFORMAT_SPECIFIER_AC3_AUDIO\
  1967. 0xe06d80e4L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  1968. DEFINE_GUIDSTRUCT("e06d80e4-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SPECIFIER_AC3_AUDIO);
  1969. #define KSDATAFORMAT_SPECIFIER_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_AC3_AUDIO)
  1970. #define STATIC_KSPROPSETID_AC3\
  1971. 0xBFABE720L, 0x6E1F, 0x11D0, 0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00
  1972. DEFINE_GUIDSTRUCT("BFABE720-6E1F-11D0-BCF2-444553540000", KSPROPSETID_AC3);
  1973. #define KSPROPSETID_AC3 DEFINE_GUIDNAMED(KSPROPSETID_AC3)
  1974. typedef enum {
  1975. KSPROPERTY_AC3_ERROR_CONCEALMENT = 1,
  1976. KSPROPERTY_AC3_ALTERNATE_AUDIO,
  1977. KSPROPERTY_AC3_DOWNMIX,
  1978. KSPROPERTY_AC3_BIT_STREAM_MODE,
  1979. KSPROPERTY_AC3_DIALOGUE_LEVEL,
  1980. KSPROPERTY_AC3_LANGUAGE_CODE,
  1981. KSPROPERTY_AC3_ROOM_TYPE
  1982. } KSPROPERTY_AC3;
  1983. typedef struct {
  1984. BOOL fRepeatPreviousBlock;
  1985. BOOL fErrorInCurrentBlock;
  1986. } KSAC3_ERROR_CONCEALMENT, *PKSAC3_ERROR_CONCEALMENT;
  1987. typedef struct {
  1988. BOOL fStereo;
  1989. ULONG DualMode;
  1990. } KSAC3_ALTERNATE_AUDIO, *PKSAC3_ALTERNATE_AUDIO;
  1991. #define KSAC3_ALTERNATE_AUDIO_1 1
  1992. #define KSAC3_ALTERNATE_AUDIO_2 2
  1993. #define KSAC3_ALTERNATE_AUDIO_BOTH 3
  1994. typedef struct {
  1995. BOOL fDownMix;
  1996. BOOL fDolbySurround;
  1997. } KSAC3_DOWNMIX, *PKSAC3_DOWNMIX;
  1998. typedef struct {
  1999. LONG BitStreamMode;
  2000. } KSAC3_BIT_STREAM_MODE, *PKSAC3_BIT_STREAM_MODE;
  2001. #define KSAC3_SERVICE_MAIN_AUDIO 0
  2002. #define KSAC3_SERVICE_NO_DIALOG 1
  2003. #define KSAC3_SERVICE_VISUALLY_IMPAIRED 2
  2004. #define KSAC3_SERVICE_HEARING_IMPAIRED 3
  2005. #define KSAC3_SERVICE_DIALOG_ONLY 4
  2006. #define KSAC3_SERVICE_COMMENTARY 5
  2007. #define KSAC3_SERVICE_EMERGENCY_FLASH 6
  2008. #define KSAC3_SERVICE_VOICE_OVER 7
  2009. typedef struct {
  2010. ULONG DialogueLevel;
  2011. } KSAC3_DIALOGUE_LEVEL, *PKSAC3_DIALOGUE_LEVEL;
  2012. typedef struct {
  2013. BOOL fLargeRoom;
  2014. } KSAC3_ROOM_TYPE, *PKSAC3_ROOM_TYPE;
  2015. //
  2016. // DTS and SDDS definitions (media subtype GUIDs)
  2017. //
  2018. #define STATIC_KSDATAFORMAT_SUBTYPE_DTS_AUDIO\
  2019. 0xe06d8033L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  2020. DEFINE_GUIDSTRUCT("e06d8033-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_DTS_AUDIO);
  2021. #define KSDATAFORMAT_SUBTYPE_DTS_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_DTS_AUDIO)
  2022. #define STATIC_KSDATAFORMAT_SUBTYPE_SDDS_AUDIO\
  2023. 0xe06d8034L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  2024. DEFINE_GUIDSTRUCT("e06d8034-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_SDDS_AUDIO);
  2025. #define KSDATAFORMAT_SUBTYPE_SDDS_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_SDDS_AUDIO)
  2026. //
  2027. // audio decoder output properties
  2028. //
  2029. #define STATIC_KSPROPSETID_AudioDecoderOut\
  2030. 0x6ca6e020L, 0x43bd, 0x11d0, 0xbd, 0x6a, 0x00, 0x35, 0x05, 0xc1, 0x03, 0xa9
  2031. DEFINE_GUIDSTRUCT("6ca6e020-43bd-11d0-bd6a-003505c103a9", KSPROPSETID_AudioDecoderOut);
  2032. #define KSPROPSETID_AudioDecoderOut DEFINE_GUIDNAMED(KSPROPSETID_AudioDecoderOut)
  2033. typedef enum {
  2034. KSPROPERTY_AUDDECOUT_MODES, // available output modes of decoder
  2035. KSPROPERTY_AUDDECOUT_CUR_MODE, // current mode of the decoder
  2036. } KSPROPERTY_AUDDECOUT;
  2037. #define KSAUDDECOUTMODE_STEREO_ANALOG 0x0001
  2038. #define KSAUDDECOUTMODE_PCM_51 0x0002
  2039. #define KSAUDDECOUTMODE_SPDIFF 0x0004
  2040. //
  2041. // subpicture definition
  2042. //
  2043. #define STATIC_KSDATAFORMAT_SUBTYPE_SUBPICTURE\
  2044. 0xe06d802dL, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
  2045. DEFINE_GUIDSTRUCT("e06d802d-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_SUBPICTURE);
  2046. #define KSDATAFORMAT_SUBTYPE_SUBPICTURE DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_SUBPICTURE)
  2047. #define STATIC_KSPROPSETID_DvdSubPic\
  2048. 0xac390460L, 0x43af, 0x11d0, 0xbd, 0x6a, 0x00, 0x35, 0x05, 0xc1, 0x03, 0xa9
  2049. DEFINE_GUIDSTRUCT("ac390460-43af-11d0-bd6a-003505c103a9", KSPROPSETID_DvdSubPic);
  2050. #define KSPROPSETID_DvdSubPic DEFINE_GUIDNAMED(KSPROPSETID_DvdSubPic)
  2051. typedef enum {
  2052. KSPROPERTY_DVDSUBPIC_PALETTE,
  2053. KSPROPERTY_DVDSUBPIC_HLI,
  2054. KSPROPERTY_DVDSUBPIC_COMPOSIT_ON, // TRUE for subpicture is displayed
  2055. } KSPROPERTY_DVDSUBPIC;
  2056. typedef struct _KS_DVD_YCrCb {
  2057. UCHAR Reserved;
  2058. UCHAR Y;
  2059. UCHAR Cr;
  2060. UCHAR Cb;
  2061. } KS_DVD_YCrCb, *PKS_DVD_YCrCb;
  2062. /* The KS_DVD_YUV structure is now superseded by KS_DVD_YCrCb above and is
  2063. here for backward compatibility only */
  2064. typedef struct _KS_DVD_YUV {
  2065. UCHAR Reserved;
  2066. UCHAR Y;
  2067. UCHAR V;
  2068. UCHAR U;
  2069. } KS_DVD_YUV, *PKS_DVD_YUV;
  2070. typedef struct _KSPROPERTY_SPPAL {
  2071. KS_DVD_YUV sppal[16];
  2072. } KSPROPERTY_SPPAL, *PKSPROPERTY_SPPAL;
  2073. typedef struct _KS_COLCON {
  2074. UCHAR emph1col:4;
  2075. UCHAR emph2col:4;
  2076. UCHAR backcol:4;
  2077. UCHAR patcol:4;
  2078. UCHAR emph1con:4;
  2079. UCHAR emph2con:4;
  2080. UCHAR backcon:4;
  2081. UCHAR patcon:4;
  2082. } KS_COLCON, *PKS_COLCON;
  2083. typedef struct _KSPROPERTY_SPHLI {
  2084. USHORT HLISS;
  2085. USHORT Reserved;
  2086. ULONG StartPTM; // start presentation time in x/90000
  2087. ULONG EndPTM; // end PTM in x/90000
  2088. USHORT StartX;
  2089. USHORT StartY;
  2090. USHORT StopX;
  2091. USHORT StopY;
  2092. KS_COLCON ColCon; // color contrast description (4 bytes as given in HLI)
  2093. } KSPROPERTY_SPHLI, *PKSPROPERTY_SPHLI;
  2094. typedef BOOL KSPROPERTY_COMPOSIT_ON, *PKSPROPERTY_COMPOSIT_ON;
  2095. #define STATIC_KSPROPSETID_CopyProt \
  2096. 0x0E8A0A40L, 0x6AEF, 0x11D0, 0x9E, 0xD0, 0x00, 0xA0, 0x24, 0xCA, 0x19, 0xB3
  2097. DEFINE_GUIDSTRUCT("0E8A0A40-6AEF-11D0-9ED0-00A024CA19B3", KSPROPSETID_CopyProt);
  2098. #define KSPROPSETID_CopyProt DEFINE_GUIDNAMED(KSPROPSETID_CopyProt)
  2099. typedef enum {
  2100. KSPROPERTY_DVDCOPY_CHLG_KEY = 0x01,
  2101. KSPROPERTY_DVDCOPY_DVD_KEY1,
  2102. KSPROPERTY_DVDCOPY_DEC_KEY2,
  2103. KSPROPERTY_DVDCOPY_TITLE_KEY,
  2104. KSPROPERTY_COPY_MACROVISION,
  2105. KSPROPERTY_DVDCOPY_REGION,
  2106. KSPROPERTY_DVDCOPY_SET_COPY_STATE,
  2107. KSPROPERTY_DVDCOPY_DISC_KEY = 0x80
  2108. } KSPROPERTY_COPYPROT;
  2109. typedef struct _KS_DVDCOPY_CHLGKEY {
  2110. BYTE ChlgKey[10];
  2111. BYTE Reserved[2];
  2112. } KS_DVDCOPY_CHLGKEY, *PKS_DVDCOPY_CHLGKEY;
  2113. typedef struct _KS_DVDCOPY_BUSKEY {
  2114. BYTE BusKey[5];
  2115. BYTE Reserved[1];
  2116. } KS_DVDCOPY_BUSKEY, *PKS_DVDCOPY_BUSKEY;
  2117. typedef struct _KS_DVDCOPY_DISCKEY {
  2118. BYTE DiscKey[2048];
  2119. } KS_DVDCOPY_DISCKEY, *PKS_DVDCOPY_DISCKEY;
  2120. typedef struct _KS_DVDCOPY_REGION {
  2121. UCHAR Reserved;
  2122. UCHAR RegionData;
  2123. UCHAR Reserved2[2];
  2124. } KS_DVDCOPY_REGION, *PKS_DVDCOPY_REGION;
  2125. typedef struct _KS_DVDCOPY_TITLEKEY {
  2126. ULONG KeyFlags;
  2127. ULONG ReservedNT[2];
  2128. UCHAR TitleKey[6];
  2129. UCHAR Reserved[2];
  2130. } KS_DVDCOPY_TITLEKEY, *PKS_DVDCOPY_TITLEKEY;
  2131. typedef struct _KS_COPY_MACROVISION {
  2132. ULONG MACROVISIONLevel;
  2133. } KS_COPY_MACROVISION, *PKS_COPY_MACROVISION;
  2134. typedef struct _KS_DVDCOPY_SET_COPY_STATE {
  2135. ULONG DVDCopyState;
  2136. } KS_DVDCOPY_SET_COPY_STATE, *PKS_DVDCOPY_SET_COPY_STATE;
  2137. typedef enum {
  2138. KS_DVDCOPYSTATE_INITIALIZE, // indicates we are starting a full
  2139. // copy protection sequence.
  2140. KS_DVDCOPYSTATE_INITIALIZE_TITLE, // indicates we are starting a title
  2141. // key copy protection sequence
  2142. KS_DVDCOPYSTATE_AUTHENTICATION_NOT_REQUIRED,
  2143. KS_DVDCOPYSTATE_AUTHENTICATION_REQUIRED,
  2144. KS_DVDCOPYSTATE_DONE,
  2145. } KS_DVDCOPYSTATE;
  2146. typedef enum {
  2147. KS_MACROVISION_DISABLED,
  2148. KS_MACROVISION_LEVEL1,
  2149. KS_MACROVISION_LEVEL2,
  2150. KS_MACROVISION_LEVEL3
  2151. } KS_COPY_MACROVISION_LEVEL, *PKS_COPY_MACROVISION_LEVEL;
  2152. //
  2153. // CGMS Copy Protection Flags
  2154. //
  2155. #define KS_DVD_CGMS_RESERVED_MASK 0x00000078
  2156. #define KS_DVD_CGMS_COPY_PROTECT_MASK 0x00000018
  2157. #define KS_DVD_CGMS_COPY_PERMITTED 0x00000000
  2158. #define KS_DVD_CGMS_COPY_ONCE 0x00000010
  2159. #define KS_DVD_CGMS_NO_COPY 0x00000018
  2160. #define KS_DVD_COPYRIGHT_MASK 0x00000040
  2161. #define KS_DVD_NOT_COPYRIGHTED 0x00000000
  2162. #define KS_DVD_COPYRIGHTED 0x00000040
  2163. #define KS_DVD_SECTOR_PROTECT_MASK 0x00000020
  2164. #define KS_DVD_SECTOR_NOT_PROTECTED 0x00000000
  2165. #define KS_DVD_SECTOR_PROTECTED 0x00000020
  2166. //===========================================================================
  2167. // The following MUST match the structures in WinGDI.h and AMVideo.h
  2168. //===========================================================================
  2169. #define STATIC_KSCATEGORY_TVTUNER \
  2170. 0xa799a800L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4
  2171. DEFINE_GUIDSTRUCT("a799a800-a46d-11d0-a18c-00a02401dcd4", KSCATEGORY_TVTUNER);
  2172. #define KSCATEGORY_TVTUNER DEFINE_GUIDNAMED(KSCATEGORY_TVTUNER)
  2173. #define STATIC_KSCATEGORY_CROSSBAR \
  2174. 0xa799a801L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4
  2175. DEFINE_GUIDSTRUCT("a799a801-a46d-11d0-a18c-00a02401dcd4", KSCATEGORY_CROSSBAR);
  2176. #define KSCATEGORY_CROSSBAR DEFINE_GUIDNAMED(KSCATEGORY_CROSSBAR)
  2177. #define STATIC_KSCATEGORY_TVAUDIO \
  2178. 0xa799a802L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4
  2179. DEFINE_GUIDSTRUCT("a799a802-a46d-11d0-a18c-00a02401dcd4", KSCATEGORY_TVAUDIO);
  2180. #define KSCATEGORY_TVAUDIO DEFINE_GUIDNAMED(KSCATEGORY_TVAUDIO)
  2181. #define STATIC_KSCATEGORY_VPMUX \
  2182. 0xa799a803L, 0xa46d, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0x24, 0x01, 0xdc, 0xd4
  2183. DEFINE_GUIDSTRUCT("a799a803-a46d-11d0-a18c-00a02401dcd4", KSCATEGORY_VPMUX);
  2184. #define KSCATEGORY_VPMUX DEFINE_GUIDNAMED(KSCATEGORY_VPMUX)
  2185. #define STATIC_KSCATEGORY_VBICODEC \
  2186. 0x07dad660L, 0x22f1, 0x11d1, 0xa9, 0xf4, 0x00, 0xc0, 0x4f, 0xbb, 0xde, 0x8f
  2187. DEFINE_GUIDSTRUCT("07dad660-22f1-11d1-a9f4-00c04fbbde8f", KSCATEGORY_VBICODEC);
  2188. #define KSCATEGORY_VBICODEC DEFINE_GUIDNAMED(KSCATEGORY_VBICODEC)
  2189. // SUBTYPE_VPVideo
  2190. #define STATIC_KSDATAFORMAT_SUBTYPE_VPVideo\
  2191. 0x5a9b6a40L, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a
  2192. DEFINE_GUIDSTRUCT("5a9b6a40-1a22-11d1-bad9-00609744111a", KSDATAFORMAT_SUBTYPE_VPVideo);
  2193. #define KSDATAFORMAT_SUBTYPE_VPVideo DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_VPVideo)
  2194. // SUBTYPE_VPVBI
  2195. #define STATIC_KSDATAFORMAT_SUBTYPE_VPVBI\
  2196. 0x5a9b6a41L, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a
  2197. DEFINE_GUIDSTRUCT("5a9b6a41-1a22-11d1-bad9-00609744111a", KSDATAFORMAT_SUBTYPE_VPVBI);
  2198. #define KSDATAFORMAT_SUBTYPE_VPVBI DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_VPVBI)
  2199. // FORMAT_VideoInfo
  2200. #define STATIC_KSDATAFORMAT_SPECIFIER_VIDEOINFO\
  2201. 0x05589f80L, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a
  2202. DEFINE_GUIDSTRUCT("05589f80-c356-11ce-bf01-00aa0055595a", KSDATAFORMAT_SPECIFIER_VIDEOINFO);
  2203. #define KSDATAFORMAT_SPECIFIER_VIDEOINFO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_VIDEOINFO)
  2204. // FORMAT_VideoInfo2
  2205. #define STATIC_KSDATAFORMAT_SPECIFIER_VIDEOINFO2\
  2206. 0xf72a76A0L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba
  2207. DEFINE_GUIDSTRUCT("f72a76A0-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_SPECIFIER_VIDEOINFO2);
  2208. #define KSDATAFORMAT_SPECIFIER_VIDEOINFO2 DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_VIDEOINFO2)
  2209. // MEDIATYPE_AnalogVideo
  2210. #define STATIC_KSDATAFORMAT_TYPE_ANALOGVIDEO\
  2211. 0x0482dde1L, 0x7817, 0x11cf, 0x8a, 0x03, 0x00, 0xaa, 0x00, 0x6e, 0xcb, 0x65
  2212. DEFINE_GUIDSTRUCT("0482dde1-7817-11cf-8a03-00aa006ecb65", KSDATAFORMAT_TYPE_ANALOGVIDEO);
  2213. #define KSDATAFORMAT_TYPE_ANALOGVIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_ANALOGVIDEO)
  2214. // FORMAT_AnalogVideo
  2215. #define STATIC_KSDATAFORMAT_SPECIFIER_ANALOGVIDEO\
  2216. 0x0482dde0L, 0x7817, 0x11cf, 0x8a, 0x03, 0x00, 0xaa, 0x00, 0x6e, 0xcb, 0x65
  2217. DEFINE_GUIDSTRUCT("0482dde0-7817-11cf-8a03-00aa006ecb65", KSDATAFORMAT_SPECIFIER_ANALOGVIDEO);
  2218. #define KSDATAFORMAT_SPECIFIER_ANALOGVIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_ANALOGVIDEO)
  2219. // FORMAT_VBI
  2220. #define STATIC_KSDATAFORMAT_SPECIFIER_VBI\
  2221. 0xf72a76e0L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba
  2222. DEFINE_GUIDSTRUCT("f72a76e0-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_SPECIFIER_VBI);
  2223. #define KSDATAFORMAT_SPECIFIER_VBI DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_VBI)
  2224. // MEDIATYPE_VBI
  2225. #define STATIC_KSDATAFORMAT_TYPE_VBI\
  2226. 0xf72a76e1L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba
  2227. DEFINE_GUIDSTRUCT("f72a76e1-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_TYPE_VBI);
  2228. #define KSDATAFORMAT_TYPE_VBI DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_VBI)
  2229. // SUBTYPE_RAW8
  2230. #define STATIC_KSDATAFORMAT_SUBTYPE_RAW8\
  2231. 0xca20d9a0, 0x3e3e, 0x11d1, 0x9b, 0xf9, 0x0, 0xc0, 0x4f, 0xbb, 0xde, 0xbf
  2232. DEFINE_GUIDSTRUCT("ca20d9a0-3e3e-11d1-9bf9-00c04fbbdebf", KSDATAFORMAT_SUBTYPE_RAW8);
  2233. #define KSDATAFORMAT_SUBTYPE_RAW8 DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_RAW8)
  2234. // MEDIASUBTYPE_CC
  2235. #define STATIC_KSDATAFORMAT_SUBTYPE_CC\
  2236. 0x33214cc1, 0x11f, 0x11d2, 0xb4, 0xb1, 0x0, 0xa0, 0xd1, 0x2, 0xcf, 0xbe
  2237. DEFINE_GUIDSTRUCT("33214CC1-011F-11D2-B4B1-00A0D102CFBE", KSDATAFORMAT_SUBTYPE_CC);
  2238. #define KSDATAFORMAT_SUBTYPE_CC DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_CC)
  2239. // MEDIASUBTYPE_NABTS
  2240. #define STATIC_KSDATAFORMAT_SUBTYPE_NABTS\
  2241. 0xf72a76e2L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba
  2242. DEFINE_GUIDSTRUCT("f72a76e2-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_SUBTYPE_NABTS);
  2243. #define KSDATAFORMAT_SUBTYPE_NABTS DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_NABTS)
  2244. // MEDIASUBTYPE_TELETEXT
  2245. #define STATIC_KSDATAFORMAT_SUBTYPE_TELETEXT\
  2246. 0xf72a76e3L, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba
  2247. DEFINE_GUIDSTRUCT("f72a76e3-eb0a-11d0-ace4-0000c0cc16ba", KSDATAFORMAT_SUBTYPE_TELETEXT);
  2248. #define KSDATAFORMAT_SUBTYPE_TELETEXT DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_TELETEXT)
  2249. /* constants for the biCompression field */
  2250. #define KS_BI_RGB 0L
  2251. #define KS_BI_RLE8 1L
  2252. #define KS_BI_RLE4 2L
  2253. #define KS_BI_BITFIELDS 3L
  2254. typedef struct tagKS_RGBQUAD { // rgbq
  2255. BYTE rgbBlue;
  2256. BYTE rgbGreen;
  2257. BYTE rgbRed;
  2258. BYTE rgbReserved;
  2259. } KS_RGBQUAD, *PKS_RGBQUAD;
  2260. /* constants for palettes */
  2261. #define KS_iPALETTE_COLORS 256 // Maximum colours in palette
  2262. #define KS_iEGA_COLORS 16 // Number colours in EGA palette
  2263. #define KS_iMASK_COLORS 3 // Maximum three components
  2264. #define KS_iTRUECOLOR 16 // Minimum true colour device
  2265. #define KS_iRED 0 // Index position for RED mask
  2266. #define KS_iGREEN 1 // Index position for GREEN mask
  2267. #define KS_iBLUE 2 // Index position for BLUE mask
  2268. #define KS_iPALETTE 8 // Maximum colour depth using a palette
  2269. #define KS_iMAXBITS 8 // Maximum bits per colour component
  2270. #define KS_SIZE_EGA_PALETTE (KS_iEGA_COLORS * sizeof(KS_RGBQUAD))
  2271. #define KS_SIZE_PALETTE (KS_iPALETTE_COLORS * sizeof(KS_RGBQUAD))
  2272. typedef struct tagKS_BITMAPINFOHEADER{
  2273. DWORD biSize;
  2274. LONG biWidth;
  2275. LONG biHeight;
  2276. WORD biPlanes;
  2277. WORD biBitCount;
  2278. DWORD biCompression;
  2279. DWORD biSizeImage;
  2280. LONG biXPelsPerMeter;
  2281. LONG biYPelsPerMeter;
  2282. DWORD biClrUsed;
  2283. DWORD biClrImportant;
  2284. } KS_BITMAPINFOHEADER, *PKS_BITMAPINFOHEADER;
  2285. // Used for true colour images that also have a palette
  2286. typedef struct tag_KS_TRUECOLORINFO {
  2287. DWORD dwBitMasks[KS_iMASK_COLORS];
  2288. KS_RGBQUAD bmiColors[KS_iPALETTE_COLORS];
  2289. } KS_TRUECOLORINFO, *PKS_TRUECOLORINFO;
  2290. #define KS_WIDTHBYTES(bits) ((DWORD)(((bits)+31) & (~31)) / 8)
  2291. #define KS_DIBWIDTHBYTES(bi) (DWORD)KS_WIDTHBYTES((DWORD)(bi).biWidth * (DWORD)(bi).biBitCount)
  2292. #define KS__DIBSIZE(bi) (KS_DIBWIDTHBYTES(bi) * (DWORD)(bi).biHeight)
  2293. #define KS_DIBSIZE(bi) ((bi).biHeight < 0 ? (-1)*(KS__DIBSIZE(bi)) : KS__DIBSIZE(bi))
  2294. typedef LONGLONG REFERENCE_TIME;
  2295. // The BITMAPINFOHEADER contains all the details about the video stream such
  2296. // as the actual image dimensions and their pixel depth. A source filter may
  2297. // also request that the sink take only a section of the video by providing a
  2298. // clipping rectangle in rcSource. In the worst case where the sink filter
  2299. // forgets to check this on connection it will simply render the whole thing
  2300. // which isn't a disaster. Ideally a sink filter will check the rcSource and
  2301. // if it doesn't support image extraction and the rectangle is not empty then
  2302. // it will reject the connection. A filter should use SetRectEmpty to reset a
  2303. // rectangle to all zeroes (and IsRectEmpty to later check the rectangle).
  2304. // The rcTarget specifies the destination rectangle for the video, for most
  2305. // source filters they will set this to all zeroes, a downstream filter may
  2306. // request that the video be placed in a particular area of the buffers it
  2307. // supplies in which case it will call QueryAccept with a non empty target
  2308. typedef struct tagKS_VIDEOINFOHEADER {
  2309. RECT rcSource; // The bit we really want to use
  2310. RECT rcTarget; // Where the video should go
  2311. DWORD dwBitRate; // Approximate bit data rate
  2312. DWORD dwBitErrorRate; // Bit error rate for this stream
  2313. REFERENCE_TIME AvgTimePerFrame; // Average time per frame (100ns units)
  2314. KS_BITMAPINFOHEADER bmiHeader;
  2315. } KS_VIDEOINFOHEADER, *PKS_VIDEOINFOHEADER;
  2316. // !!! WARNING !!!
  2317. // DO NOT use the following structure unless you are sure that the BITMAPINFOHEADER
  2318. // has a normal biSize == sizeof(BITMAPINFOHEADER) !
  2319. // !!! WARNING !!!
  2320. typedef struct tagKS_VIDEOINFO {
  2321. RECT rcSource; // The bit we really want to use
  2322. RECT rcTarget; // Where the video should go
  2323. DWORD dwBitRate; // Approximate bit data rate
  2324. DWORD dwBitErrorRate; // Bit error rate for this stream
  2325. REFERENCE_TIME AvgTimePerFrame; // Average time per frame (100ns units)
  2326. KS_BITMAPINFOHEADER bmiHeader;
  2327. union {
  2328. KS_RGBQUAD bmiColors[KS_iPALETTE_COLORS]; // Colour palette
  2329. DWORD dwBitMasks[KS_iMASK_COLORS]; // True colour masks
  2330. KS_TRUECOLORINFO TrueColorInfo; // Both of the above
  2331. };
  2332. } KS_VIDEOINFO, *PKS_VIDEOINFO;
  2333. #define KS_SIZE_MASKS (KS_iMASK_COLORS * sizeof(DWORD))
  2334. #define KS_SIZE_PREHEADER (FIELD_OFFSET(KS_VIDEOINFOHEADER,bmiHeader))
  2335. // For normal size
  2336. // #define KS_SIZE_VIDEOHEADER (sizeof(KS_BITMAPINFOHEADER) + KS_SIZE_PREHEADER)
  2337. // !!! for abnormal biSizes
  2338. #define KS_SIZE_VIDEOHEADER(pbmi) ((pbmi)->bmiHeader.biSize + KS_SIZE_PREHEADER)
  2339. // VBI
  2340. // Used for NABTS, CC, Intercast, WST
  2341. typedef struct tagKS_VBIINFOHEADER {
  2342. ULONG StartLine; // inclusive
  2343. ULONG EndLine; // inclusive
  2344. ULONG SamplingFrequency; // Hz.
  2345. ULONG MinLineStartTime; // microSec * 100 from HSync LE
  2346. ULONG MaxLineStartTime; // microSec * 100 from HSync LE
  2347. ULONG ActualLineStartTime; // microSec * 100 from HSync LE
  2348. ULONG ActualLineEndTime; // microSec * 100 from HSync LE
  2349. ULONG VideoStandard; // KS_AnalogVideoStandard*
  2350. ULONG SamplesPerLine;
  2351. ULONG StrideInBytes; // May be > SamplesPerLine
  2352. ULONG BufferSize; // Bytes
  2353. } KS_VBIINFOHEADER, *PKS_VBIINFOHEADER;
  2354. // VBI Sampling Rates
  2355. #define KS_VBIDATARATE_NABTS (5727272L)
  2356. #define KS_VBIDATARATE_CC ( 503493L) // ~= 1/1.986125e-6
  2357. #define KS_VBISAMPLINGRATE_4X_NABTS ((long)(4*KS_VBIDATARATE_NABTS))
  2358. #define KS_VBISAMPLINGRATE_47X_NABTS ((long)(27000000))
  2359. #define KS_VBISAMPLINGRATE_5X_NABTS ((long)(5*KS_VBIDATARATE_NABTS))
  2360. #define KS_47NABTS_SCALER (KS_VBISAMPLINGRATE_47X_NABTS/(double)KS_VBIDATARATE_NABTS)
  2361. // Analog video variant - Use this when the format is FORMAT_AnalogVideo
  2362. //
  2363. // rcSource defines the portion of the active video signal to use
  2364. // rcTarget defines the destination rectangle
  2365. // both of the above are relative to the dwActiveWidth and dwActiveHeight fields
  2366. // dwActiveWidth is currently set to 720 for all formats (but could change for HDTV)
  2367. // dwActiveHeight is 483 for NTSC and 575 for PAL/SECAM (but could change for HDTV)
  2368. typedef struct tagKS_AnalogVideoInfo {
  2369. RECT rcSource; // Width max is 720, height varies w/ TransmissionStd
  2370. RECT rcTarget; // Where the video should go
  2371. DWORD dwActiveWidth; // Always 720 (CCIR-601 active samples per line)
  2372. DWORD dwActiveHeight; // 483 for NTSC, 575 for PAL/SECAM
  2373. REFERENCE_TIME AvgTimePerFrame; // Normal ActiveMovie units (100 nS)
  2374. } KS_ANALOGVIDEOINFO, *PKS_ANALOGVIDEOINFO;
  2375. //===========================================================================
  2376. // Data packet passed on Analog video stream channel change
  2377. //===========================================================================
  2378. #define KS_TVTUNER_CHANGE_BEGIN_TUNE 0x0001L // Starting a tuning operation
  2379. #define KS_TVTUNER_CHANGE_END_TUNE 0x0002L // Ending a tuning operation
  2380. typedef struct tagKS_TVTUNER_CHANGE_INFO {
  2381. DWORD dwFlags; // KS_TVTUNER_CHANGE_*
  2382. DWORD dwCountryCode;
  2383. DWORD dwAnalogVideoStandard; // KS_AnalogVideoStandard
  2384. DWORD dwChannel;
  2385. } KS_TVTUNER_CHANGE_INFO, *PKS_TVTUNER_CHANGE_INFO;
  2386. //===========================================================================
  2387. // Video format blocks
  2388. //===========================================================================
  2389. typedef enum {
  2390. KS_MPEG2Level_Low,
  2391. KS_MPEG2Level_Main,
  2392. KS_MPEG2Level_High1440,
  2393. KS_MPEG2Level_High
  2394. } KS_MPEG2Level;
  2395. typedef enum {
  2396. KS_MPEG2Profile_Simple,
  2397. KS_MPEG2Profile_Main,
  2398. KS_MPEG2Profile_SNRScalable,
  2399. KS_MPEG2Profile_SpatiallyScalable,
  2400. KS_MPEG2Profile_High
  2401. } KS_MPEG2Profile;
  2402. #define KS_INTERLACE_IsInterlaced 0x00000001 // if 0, other interlace bits are irrelevent
  2403. #define KS_INTERLACE_1FieldPerSample 0x00000002 // else 2 fields per media sample
  2404. #define KS_INTERLACE_Field1First 0x00000004 // else Field 2 is first; top field in PAL is field 1, top field in NTSC is field 2?
  2405. #define KS_INTERLACE_UNUSED 0x00000008 //
  2406. #define KS_INTERLACE_FieldPatternMask 0x00000030 // use this mask with AMINTERLACE_FieldPat*
  2407. #define KS_INTERLACE_FieldPatField1Only 0x00000000 // Data never contains a Field2
  2408. #define KS_INTERLACE_FieldPatField2Only 0x00000010 // Data never contains a Field1
  2409. #define KS_INTERLACE_FieldPatBothRegular 0x00000020 // There will be a Field2 for every Field1 (required for Weave?)
  2410. #define KS_INTERLACE_FieldPatBothIrregular 0x00000030 // Random pattern of Field1s and Field2s
  2411. #define KS_INTERLACE_DisplayModeMask 0x000000c0
  2412. #define KS_INTERLACE_DisplayModeBobOnly 0x00000000
  2413. #define KS_INTERLACE_DisplayModeWeaveOnly 0x00000040
  2414. #define KS_INTERLACE_DisplayModeBobOrWeave 0x00000080
  2415. #define KS_MPEG2_DoPanScan 0x00000001 //if set, the MPEG-2 video decoder should crop output image
  2416. // based on pan-scan vectors in picture_display_extension
  2417. // and change the picture aspect ratio accordingly.
  2418. #define KS_MPEG2_DVDLine21Field1 0x00000002 //if set, the MPEG-2 decoder must be able to produce an output
  2419. // pin for DVD style closed caption data found in GOP layer of field 1
  2420. #define KS_MPEG2_DVDLine21Field2 0x00000004 //if set, the MPEG-2 decoder must be able to produce an output
  2421. // pin for DVD style closed caption data found in GOP layer of field 2
  2422. #define KS_MPEG2_SourceIsLetterboxed 0x00000008 //if set, indicates that black bars have been encoded in the top
  2423. // and bottom of the video.
  2424. #define KS_MPEG2_FilmCameraMode 0x00000010 //if set, indicates "film mode" used for 625/50 content. If cleared,
  2425. // indicates that "camera mode" was used.
  2426. #define KS_MPEG2_LetterboxAnalogOut 0x00000020 //if set and this stream is sent to an analog output, it should
  2427. // be letterboxed. Streams sent to VGA should be letterboxed only by renderers.
  2428. #define KS_MPEG2_DSS_UserData 0x00000040 //if set, the MPEG-2 decoder must process DSS style user data
  2429. #define KS_MPEG2_DVB_UserData 0x00000080 //if set, the MPEG-2 decoder must process DVB style user data
  2430. #define KS_MPEG2_27MhzTimebase 0x00000100 //if set, the PTS,DTS timestamps advance at 27MHz rather than 90KHz
  2431. typedef struct tagKS_VIDEOINFOHEADER2 {
  2432. RECT rcSource;
  2433. RECT rcTarget;
  2434. DWORD dwBitRate;
  2435. DWORD dwBitErrorRate;
  2436. REFERENCE_TIME AvgTimePerFrame;
  2437. DWORD dwInterlaceFlags; // use AMINTERLACE_* defines. Reject connection if undefined bits are not 0
  2438. DWORD dwCopyProtectFlags; // use AMCOPYPROTECT_* defines. Reject connection if undefined bits are not 0
  2439. DWORD dwPictAspectRatioX; // X dimension of picture aspect ratio, e.g. 16 for 16x9 display
  2440. DWORD dwPictAspectRatioY; // Y dimension of picture aspect ratio, e.g. 9 for 16x9 display
  2441. DWORD dwReserved1; // must be 0; reject connection otherwise
  2442. DWORD dwReserved2; // must be 0; reject connection otherwise
  2443. KS_BITMAPINFOHEADER bmiHeader;
  2444. } KS_VIDEOINFOHEADER2, *PKS_VIDEOINFOHEADER2;
  2445. typedef struct tagKS_MPEG1VIDEOINFO {
  2446. KS_VIDEOINFOHEADER hdr; // Compatible with VIDEOINFO
  2447. DWORD dwStartTimeCode; // 25-bit Group of pictures time code at start of data
  2448. DWORD cbSequenceHeader; // Length in bytes of bSequenceHeader
  2449. BYTE bSequenceHeader[1]; // Sequence header including quantization matrices if any
  2450. } KS_MPEG1VIDEOINFO, *PKS_MPEG1VIDEOINFO;
  2451. #define KS_MAX_SIZE_MPEG1_SEQUENCE_INFO 140
  2452. #define KS_SIZE_MPEG1VIDEOINFO(pv) (FIELD_OFFSET(KS_MPEG1VIDEOINFO, bSequenceHeader[0]) + (pv)->cbSequenceHeader)
  2453. #define KS_MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader)
  2454. typedef struct tagKS_MPEGVIDEOINFO2 {
  2455. KS_VIDEOINFOHEADER2 hdr;
  2456. DWORD dwStartTimeCode; // ?? not used for DVD ??
  2457. DWORD cbSequenceHeader; // is 0 for DVD (no sequence header)
  2458. DWORD dwProfile; // use enum MPEG2Profile
  2459. DWORD dwLevel; // use enum MPEG2Level
  2460. DWORD dwFlags; // use AMMPEG2_* defines. Reject connection if undefined bits are not 0
  2461. DWORD bSequenceHeader[1]; // DWORD instead of Byte for alignment purposes
  2462. // For MPEG-2, if a sequence_header is included, the sequence_extension
  2463. // should also be included
  2464. } KS_MPEGVIDEOINFO2, *PKS_MPEGVIDEOINFO2;
  2465. #define KS_SIZE_MPEGVIDEOINFO2(pv) (FIELD_OFFSET(KS_MPEGVIDEOINFO2, bSequenceHeader[0]) + (pv)->cbSequenceHeader)
  2466. #define KS_MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader)
  2467. //===========================================================================
  2468. // Audio format blocks
  2469. //===========================================================================
  2470. //if set, the PTS,DTS timestamps advance at 27MHz rather than 90KHz
  2471. #define KS_MPEGAUDIOINFO_27MhzTimebase 0x00000001
  2472. typedef struct tagKS_MPEAUDIOINFO {
  2473. DWORD dwFlags; // use KS_MPEGAUDIOINFO_* defines. Reject connection if undefined bits are not 0
  2474. DWORD dwReserved1; // must be 0; reject connection otherwise
  2475. DWORD dwReserved2; // must be 0; reject connection otherwise
  2476. DWORD dwReserved3; // must be 0; reject connection otherwise
  2477. } KS_MPEGAUDIOINFO, *PKS_MPEGAUDIOINFO;
  2478. //===========================================================================
  2479. // Video DATAFORMATs
  2480. //===========================================================================
  2481. typedef struct tagKS_DATAFORMAT_VIDEOINFOHEADER {
  2482. KSDATAFORMAT DataFormat;
  2483. KS_VIDEOINFOHEADER VideoInfoHeader;
  2484. } KS_DATAFORMAT_VIDEOINFOHEADER, *PKS_DATAFORMAT_VIDEOINFOHEADER;
  2485. typedef struct tagKS_DATAFORMAT_VIDEOINFOHEADER2 {
  2486. KSDATAFORMAT DataFormat;
  2487. KS_VIDEOINFOHEADER2 VideoInfoHeader2;
  2488. } KS_DATAFORMAT_VIDEOINFOHEADER2, *PKS_DATAFORMAT_VIDEOINFOHEADER2;
  2489. typedef struct tagKS_DATAFORMAT_VIDEOINFO_PALETTE {
  2490. KSDATAFORMAT DataFormat;
  2491. KS_VIDEOINFO VideoInfo;
  2492. } KS_DATAFORMAT_VIDEOINFO_PALETTE, *PKS_DATAFORMAT_VIDEOINFO_PALETTE;
  2493. typedef struct tagKS_DATAFORMAT_VBIINFOHEADER {
  2494. KSDATAFORMAT DataFormat;
  2495. KS_VBIINFOHEADER VBIInfoHeader;
  2496. } KS_DATAFORMAT_VBIINFOHEADER, *PKS_DATAFORMAT_VBIINFOHEADER;
  2497. typedef struct _KS_VIDEO_STREAM_CONFIG_CAPS {
  2498. GUID guid; // will be MEDIATYPE_Video
  2499. ULONG VideoStandard; // logical OR of all AnalogVideoStandards
  2500. // supported
  2501. SIZE InputSize; // the inherent size of the incoming signal
  2502. // (every pixel unique)
  2503. SIZE MinCroppingSize; // smallest rcSrc cropping rect allowed
  2504. SIZE MaxCroppingSize; // largest rcSrc cropping rect allowed
  2505. int CropGranularityX; // granularity of cropping size
  2506. int CropGranularityY;
  2507. int CropAlignX; // alignment of cropping rect
  2508. int CropAlignY;
  2509. SIZE MinOutputSize; // smallest bitmap stream can produce
  2510. SIZE MaxOutputSize; // largest bitmap stream can produce
  2511. int OutputGranularityX; // granularity of output bitmap size
  2512. int OutputGranularityY;
  2513. int StretchTapsX; // 0, no stretch, 1 pix dup, 2 interp, ...
  2514. int StretchTapsY; // Describes quality of hardware scaler
  2515. int ShrinkTapsX; //
  2516. int ShrinkTapsY; //
  2517. LONGLONG MinFrameInterval; // 100 nS units
  2518. LONGLONG MaxFrameInterval;
  2519. LONG MinBitsPerSecond;
  2520. LONG MaxBitsPerSecond;
  2521. } KS_VIDEO_STREAM_CONFIG_CAPS, *PKS_VIDEO_STREAM_CONFIG_CAPS;
  2522. //===========================================================================
  2523. // Video DATARANGEs
  2524. //===========================================================================
  2525. typedef struct tagKS_DATARANGE_VIDEO {
  2526. KSDATARANGE DataRange;
  2527. BOOL bFixedSizeSamples; // all samples same size?
  2528. BOOL bTemporalCompression; // all I frames?
  2529. DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_*
  2530. DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_*
  2531. KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps;
  2532. KS_VIDEOINFOHEADER VideoInfoHeader; // default format
  2533. } KS_DATARANGE_VIDEO, *PKS_DATARANGE_VIDEO;
  2534. typedef struct tagKS_DATARANGE_VIDEO2 {
  2535. KSDATARANGE DataRange;
  2536. BOOL bFixedSizeSamples; // all samples same size?
  2537. BOOL bTemporalCompression; // all I frames?
  2538. DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_*
  2539. DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_*
  2540. KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps;
  2541. KS_VIDEOINFOHEADER2 VideoInfoHeader; // default format
  2542. } KS_DATARANGE_VIDEO2, *PKS_DATARANGE_VIDEO2;
  2543. typedef struct tagKS_DATARANGE_MPEG1_VIDEO {
  2544. KSDATARANGE DataRange;
  2545. BOOL bFixedSizeSamples; // all samples same size?
  2546. BOOL bTemporalCompression; // all I frames?
  2547. DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_*
  2548. DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_*
  2549. KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps;
  2550. KS_MPEG1VIDEOINFO VideoInfoHeader; // default format
  2551. } KS_DATARANGE_MPEG1_VIDEO, *PKS_DATARANGE_MPEG1_VIDEO;
  2552. typedef struct tagKS_DATARANGE_MPEG2_VIDEO {
  2553. KSDATARANGE DataRange;
  2554. BOOL bFixedSizeSamples; // all samples same size?
  2555. BOOL bTemporalCompression; // all I frames?
  2556. DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_*
  2557. DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_*
  2558. KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps;
  2559. KS_MPEGVIDEOINFO2 VideoInfoHeader; // default format
  2560. } KS_DATARANGE_MPEG2_VIDEO, *PKS_DATARANGE_MPEG2_VIDEO;
  2561. typedef struct tagKS_DATARANGE_VIDEO_PALETTE {
  2562. KSDATARANGE DataRange;
  2563. BOOL bFixedSizeSamples; // all samples same size?
  2564. BOOL bTemporalCompression; // all I frames?
  2565. DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_*
  2566. DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_*
  2567. KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps;
  2568. KS_VIDEOINFO VideoInfo; // default format
  2569. } KS_DATARANGE_VIDEO_PALETTE, *PKS_DATARANGE_VIDEO_PALETTE;
  2570. typedef struct tagKS_DATARANGE_VIDEO_VBI {
  2571. KSDATARANGE DataRange;
  2572. BOOL bFixedSizeSamples; // all samples same size?
  2573. BOOL bTemporalCompression; // all I frames?
  2574. DWORD StreamDescriptionFlags; // KS_VIDEO_DESC_*
  2575. DWORD MemoryAllocationFlags; // KS_VIDEO_ALLOC_*
  2576. KS_VIDEO_STREAM_CONFIG_CAPS ConfigCaps;
  2577. KS_VBIINFOHEADER VBIInfoHeader; // default format
  2578. } KS_DATARANGE_VIDEO_VBI, *PKS_DATARANGE_VIDEO_VBI;
  2579. typedef struct tagKS_DATARANGE_ANALOGVIDEO {
  2580. KSDATARANGE DataRange;
  2581. KS_ANALOGVIDEOINFO AnalogVideoInfo;
  2582. } KS_DATARANGE_ANALOGVIDEO, *PKS_DATARANGE_ANALOGVIDEO;
  2583. //===========================================================================
  2584. // StreamDescriptionFlags
  2585. //
  2586. // These define the "purpose" of each video stream
  2587. //===========================================================================
  2588. #define KS_VIDEOSTREAM_PREVIEW 0x0001 // Preview stream
  2589. #define KS_VIDEOSTREAM_CAPTURE 0x0002 // Capture stream
  2590. #define KS_VIDEOSTREAM_VBI 0x0010 // Field1 VBI
  2591. #define KS_VIDEOSTREAM_NABTS 0x0020 // Field1 NABTS
  2592. #define KS_VIDEOSTREAM_CC 0x0100 // Closed Captioning
  2593. #define KS_VIDEOSTREAM_EDS 0x0200 // Extended Data Services
  2594. #define KS_VIDEOSTREAM_TELETEXT 0x0400 // Field1 Teletext only
  2595. #define KS_VIDEOSTREAM_STILL 0x1000 // Still image input
  2596. #define KS_VIDEOSTREAM_IS_VPE 0x8000 // Is a VPE based stream?
  2597. // MemoryAllocationFlags
  2598. #define KS_VIDEO_ALLOC_VPE_SYSTEM 0x0001 // VPE surface in system memory
  2599. #define KS_VIDEO_ALLOC_VPE_DISPLAY 0x0002 // VPE surface in display memory
  2600. #define KS_VIDEO_ALLOC_VPE_AGP 0x0004 // VPE surface in AGP memory
  2601. //////////////////////////////////////////////////////////////
  2602. // Capture driver VBI property sets
  2603. //////////////////////////////////////////////////////////////
  2604. // {F162C607-7B35-496f-AD7F-2DCA3B46B718}
  2605. #define STATIC_KSPROPSETID_VBICAP_PROPERTIES\
  2606. 0xf162c607, 0x7b35, 0x496f, 0xad, 0x7f, 0x2d, 0xca, 0x3b, 0x46, 0xb7, 0x18
  2607. DEFINE_GUIDSTRUCT("F162C607-7B35-496f-AD7F-2DCA3B46B718", KSPROPSETID_VBICAP_PROPERTIES);
  2608. #define KSPROPSETID_VBICAP_PROPERTIES DEFINE_GUIDNAMED(KSPROPSETID_VBICAP_PROPERTIES)
  2609. typedef enum {
  2610. KSPROPERTY_VBICAP_PROPERTIES_PROTECTION = 0x01,
  2611. } KSPROPERTY_VBICAP;
  2612. typedef struct _VBICAP_PROPERTIES_PROTECTION_S {
  2613. KSPROPERTY Property;
  2614. ULONG StreamIndex; // Index of stream
  2615. ULONG Status;
  2616. } VBICAP_PROPERTIES_PROTECTION_S, *PVBICAP_PROPERTIES_PROTECTION_S;
  2617. #define KS_VBICAP_PROTECTION_MV_PRESENT 0x0001L
  2618. #define KS_VBICAP_PROTECTION_MV_HARDWARE 0x0002L
  2619. #define KS_VBICAP_PROTECTION_MV_DETECTED 0x0004L
  2620. /***************************************************************************/
  2621. /* VBI Related GUIDs, structs and properties for codecs(generic, cc, nabts)*/
  2622. /***************************************************************************/
  2623. ///////////////////////////////////////////////////////////////////////////////////////
  2624. // IP/NABTS Protocol Reserved Group IDs - Overall Range 0x800-0x8FF [Decimal 2048-2079]
  2625. // Intervening values(0-F) are used if there are multiple providers at a particular tier
  2626. ///////////////////////////////////////////////////////////////////////////////////////
  2627. // Used by individual content creators in show footage/data
  2628. #define KS_NABTS_GROUPID_ORIGINAL_CONTENT_BASE 0x800
  2629. #define KS_NABTS_GROUPID_ORIGINAL_CONTENT_ADVERTISER_BASE 0x810
  2630. // Used by production company in finished show data
  2631. #define KS_NABTS_GROUPID_PRODUCTION_COMPANY_CONTENT_BASE 0x820
  2632. #define KS_NABTS_GROUPID_PRODUCTION_COMPANY_ADVERTISER_BASE 0x830
  2633. // Used by broadcast syndicates in syndicated show data
  2634. #define KS_NABTS_GROUPID_SYNDICATED_SHOW_CONTENT_BASE 0x840
  2635. #define KS_NABTS_GROUPID_SYNDICATED_SHOW_ADVERTISER_BASE 0x850
  2636. // Used by tv networks in network television data
  2637. #define KS_NABTS_GROUPID_NETWORK_WIDE_CONTENT_BASE 0x860
  2638. #define KS_NABTS_GROUPID_NETWORK_WIDE_ADVERTISER_BASE 0x870
  2639. // Used by telvision stations in local programming data
  2640. #define KS_NABTS_GROUPID_TELEVISION_STATION_CONTENT_BASE 0x880
  2641. #define KS_NABTS_GROUPID_TELEVISION_STATION_ADVERTISER_BASE 0x890
  2642. // Used by cable system in cable head-end originated data
  2643. #define KS_NABTS_GROUPID_LOCAL_CABLE_SYSTEM_CONTENT_BASE 0x8A0
  2644. #define KS_NABTS_GROUPID_LOCAL_CABLE_SYSTEM_ADVERTISER_BASE 0x8B0
  2645. // The values between 0x8C0 - 0x8EF are reserved for future expansion
  2646. // Used by Microsoft for Testing purposes (0x8F0 - 0x8FF)
  2647. #define KS_NABTS_GROUPID_MICROSOFT_RESERVED_TEST_DATA_BASE 0x8F0
  2648. //////////////////////////////////////////////////////////////
  2649. // Stream Format FEC-corrected NABTS bundles
  2650. //////////////////////////////////////////////////////////////
  2651. #define STATIC_KSDATAFORMAT_TYPE_NABTS \
  2652. 0xe757bca0, 0x39ac, 0x11d1, 0xa9, 0xf5, 0x0, 0xc0, 0x4f, 0xbb, 0xde, 0x8f
  2653. DEFINE_GUIDSTRUCT("E757BCA0-39AC-11d1-A9F5-00C04FBBDE8F", KSDATAFORMAT_TYPE_NABTS);
  2654. #define KSDATAFORMAT_TYPE_NABTS DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_NABTS)
  2655. #define STATIC_KSDATAFORMAT_SUBTYPE_NABTS_FEC \
  2656. 0xe757bca1, 0x39ac, 0x11d1, 0xa9, 0xf5, 0x0, 0xc0, 0x4f, 0xbb, 0xde, 0x8f
  2657. DEFINE_GUIDSTRUCT("E757BCA1-39AC-11d1-A9F5-00C04FBBDE8F", KSDATAFORMAT_SUBTYPE_NABTS_FEC);
  2658. #define KSDATAFORMAT_SUBTYPE_NABTS_FEC DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_NABTS_FEC)
  2659. //////////////////////////////////////////////////////////////
  2660. // NABTS Bundle data structure definition
  2661. //////////////////////////////////////////////////////////////
  2662. #define MAX_NABTS_VBI_LINES_PER_FIELD 11
  2663. #define NABTS_LINES_PER_BUNDLE 16
  2664. #define NABTS_PAYLOAD_PER_LINE 28
  2665. #define NABTS_BYTES_PER_LINE 36
  2666. typedef struct _NABTSFEC_BUFFER {
  2667. ULONG dataSize;
  2668. USHORT groupID;
  2669. USHORT Reserved;
  2670. UCHAR data[NABTS_LINES_PER_BUNDLE * NABTS_PAYLOAD_PER_LINE];
  2671. } NABTSFEC_BUFFER, *PNABTSFEC_BUFFER;
  2672. //////////////////////////////////////////////////////////////
  2673. // vbi codec filtering pin properties
  2674. //////////////////////////////////////////////////////////////
  2675. #define STATIC_KSPROPSETID_VBICodecFiltering \
  2676. 0xcafeb0caL, 0x8715, 0x11d0, 0xbd, 0x6a, 0x00, 0x35, 0xc0, 0xed, 0xba, 0xbe
  2677. DEFINE_GUIDSTRUCT("cafeb0ca-8715-11d0-bd6a-0035c0edbabe", KSPROPSETID_VBICodecFiltering);
  2678. #define KSPROPSETID_VBICodecFiltering DEFINE_GUIDNAMED(KSPROPSETID_VBICodecFiltering)
  2679. typedef enum {
  2680. KSPROPERTY_VBICODECFILTERING_SCANLINES_REQUESTED_BIT_ARRAY = 0x01,
  2681. KSPROPERTY_VBICODECFILTERING_SCANLINES_DISCOVERED_BIT_ARRAY,
  2682. KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_REQUESTED_BIT_ARRAY,
  2683. KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_DISCOVERED_BIT_ARRAY,
  2684. KSPROPERTY_VBICODECFILTERING_STATISTICS,
  2685. } KSPROPERTY_VBICODECFILTERING;
  2686. typedef struct _VBICODECFILTERING_SCANLINES {
  2687. DWORD DwordBitArray[32]; // An array of scanline bits 0..1024(32*32)
  2688. } VBICODECFILTERING_SCANLINES, *PVBICODECFILTERING_SCANLINES;
  2689. typedef struct _VBICODECFILTERING_NABTS_SUBSTREAMS {
  2690. DWORD SubstreamMask[128]; // An array of 4096 bits (one for each NABTS GroupID)
  2691. } VBICODECFILTERING_NABTS_SUBSTREAMS, *PVBICODECFILTERING_NABTS_SUBSTREAMS;
  2692. typedef struct _VBICODECFILTERING_CC_SUBSTREAMS {
  2693. DWORD SubstreamMask; // An array of 32 bits (see KS_CC_SUBSTREAM *)
  2694. } VBICODECFILTERING_CC_SUBSTREAMS, *PVBICODECFILTERING_CC_SUBSTREAMS;
  2695. // These KS_CC_SUBSTREAM_* bitmasks are used with VBICODECFILTERING_CC_SUBSTREAMS
  2696. #define KS_CC_SUBSTREAM_ODD 0x0001L // Unfiltered Field 1 Data
  2697. #define KS_CC_SUBSTREAM_EVEN 0x0002L // Unfiltered Field 2 Data
  2698. // The following flags describe CC field 1 substreams: CC1,CC2,TT1,TT2
  2699. #define KS_CC_SUBSTREAM_FIELD1_MASK 0x00F0L
  2700. #define KS_CC_SUBSTREAM_SERVICE_CC1 0x0010L
  2701. #define KS_CC_SUBSTREAM_SERVICE_CC2 0x0020L
  2702. #define KS_CC_SUBSTREAM_SERVICE_T1 0x0040L
  2703. #define KS_CC_SUBSTREAM_SERVICE_T2 0x0080L
  2704. // The following flags describe CC field 2 substreams: CC3,CC4,TT3,TT4,XDS
  2705. #define KS_CC_SUBSTREAM_FIELD2_MASK 0x1F00L
  2706. #define KS_CC_SUBSTREAM_SERVICE_CC3 0x0100L
  2707. #define KS_CC_SUBSTREAM_SERVICE_CC4 0x0200L
  2708. #define KS_CC_SUBSTREAM_SERVICE_T3 0x0400L
  2709. #define KS_CC_SUBSTREAM_SERVICE_T4 0x0800L
  2710. #define KS_CC_SUBSTREAM_SERVICE_XDS 0x1000L
  2711. // Special Note: field 1 or 2 substreams are usually on found on field 1 and 2 respectively
  2712. // If the VBI odd/even polarity is reversed, the correct filtered data will still be found.
  2713. ///////////////////////////////////////////////////////////////////
  2714. // Hardware decoded CC stream format
  2715. ///////////////////////////////////////////////////////////////////
  2716. #define CC_MAX_HW_DECODE_LINES 12
  2717. typedef struct _CC_BYTE_PAIR {
  2718. BYTE Decoded[2];
  2719. USHORT Reserved;
  2720. } CC_BYTE_PAIR, *PCC_BYTE_PAIR;
  2721. typedef struct _CC_HW_FIELD {
  2722. VBICODECFILTERING_SCANLINES ScanlinesRequested;
  2723. ULONG fieldFlags; // KS_VBI_FLAG_FIELD1,2
  2724. LONGLONG PictureNumber;
  2725. CC_BYTE_PAIR Lines[CC_MAX_HW_DECODE_LINES];
  2726. } CC_HW_FIELD, *PCC_HW_FIELD;
  2727. ///////////////////////////////////////////////////////////////////
  2728. // Raw NABTS stream format (TYPE_NABTS, SUBTYPE_NABTS)
  2729. ///////////////////////////////////////////////////////////////////
  2730. // These low-level structures are byte packed( -Zp1 )
  2731. #if !defined( PACK_PRAGMAS_NOT_SUPPORTED )
  2732. #include <pshpack1.h>
  2733. #endif
  2734. typedef struct _NABTS_BUFFER_LINE {
  2735. BYTE Confidence;
  2736. BYTE Bytes[NABTS_BYTES_PER_LINE];
  2737. } NABTS_BUFFER_LINE, *PNABTS_BUFFER_LINE;
  2738. #define NABTS_BUFFER_PICTURENUMBER_SUPPORT 1
  2739. typedef struct _NABTS_BUFFER {
  2740. VBICODECFILTERING_SCANLINES ScanlinesRequested;
  2741. LONGLONG PictureNumber;
  2742. NABTS_BUFFER_LINE NabtsLines[MAX_NABTS_VBI_LINES_PER_FIELD];
  2743. } NABTS_BUFFER, *PNABTS_BUFFER;
  2744. #if !defined( PACK_PRAGMAS_NOT_SUPPORTED )
  2745. #include <poppack.h>
  2746. #endif
  2747. //////////////////////////////////////////////////////////////
  2748. // WST Codec Teletext Media Sample Format
  2749. //////////////////////////////////////////////////////////////
  2750. #define WST_TVTUNER_CHANGE_BEGIN_TUNE 0x1000L // Starting a tuning operation
  2751. #define WST_TVTUNER_CHANGE_END_TUNE 0x2000L // Ending a tuning operation
  2752. #define MAX_WST_VBI_LINES_PER_FIELD 17
  2753. #define WST_BYTES_PER_LINE 42
  2754. typedef struct _WST_BUFFER_LINE {
  2755. BYTE Confidence;
  2756. BYTE Bytes[WST_BYTES_PER_LINE];
  2757. } WST_BUFFER_LINE, *PWST_BUFFER_LINE;
  2758. typedef struct _WST_BUFFER {
  2759. VBICODECFILTERING_SCANLINES ScanlinesRequested;
  2760. WST_BUFFER_LINE WstLines[MAX_WST_VBI_LINES_PER_FIELD];
  2761. } WST_BUFFER, *PWST_BUFFER;
  2762. //
  2763. // Common codec statistics
  2764. //
  2765. typedef struct _VBICODECFILTERING_STATISTICS_COMMON {
  2766. DWORD InputSRBsProcessed; // upstream SRBs received
  2767. DWORD OutputSRBsProcessed; // downstream SRBs sent
  2768. DWORD SRBsIgnored; // SRBs ignored due to no requests
  2769. DWORD InputSRBsMissing; // SRBs dropped upstream
  2770. DWORD OutputSRBsMissing; // Output dropped because no SRB pending
  2771. DWORD OutputFailures; // dropped because of other failure
  2772. DWORD InternalErrors; // could not process due to int. failure
  2773. DWORD ExternalErrors; // could not process due to ext. failure
  2774. DWORD InputDiscontinuities; // discontinuities received
  2775. DWORD DSPFailures; // DSP confidence failure
  2776. DWORD TvTunerChanges; // number of received KS_TVTUNER_CHANGE_BEGIN_TUNE and KS_TVTUNER_CHANGE_END_TUNE pairs.
  2777. DWORD VBIHeaderChanges; // number of received KS_VBI_FLAG_VBIINFOHEADER_CHANGE
  2778. DWORD LineConfidenceAvg; // Average of all DSP confidence results
  2779. DWORD BytesOutput; // Bytes sent downstream
  2780. } VBICODECFILTERING_STATISTICS_COMMON, *PVBICODECFILTERING_STATISTICS_COMMON;
  2781. typedef struct _VBICODECFILTERING_STATISTICS_COMMON_PIN {
  2782. DWORD SRBsProcessed; // SRBs sent/received
  2783. DWORD SRBsIgnored; // SRBs ignored due to filtering
  2784. DWORD SRBsMissing; // SRBs not sent/received
  2785. DWORD InternalErrors; // could not send/receive due to int. failure
  2786. DWORD ExternalErrors; // could not send/receive due to ext. failure
  2787. DWORD Discontinuities; // discontinuities received/sent
  2788. DWORD LineConfidenceAvg; // Average of all DSP confidence results for this pin
  2789. DWORD BytesOutput; // Bytes sent downstream
  2790. } VBICODECFILTERING_STATISTICS_COMMON_PIN, *PVBICODECFILTERING_STATISTICS_COMMON_PIN;
  2791. //
  2792. // Codec-specific statistics - NABTS
  2793. //
  2794. typedef struct _VBICODECFILTERING_STATISTICS_NABTS {
  2795. VBICODECFILTERING_STATISTICS_COMMON Common; // Generic VBI statistics
  2796. DWORD FECBundleBadLines; // Un-FEC-correctable lines
  2797. DWORD FECQueueOverflows; // Number of times FEC queue overflowed
  2798. DWORD FECCorrectedLines; // Lines CSUM corrected by FEC
  2799. DWORD FECUncorrectableLines; // FEC input lines not CSUM correctable
  2800. DWORD BundlesProcessed; // Bundles received from FEC
  2801. DWORD BundlesSent2IP; // Bundles sent to IP driver
  2802. DWORD FilteredLines; // Lines processed and then dropped
  2803. // because no one was interested
  2804. } VBICODECFILTERING_STATISTICS_NABTS, *PVBICODECFILTERING_STATISTICS_NABTS;
  2805. typedef struct _VBICODECFILTERING_STATISTICS_NABTS_PIN {
  2806. VBICODECFILTERING_STATISTICS_COMMON_PIN Common;// Generic VBI pin statistics
  2807. } VBICODECFILTERING_STATISTICS_NABTS_PIN, *PVBICODECFILTERING_STATISTICS_NABTS_PIN;
  2808. //
  2809. // Codec-specific statistics - Closed Caption
  2810. //
  2811. typedef struct _VBICODECFILTERING_STATISTICS_CC {
  2812. VBICODECFILTERING_STATISTICS_COMMON Common; // Generic VBI statistics
  2813. } VBICODECFILTERING_STATISTICS_CC, *PVBICODECFILTERING_STATISTICS_CC;
  2814. typedef struct _VBICODECFILTERING_STATISTICS_CC_PIN {
  2815. VBICODECFILTERING_STATISTICS_COMMON_PIN Common;// Generic VBI pin statistics
  2816. } VBICODECFILTERING_STATISTICS_CC_PIN, *PVBICODECFILTERING_STATISTICS_CC_PIN;
  2817. //
  2818. // Codec-specific statistics - Closed Caption
  2819. //
  2820. typedef struct _VBICODECFILTERING_STATISTICS_TELETEXT {
  2821. VBICODECFILTERING_STATISTICS_COMMON Common; // Generic VBI statistics
  2822. } VBICODECFILTERING_STATISTICS_TELETEXT, *PVBICODECFILTERING_STATISTICS_TELETEXT;
  2823. typedef struct _VBICODECFILTERING_STATISTICS_TELETEXT_PIN {
  2824. VBICODECFILTERING_STATISTICS_COMMON_PIN Common;// Generic VBI pin statistics
  2825. } VBICODECFILTERING_STATISTICS_TELETEXT_PIN, *PVBICODECFILTERING_STATISTICS_TELETEXT_PIN;
  2826. ////////////////////////////////////////////////////////////////////////////
  2827. // VBI codec property structures(based on KSPROPERTY_VBICODECFILTERING enum)
  2828. ////////////////////////////////////////////////////////////////////////////
  2829. // *** Most codecs support this property
  2830. // KSPROPERTY_VBICODECFILTERING_SCANLINES_REQUESTED_BIT_ARRAY
  2831. // KSPROPERTY_VBICODECFILTERING_SCANLINES_DISCOVERED_BIT_ARRAY,
  2832. typedef struct {
  2833. KSPROPERTY Property;
  2834. VBICODECFILTERING_SCANLINES Scanlines;
  2835. } KSPROPERTY_VBICODECFILTERING_SCANLINES_S, *PKSPROPERTY_VBICODECFILTERING_SCANLINES_S;
  2836. // *** NABTS codecs support this property
  2837. // KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_REQUESTED_BIT_ARRAY,
  2838. // KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_DISCOVERED_BIT_ARRAY,
  2839. typedef struct {
  2840. KSPROPERTY Property;
  2841. VBICODECFILTERING_NABTS_SUBSTREAMS Substreams;
  2842. } KSPROPERTY_VBICODECFILTERING_NABTS_SUBSTREAMS_S, *PKSPROPERTY_VBICODECFILTERING_NABTS_SUBSTREAMS_S;
  2843. // *** Closed captioning codecs support this property
  2844. // KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_REQUESTED_BIT_ARRAY,
  2845. // KSPROPERTY_VBICODECFILTERING_SUBSTREAMS_DISCOVERED_BIT_ARRAY,
  2846. typedef struct {
  2847. KSPROPERTY Property;
  2848. VBICODECFILTERING_CC_SUBSTREAMS Substreams;
  2849. } KSPROPERTY_VBICODECFILTERING_CC_SUBSTREAMS_S, *PKSPROPERTY_VBICODECFILTERING_CC_SUBSTREAMS_S;
  2850. // *** Most codecs support these versions of the global and pin properties
  2851. // KSPROPERTY_VBICODECFILTERING_STATISTICS
  2852. typedef struct {
  2853. KSPROPERTY Property;
  2854. VBICODECFILTERING_STATISTICS_COMMON Statistics;
  2855. } KSPROPERTY_VBICODECFILTERING_STATISTICS_COMMON_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_COMMON_S;
  2856. typedef struct {
  2857. KSPROPERTY Property;
  2858. VBICODECFILTERING_STATISTICS_COMMON_PIN Statistics;
  2859. } KSPROPERTY_VBICODECFILTERING_STATISTICS_COMMON_PIN_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_COMMON_PIN_S;
  2860. // *** NABTS codecs support this version of the global and pin properties
  2861. // KSPROPERTY_VBICODECFILTERING_STATISTICS
  2862. typedef struct {
  2863. KSPROPERTY Property;
  2864. VBICODECFILTERING_STATISTICS_NABTS Statistics;
  2865. } KSPROPERTY_VBICODECFILTERING_STATISTICS_NABTS_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_NABTS_S;
  2866. typedef struct {
  2867. KSPROPERTY Property;
  2868. VBICODECFILTERING_STATISTICS_NABTS_PIN Statistics;
  2869. } KSPROPERTY_VBICODECFILTERING_STATISTICS_NABTS_PIN_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_NABTS_PIN_S;
  2870. // *** Closed captioning codecs support this version of the global and pin properties
  2871. // KSPROPERTY_VBICODECFILTERING_STATISTICS
  2872. typedef struct {
  2873. KSPROPERTY Property;
  2874. VBICODECFILTERING_STATISTICS_CC Statistics;
  2875. } KSPROPERTY_VBICODECFILTERING_STATISTICS_CC_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_CC_S;
  2876. typedef struct {
  2877. KSPROPERTY Property;
  2878. VBICODECFILTERING_STATISTICS_CC_PIN Statistics;
  2879. } KSPROPERTY_VBICODECFILTERING_STATISTICS_CC_PIN_S, *PKSPROPERTY_VBICODECFILTERING_STATISTICS_CC_PIN_S;
  2880. // Standard Pin Names for the video capture filter
  2881. //===========================================================================
  2882. #define STATIC_PINNAME_VIDEO_CAPTURE \
  2883. 0xfb6c4281, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2884. #define STATIC_PINNAME_CAPTURE STATIC_PINNAME_VIDEO_CAPTURE
  2885. DEFINE_GUIDSTRUCT("FB6C4281-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_CAPTURE);
  2886. #define PINNAME_VIDEO_CAPTURE DEFINE_GUIDNAMED(PINNAME_VIDEO_CAPTURE)
  2887. #define PINNAME_CAPTURE PINNAME_VIDEO_CAPTURE
  2888. #define STATIC_PINNAME_VIDEO_CC_CAPTURE \
  2889. 0x1aad8061, 0x12d, 0x11d2, 0xb4, 0xb1, 0x0, 0xa0, 0xd1, 0x2, 0xcf, 0xbe
  2890. #define STATIC_PINNAME_CC_CAPTURE STATIC_PINNAME_VIDEO_CC_CAPTURE
  2891. DEFINE_GUIDSTRUCT("1AAD8061-012D-11d2-B4B1-00A0D102CFBE", PINNAME_VIDEO_CC_CAPTURE);
  2892. #define PINNAME_VIDEO_CC_CAPTURE DEFINE_GUIDNAMED(PINNAME_VIDEO_CC_CAPTURE)
  2893. #define STATIC_PINNAME_VIDEO_NABTS_CAPTURE \
  2894. 0x29703660, 0x498a, 0x11d2, 0xb4, 0xb1, 0x0, 0xa0, 0xd1, 0x2, 0xcf, 0xbe
  2895. #define STATIC_PINNAME_NABTS_CAPTURE STATIC_PINNAME_VIDEO_NABTS_CAPTURE
  2896. DEFINE_GUIDSTRUCT("29703660-498A-11d2-B4B1-00A0D102CFBE", PINNAME_VIDEO_NABTS_CAPTURE);
  2897. #define PINNAME_VIDEO_NABTS_CAPTURE DEFINE_GUIDNAMED(PINNAME_VIDEO_NABTS_CAPTURE)
  2898. #define STATIC_PINNAME_VIDEO_PREVIEW \
  2899. 0xfb6c4282, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2900. #define STATIC_PINNAME_PREVIEW STATIC_PINNAME_VIDEO_PREVIEW
  2901. DEFINE_GUIDSTRUCT("FB6C4282-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_PREVIEW);
  2902. #define PINNAME_VIDEO_PREVIEW DEFINE_GUIDNAMED(PINNAME_VIDEO_PREVIEW)
  2903. #define PINNAME_PREVIEW PINNAME_VIDEO_PREVIEW
  2904. #define STATIC_PINNAME_VIDEO_ANALOGVIDEOIN \
  2905. 0xfb6c4283, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2906. DEFINE_GUIDSTRUCT("FB6C4283-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_ANALOGVIDEOIN);
  2907. #define PINNAME_VIDEO_ANALOGVIDEOIN DEFINE_GUIDNAMED(PINNAME_VIDEO_ANALOGVIDEOIN)
  2908. #define STATIC_PINNAME_VIDEO_VBI \
  2909. 0xfb6c4284, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2910. DEFINE_GUIDSTRUCT("FB6C4284-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_VBI);
  2911. #define PINNAME_VIDEO_VBI DEFINE_GUIDNAMED(PINNAME_VIDEO_VBI)
  2912. #define STATIC_PINNAME_VIDEO_VIDEOPORT \
  2913. 0xfb6c4285, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2914. DEFINE_GUIDSTRUCT("FB6C4285-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_VIDEOPORT);
  2915. #define PINNAME_VIDEO_VIDEOPORT DEFINE_GUIDNAMED(PINNAME_VIDEO_VIDEOPORT)
  2916. #define STATIC_PINNAME_VIDEO_NABTS \
  2917. 0xfb6c4286, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2918. DEFINE_GUIDSTRUCT("FB6C4286-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_NABTS);
  2919. #define PINNAME_VIDEO_NABTS DEFINE_GUIDNAMED(PINNAME_VIDEO_NABTS)
  2920. #define STATIC_PINNAME_VIDEO_EDS \
  2921. 0xfb6c4287, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2922. DEFINE_GUIDSTRUCT("FB6C4287-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_EDS);
  2923. #define PINNAME_VIDEO_EDS DEFINE_GUIDNAMED(PINNAME_VIDEO_EDS)
  2924. #define STATIC_PINNAME_VIDEO_TELETEXT \
  2925. 0xfb6c4288, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2926. DEFINE_GUIDSTRUCT("FB6C4288-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_TELETEXT);
  2927. #define PINNAME_VIDEO_TELETEXT DEFINE_GUIDNAMED(PINNAME_VIDEO_TELETEXT)
  2928. #define STATIC_PINNAME_VIDEO_CC \
  2929. 0xfb6c4289, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2930. DEFINE_GUIDSTRUCT("FB6C4289-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_CC);
  2931. #define PINNAME_VIDEO_CC DEFINE_GUIDNAMED(PINNAME_VIDEO_CC)
  2932. #define STATIC_PINNAME_VIDEO_STILL \
  2933. 0xfb6c428A, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2934. DEFINE_GUIDSTRUCT("FB6C428A-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_STILL);
  2935. #define PINNAME_VIDEO_STILL DEFINE_GUIDNAMED(PINNAME_VIDEO_STILL)
  2936. #define STATIC_PINNAME_VIDEO_TIMECODE \
  2937. 0xfb6c428B, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2938. DEFINE_GUIDSTRUCT("FB6C428B-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_TIMECODE);
  2939. #define PINNAME_VIDEO_TIMECODE DEFINE_GUIDNAMED(PINNAME_VIDEO_TIMECODE)
  2940. #define STATIC_PINNAME_VIDEO_VIDEOPORT_VBI \
  2941. 0xfb6c428C, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  2942. DEFINE_GUIDSTRUCT("FB6C428C-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_VIDEOPORT_VBI);
  2943. #define PINNAME_VIDEO_VIDEOPORT_VBI DEFINE_GUIDNAMED(PINNAME_VIDEO_VIDEOPORT_VBI)
  2944. //===========================================================================
  2945. // KSSTREAM_HEADER extensions for digital video
  2946. //===========================================================================
  2947. #define KS_VIDEO_FLAG_FRAME 0x0000L // Frame or Field (default is frame)
  2948. #define KS_VIDEO_FLAG_FIELD1 0x0001L
  2949. #define KS_VIDEO_FLAG_FIELD2 0x0002L
  2950. #define KS_VIDEO_FLAG_I_FRAME 0x0000L // I, B, or P (default is I)
  2951. #define KS_VIDEO_FLAG_P_FRAME 0x0010L
  2952. #define KS_VIDEO_FLAG_B_FRAME 0x0020L
  2953. typedef struct tagKS_FRAME_INFO {
  2954. ULONG ExtendedHeaderSize; // Size of this extended header
  2955. DWORD dwFrameFlags; // Field1, Field2, or Frame
  2956. LONGLONG PictureNumber;
  2957. LONGLONG DropCount;
  2958. // The following are only set when using OverlayMixer
  2959. HANDLE hDirectDraw; // user mode DDraw handle
  2960. HANDLE hSurfaceHandle; // user mode surface handle
  2961. RECT DirectDrawRect; // portion of surface locked
  2962. // Reserved fields, never reference these
  2963. DWORD Reserved1;
  2964. DWORD Reserved2;
  2965. DWORD Reserved3;
  2966. DWORD Reserved4;
  2967. } KS_FRAME_INFO, *PKS_FRAME_INFO;
  2968. //===========================================================================
  2969. // KSSTREAM_HEADER extensions for VBI
  2970. //===========================================================================
  2971. #define KS_VBI_FLAG_FIELD1 0x0001L
  2972. #define KS_VBI_FLAG_FIELD2 0x0002L
  2973. #define KS_VBI_FLAG_MV_PRESENT 0x0100L
  2974. #define KS_VBI_FLAG_MV_HARDWARE 0x0200L
  2975. #define KS_VBI_FLAG_MV_DETECTED 0x0400L
  2976. #define KS_VBI_FLAG_TVTUNER_CHANGE 0x0010L // TvTunerChangeInfo is valid
  2977. #define KS_VBI_FLAG_VBIINFOHEADER_CHANGE 0x0020L // VBIInfoHeader is valid
  2978. typedef struct tagKS_VBI_FRAME_INFO {
  2979. ULONG ExtendedHeaderSize; // Size of this extended header
  2980. DWORD dwFrameFlags; // Field1, Field2, or Frame; & etc
  2981. LONGLONG PictureNumber; // Test only?
  2982. LONGLONG DropCount; // Test only?
  2983. DWORD dwSamplingFrequency;
  2984. KS_TVTUNER_CHANGE_INFO TvTunerChangeInfo;
  2985. KS_VBIINFOHEADER VBIInfoHeader;
  2986. } KS_VBI_FRAME_INFO, *PKS_VBI_FRAME_INFO;
  2987. //===========================================================================
  2988. // Analog video formats, used with:
  2989. // Analog Video Decoders
  2990. // TVTuners
  2991. // Analog Video Encoders
  2992. //
  2993. // XXX_STANDARDS_SUPPORTED returns a bitmask
  2994. //===========================================================================
  2995. typedef enum
  2996. {
  2997. KS_AnalogVideo_None = 0x00000000, // This is a digital sensor
  2998. KS_AnalogVideo_NTSC_M = 0x00000001, // 75 IRE Setup
  2999. KS_AnalogVideo_NTSC_M_J = 0x00000002, // Japan, 0 IRE Setup
  3000. KS_AnalogVideo_NTSC_433 = 0x00000004,
  3001. KS_AnalogVideo_PAL_B = 0x00000010,
  3002. KS_AnalogVideo_PAL_D = 0x00000020,
  3003. KS_AnalogVideo_PAL_G = 0x00000040,
  3004. KS_AnalogVideo_PAL_H = 0x00000080,
  3005. KS_AnalogVideo_PAL_I = 0x00000100,
  3006. KS_AnalogVideo_PAL_M = 0x00000200,
  3007. KS_AnalogVideo_PAL_N = 0x00000400,
  3008. KS_AnalogVideo_PAL_60 = 0x00000800,
  3009. KS_AnalogVideo_SECAM_B = 0x00001000,
  3010. KS_AnalogVideo_SECAM_D = 0x00002000,
  3011. KS_AnalogVideo_SECAM_G = 0x00004000,
  3012. KS_AnalogVideo_SECAM_H = 0x00008000,
  3013. KS_AnalogVideo_SECAM_K = 0x00010000,
  3014. KS_AnalogVideo_SECAM_K1 = 0x00020000,
  3015. KS_AnalogVideo_SECAM_L = 0x00040000,
  3016. KS_AnalogVideo_SECAM_L1 = 0x00080000,
  3017. KS_AnalogVideo_PAL_N_COMBO
  3018. = 0x00100000
  3019. } KS_AnalogVideoStandard;
  3020. #define KS_AnalogVideo_NTSC_Mask 0x00000007
  3021. #define KS_AnalogVideo_PAL_Mask 0x00100FF0
  3022. #define KS_AnalogVideo_SECAM_Mask 0x000FF000
  3023. //===========================================================================
  3024. // Property set definitions
  3025. // The comments show whether a given property is:
  3026. // R : READ only
  3027. // w : WRITE only
  3028. // RW : READ / WRITE
  3029. // O : Optional (return E_UNSUPPORTED if you don't handle this)
  3030. //===========================================================================
  3031. #define STATIC_PROPSETID_ALLOCATOR_CONTROL\
  3032. 0x53171960, 0x148e, 0x11d2, 0x99, 0x79, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  3033. DEFINE_GUIDSTRUCT("53171960-148E-11d2-9979-0000C0CC16BA", PROPSETID_ALLOCATOR_CONTROL);
  3034. #define PROPSETID_ALLOCATOR_CONTROL DEFINE_GUIDNAMED(PROPSETID_ALLOCATOR_CONTROL)
  3035. typedef enum {
  3036. KSPROPERTY_ALLOCATOR_CONTROL_HONOR_COUNT, // R O (will allocate exactly this number of buffers)
  3037. KSPROPERTY_ALLOCATOR_CONTROL_SURFACE_SIZE, // R O (return 2 DWORDs specifying surface size)
  3038. // W I (informn a capture driver whether interleave capture is possible or
  3039. // not - a value of 1 means that interleaved capture is supported)
  3040. KSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_CAPS,
  3041. // R O (if value == 1, then the ovmixer will turn on the DDVP_INTERLEAVE
  3042. // flag thus allowing interleaved capture of the video)
  3043. KSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_INTERLEAVE,
  3044. } KSPROPERTY_ALLOCATOR_CONTROL;
  3045. typedef struct {
  3046. //KSPROPERTY Property;
  3047. ULONG CX;
  3048. ULONG CY;
  3049. } KSPROPERTY_ALLOCATOR_CONTROL_SURFACE_SIZE_S, *PKSPROPERTY_ALLOCATOR_CONTROL_SURFACE_SIZE_S;
  3050. typedef struct {
  3051. //KSPROPERTY Property;
  3052. ULONG InterleavedCapSupported;
  3053. } KSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_CAPS_S, *PKSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_CAPS_S;
  3054. typedef struct {
  3055. //KSPROPERTY Property;
  3056. ULONG InterleavedCapPossible;
  3057. } KSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_INTERLEAVE_S, *PKSPROPERTY_ALLOCATOR_CONTROL_CAPTURE_INTERLEAVE_S;
  3058. //===========================================================================
  3059. #define STATIC_PROPSETID_VIDCAP_VIDEOPROCAMP\
  3060. 0xC6E13360L, 0x30AC, 0x11d0, 0xa1, 0x8c, 0x00, 0xA0, 0xC9, 0x11, 0x89, 0x56
  3061. DEFINE_GUIDSTRUCT("C6E13360-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_VIDEOPROCAMP);
  3062. #define PROPSETID_VIDCAP_VIDEOPROCAMP DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEOPROCAMP)
  3063. typedef enum {
  3064. KSPROPERTY_VIDEOPROCAMP_BRIGHTNESS, // RW O
  3065. KSPROPERTY_VIDEOPROCAMP_CONTRAST, // RW O
  3066. KSPROPERTY_VIDEOPROCAMP_HUE, // RW O
  3067. KSPROPERTY_VIDEOPROCAMP_SATURATION, // RW O
  3068. KSPROPERTY_VIDEOPROCAMP_SHARPNESS, // RW O
  3069. KSPROPERTY_VIDEOPROCAMP_GAMMA, // RW O
  3070. KSPROPERTY_VIDEOPROCAMP_COLORENABLE, // RW O
  3071. KSPROPERTY_VIDEOPROCAMP_WHITEBALANCE, // RW O
  3072. KSPROPERTY_VIDEOPROCAMP_BACKLIGHT_COMPENSATION,// RW O
  3073. KSPROPERTY_VIDEOPROCAMP_GAIN, // RW O
  3074. } KSPROPERTY_VIDCAP_VIDEOPROCAMP;
  3075. typedef struct {
  3076. KSPROPERTY Property;
  3077. LONG Value; // Value to set or get
  3078. ULONG Flags; // KSPROPERTY_VIDEOPROCAMP_FLAGS_*
  3079. ULONG Capabilities; // KSPROPERTY_VIDEOPROCAMP_FLAGS_*
  3080. } KSPROPERTY_VIDEOPROCAMP_S, *PKSPROPERTY_VIDEOPROCAMP_S;
  3081. #define KSPROPERTY_VIDEOPROCAMP_FLAGS_AUTO 0X0001L
  3082. #define KSPROPERTY_VIDEOPROCAMP_FLAGS_MANUAL 0X0002L
  3083. //===========================================================================
  3084. #define STATIC_PROPSETID_TUNER\
  3085. 0x6a2e0605L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3086. DEFINE_GUIDSTRUCT("6a2e0605-28e4-11d0-a18c-00a0c9118956", PROPSETID_TUNER);
  3087. #define PROPSETID_TUNER DEFINE_GUIDNAMED(PROPSETID_TUNER)
  3088. typedef enum {
  3089. KSPROPERTY_TUNER_CAPS, // R -overall device capabilities
  3090. KSPROPERTY_TUNER_MODE_CAPS, // R -capabilities in this mode
  3091. KSPROPERTY_TUNER_MODE, // RW -set a mode (TV, FM, AM, DSS)
  3092. KSPROPERTY_TUNER_STANDARD, // R -get TV standard (only if TV mode)
  3093. KSPROPERTY_TUNER_FREQUENCY, // RW -set/get frequency
  3094. KSPROPERTY_TUNER_INPUT, // RW -select an input
  3095. KSPROPERTY_TUNER_STATUS, // R -tuning status
  3096. KSPROPERTY_TUNER_IF_MEDIUM // R O-Medium for IF or Transport Pin
  3097. } KSPROPERTY_TUNER;
  3098. typedef enum {
  3099. KSPROPERTY_TUNER_MODE_TV = 0X0001,
  3100. KSPROPERTY_TUNER_MODE_FM_RADIO = 0X0002,
  3101. KSPROPERTY_TUNER_MODE_AM_RADIO = 0X0004,
  3102. KSPROPERTY_TUNER_MODE_DSS = 0X0008,
  3103. KSPROPERTY_TUNER_MODE_ATSC = 0X0010, // also used for DVB-T, DVB-C
  3104. } KSPROPERTY_TUNER_MODES;
  3105. // Describes how the device tunes. Only one of these flags may be set
  3106. // in KSPROPERTY_TUNER_MODE_CAPS_S.Strategy
  3107. // Describe how the driver should attempt to tune:
  3108. // EXACT: just go to the frequency specified (no fine tuning)
  3109. // FINE: (slow) do an exhaustive search for the best signal
  3110. // COARSE: (fast) use larger frequency jumps to just determine if any signal
  3111. typedef enum {
  3112. KS_TUNER_TUNING_EXACT = 1, // No fine tuning
  3113. KS_TUNER_TUNING_FINE, // Fine grained search
  3114. KS_TUNER_TUNING_COARSE, // Coarse search
  3115. }KS_TUNER_TUNING_FLAGS;
  3116. typedef enum {
  3117. KS_TUNER_STRATEGY_PLL = 0X01, // Tune by PLL offset
  3118. KS_TUNER_STRATEGY_SIGNAL_STRENGTH = 0X02, // Tune by signal strength
  3119. KS_TUNER_STRATEGY_DRIVER_TUNES = 0X04, // Driver does fine tuning
  3120. }KS_TUNER_STRATEGY;
  3121. typedef struct {
  3122. KSPROPERTY Property;
  3123. ULONG ModesSupported; // KS_PROPERTY_TUNER_MODES_*
  3124. KSPIN_MEDIUM VideoMedium; // GUID_NULL (no pin), or GUID
  3125. KSPIN_MEDIUM TVAudioMedium; // GUID_NULL (no pin), or GUID
  3126. KSPIN_MEDIUM RadioAudioMedium; // GUID_NULL (no pin), or GUID
  3127. } KSPROPERTY_TUNER_CAPS_S, *PKSPROPERTY_TUNER_CAPS_S;
  3128. typedef struct {
  3129. KSPROPERTY Property;
  3130. KSPIN_MEDIUM IFMedium; // GUID_NULL (no pin), or GUID
  3131. } KSPROPERTY_TUNER_IF_MEDIUM_S, *PKSPROPERTY_TUNER_IF_MEDIUM_S;
  3132. typedef struct {
  3133. KSPROPERTY Property;
  3134. ULONG Mode; // IN: KSPROPERTY_TUNER_MODE
  3135. ULONG StandardsSupported; // KS_AnalogVideo_* (if TV or DSS)
  3136. ULONG MinFrequency; // Hz
  3137. ULONG MaxFrequency; // Hz
  3138. ULONG TuningGranularity; // Hz
  3139. ULONG NumberOfInputs; // count of inputs
  3140. ULONG SettlingTime; // milliSeconds
  3141. ULONG Strategy; // KS_TUNER_STRATEGY
  3142. } KSPROPERTY_TUNER_MODE_CAPS_S, *PKSPROPERTY_TUNER_MODE_CAPS_S;
  3143. typedef struct {
  3144. KSPROPERTY Property;
  3145. ULONG Mode; // IN: KSPROPERTY_TUNER_MODE
  3146. } KSPROPERTY_TUNER_MODE_S, *PKSPROPERTY_TUNER_MODE_S;
  3147. typedef struct {
  3148. KSPROPERTY Property;
  3149. ULONG Frequency; // Hz
  3150. ULONG LastFrequency; // Hz (last known good)
  3151. ULONG TuningFlags; // KS_TUNER_TUNING_FLAGS
  3152. ULONG VideoSubChannel; // DSS
  3153. ULONG AudioSubChannel; // DSS
  3154. ULONG Channel; // VBI decoders
  3155. ULONG Country; // VBI decoders
  3156. } KSPROPERTY_TUNER_FREQUENCY_S, *PKSPROPERTY_TUNER_FREQUENCY_S;
  3157. typedef struct {
  3158. KSPROPERTY Property;
  3159. ULONG Standard; // KS_AnalogVideo_*
  3160. } KSPROPERTY_TUNER_STANDARD_S, *PKSPROPERTY_TUNER_STANDARD_S;
  3161. typedef struct {
  3162. KSPROPERTY Property;
  3163. ULONG InputIndex; // 0 to (n-1) inputs
  3164. } KSPROPERTY_TUNER_INPUT_S, *PKSPROPERTY_TUNER_INPUT_S;
  3165. typedef struct {
  3166. KSPROPERTY Property;
  3167. ULONG CurrentFrequency; // Hz
  3168. ULONG PLLOffset; // if Strategy.KS_TUNER_STRATEGY_PLL
  3169. ULONG SignalStrength; // if Stretegy.KS_TUNER_STRATEGY_SIGNAL_STRENGTH
  3170. ULONG Busy; // TRUE if in the process of tuning
  3171. } KSPROPERTY_TUNER_STATUS_S, *PKSPROPERTY_TUNER_STATUS_S;
  3172. #define STATIC_EVENTSETID_TUNER\
  3173. 0x6a2e0606L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3174. DEFINE_GUIDSTRUCT("6a2e0606-28e4-11d0-a18c-00a0c9118956", EVENTSETID_TUNER);
  3175. #define EVENTSETID_TUNER DEFINE_GUIDNAMED(EVENTSETID_TUNER)
  3176. typedef enum {
  3177. KSEVENT_TUNER_CHANGED
  3178. } KSEVENT_TUNER;
  3179. //===========================================================================
  3180. #define STATIC_PROPSETID_VIDCAP_VIDEOENCODER\
  3181. 0x6a2e0610L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3182. DEFINE_GUIDSTRUCT("6a2e0610-28e4-11d0-a18c-00a0c9118956", PROPSETID_VIDCAP_VIDEOENCODER);
  3183. #define PROPSETID_VIDCAP_VIDEOENCODER DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEOENCODER)
  3184. typedef enum {
  3185. KSPROPERTY_VIDEOENCODER_CAPS, // R
  3186. KSPROPERTY_VIDEOENCODER_STANDARD, // RW
  3187. KSPROPERTY_VIDEOENCODER_COPYPROTECTION, // RW O
  3188. KSPROPERTY_VIDEOENCODER_CC_ENABLE, // RW O
  3189. } KSPROPERTY_VIDCAP_VIDEOENCODER;
  3190. typedef struct {
  3191. KSPROPERTY Property;
  3192. LONG Value; // value to get or set
  3193. ULONG Flags; //
  3194. ULONG Capabilities; //
  3195. } KSPROPERTY_VIDEOENCODER_S, *PKSPROPERTY_VIDEOENCODER_S;
  3196. //===========================================================================
  3197. #define STATIC_PROPSETID_VIDCAP_VIDEODECODER\
  3198. 0xC6E13350L, 0x30AC, 0x11d0, 0xA1, 0x8C, 0x00, 0xA0, 0xC9, 0x11, 0x89, 0x56
  3199. DEFINE_GUIDSTRUCT("C6E13350-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_VIDEODECODER);
  3200. #define PROPSETID_VIDCAP_VIDEODECODER DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEODECODER)
  3201. typedef enum {
  3202. KSPROPERTY_VIDEODECODER_CAPS, // R
  3203. KSPROPERTY_VIDEODECODER_STANDARD, // RW
  3204. KSPROPERTY_VIDEODECODER_STATUS, // R
  3205. KSPROPERTY_VIDEODECODER_OUTPUT_ENABLE, // Rw O
  3206. KSPROPERTY_VIDEODECODER_VCR_TIMING, // RW O
  3207. } KSPROPERTY_VIDCAP_VIDEODECODER;
  3208. typedef enum {
  3209. KS_VIDEODECODER_FLAGS_CAN_DISABLE_OUTPUT = 0X0001, // VP Output can tri-stae
  3210. KS_VIDEODECODER_FLAGS_CAN_USE_VCR_LOCKING = 0X0002, // VCR PLL timings
  3211. KS_VIDEODECODER_FLAGS_CAN_INDICATE_LOCKED = 0X0004, // Can indicate valid signal
  3212. }KS_VIDEODECODER_FLAGS;
  3213. typedef struct {
  3214. KSPROPERTY Property;
  3215. ULONG StandardsSupported; // KS_AnalogVideo_*
  3216. ULONG Capabilities; // KS_VIDEODECODER_FLAGS_*
  3217. ULONG SettlingTime; // milliseconds
  3218. ULONG HSyncPerVSync; // Number of HSync Pulses per VSync
  3219. } KSPROPERTY_VIDEODECODER_CAPS_S, *PKSPROPERTY_VIDEODECODER_CAPS_S;
  3220. typedef struct {
  3221. KSPROPERTY Property;
  3222. ULONG NumberOfLines; // 525 or 625 lines detected
  3223. ULONG SignalLocked; // TRUE if signal is locked
  3224. } KSPROPERTY_VIDEODECODER_STATUS_S, *PKSPROPERTY_VIDEODECODER_STATUS_S;
  3225. typedef struct {
  3226. KSPROPERTY Property;
  3227. ULONG Value; // Get or set a value
  3228. } KSPROPERTY_VIDEODECODER_S, *PKSPROPERTY_VIDEODECODER_S;
  3229. #define STATIC_EVENTSETID_VIDEODECODER\
  3230. 0x6a2e0621L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3231. DEFINE_GUIDSTRUCT("6a2e0621-28e4-11d0-a18c-00a0c9118956", EVENTSETID_VIDEODECODER);
  3232. #define EVENTSETID_VIDEODECODER DEFINE_GUIDNAMED(EVENTSETID_VIDEODECODER)
  3233. typedef enum {
  3234. KSEVENT_VIDEODECODER_CHANGED
  3235. } KSEVENT_VIDEODECODER;
  3236. //===========================================================================
  3237. #define STATIC_PROPSETID_VIDCAP_CAMERACONTROL\
  3238. 0xC6E13370L, 0x30AC, 0x11d0, 0xa1, 0x8C, 0x00, 0xA0, 0xC9, 0x11, 0x89, 0x56
  3239. DEFINE_GUIDSTRUCT("C6E13370-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_CAMERACONTROL);
  3240. #define PROPSETID_VIDCAP_CAMERACONTROL DEFINE_GUIDNAMED(PROPSETID_VIDCAP_CAMERACONTROL)
  3241. typedef enum {
  3242. KSPROPERTY_CAMERACONTROL_PAN, // RW O
  3243. KSPROPERTY_CAMERACONTROL_TILT, // RW O
  3244. KSPROPERTY_CAMERACONTROL_ROLL, // RW O
  3245. KSPROPERTY_CAMERACONTROL_ZOOM, // RW O
  3246. KSPROPERTY_CAMERACONTROL_EXPOSURE, // RW O
  3247. KSPROPERTY_CAMERACONTROL_IRIS, // RW O
  3248. KSPROPERTY_CAMERACONTROL_FOCUS, // RW O
  3249. } KSPROPERTY_VIDCAP_CAMERACONTROL;
  3250. typedef struct {
  3251. KSPROPERTY Property;
  3252. LONG Value; // value to get or set
  3253. ULONG Flags; // KSPROPERTY_CAMERACONTROL_FLAGS_*
  3254. ULONG Capabilities; // KSPROPERTY_CAMERACONTROL_FLAGS_*
  3255. } KSPROPERTY_CAMERACONTROL_S, *PKSPROPERTY_CAMERACONTROL_S;
  3256. #define KSPROPERTY_CAMERACONTROL_FLAGS_AUTO 0X0001L
  3257. #define KSPROPERTY_CAMERACONTROL_FLAGS_MANUAL 0X0002L
  3258. #define KSPROPERTY_CAMERACONTROL_FLAGS_ABSOLUTE 0X0000L
  3259. #define KSPROPERTY_CAMERACONTROL_FLAGS_RELATIVE 0X0010L
  3260. //===========================================================================
  3261. #define STATIC_PROPSETID_VIDCAP_CROSSBAR\
  3262. 0x6a2e0640L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3263. DEFINE_GUIDSTRUCT("6a2e0640-28e4-11d0-a18c-00a0c9118956", PROPSETID_VIDCAP_CROSSBAR);
  3264. #define PROPSETID_VIDCAP_CROSSBAR DEFINE_GUIDNAMED(PROPSETID_VIDCAP_CROSSBAR)
  3265. typedef enum {
  3266. KSPROPERTY_CROSSBAR_CAPS, // R
  3267. KSPROPERTY_CROSSBAR_PININFO, // R
  3268. KSPROPERTY_CROSSBAR_CAN_ROUTE, // R
  3269. KSPROPERTY_CROSSBAR_ROUTE, // RW
  3270. } KSPROPERTY_VIDCAP_CROSSBAR;
  3271. typedef struct {
  3272. KSPROPERTY Property;
  3273. ULONG NumberOfInputs; // the number of audio and video input pins
  3274. ULONG NumberOfOutputs; // the number of audio and video output pins
  3275. } KSPROPERTY_CROSSBAR_CAPS_S, *PKSPROPERTY_CROSSBAR_CAPS_S;
  3276. typedef struct {
  3277. KSPROPERTY Property;
  3278. KSPIN_DATAFLOW Direction; // KSPIN_DATAFLOW_IN or KSPIN_DATAFLOW_OUT?
  3279. ULONG Index; // Which pin to return data for?
  3280. ULONG PinType; // KS_PhysConn_Video_* or KS_PhysConn_Audio_*
  3281. ULONG RelatedPinIndex; // For video pins, this is the related audio pin
  3282. KSPIN_MEDIUM Medium; // Identifies the hardware connection
  3283. } KSPROPERTY_CROSSBAR_PININFO_S, *PKSPROPERTY_CROSSBAR_PININFO_S;
  3284. typedef struct {
  3285. KSPROPERTY Property;
  3286. ULONG IndexInputPin; // Zero based index of the input pin
  3287. ULONG IndexOutputPin; // Zero based index of the output pin
  3288. ULONG CanRoute; // returns non-zero on CAN_ROUTE if routing is possible
  3289. } KSPROPERTY_CROSSBAR_ROUTE_S, *PKSPROPERTY_CROSSBAR_ROUTE_S;
  3290. #define STATIC_EVENTSETID_CROSSBAR\
  3291. 0x6a2e0641L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3292. DEFINE_GUIDSTRUCT("6a2e0641-28e4-11d0-a18c-00a0c9118956", EVENTSETID_CROSSBAR);
  3293. #define EVENTSETID_CROSSBAR DEFINE_GUIDNAMED(EVENTSETID_CROSSBAR)
  3294. typedef enum {
  3295. KSEVENT_CROSSBAR_CHANGED
  3296. } KSEVENT_CROSSBAR;
  3297. // The following IDs should match the AM equivalents
  3298. typedef enum {
  3299. KS_PhysConn_Video_Tuner = 1,
  3300. KS_PhysConn_Video_Composite,
  3301. KS_PhysConn_Video_SVideo,
  3302. KS_PhysConn_Video_RGB,
  3303. KS_PhysConn_Video_YRYBY,
  3304. KS_PhysConn_Video_SerialDigital,
  3305. KS_PhysConn_Video_ParallelDigital,
  3306. KS_PhysConn_Video_SCSI,
  3307. KS_PhysConn_Video_AUX,
  3308. KS_PhysConn_Video_1394,
  3309. KS_PhysConn_Video_USB,
  3310. KS_PhysConn_Video_VideoDecoder,
  3311. KS_PhysConn_Video_VideoEncoder,
  3312. KS_PhysConn_Video_SCART,
  3313. KS_PhysConn_Audio_Tuner = 4096,
  3314. KS_PhysConn_Audio_Line,
  3315. KS_PhysConn_Audio_Mic,
  3316. KS_PhysConn_Audio_AESDigital,
  3317. KS_PhysConn_Audio_SPDIFDigital,
  3318. KS_PhysConn_Audio_SCSI,
  3319. KS_PhysConn_Audio_AUX,
  3320. KS_PhysConn_Audio_1394,
  3321. KS_PhysConn_Audio_USB,
  3322. KS_PhysConn_Audio_AudioDecoder,
  3323. } KS_PhysicalConnectorType;
  3324. //===========================================================================
  3325. #define STATIC_PROPSETID_VIDCAP_TVAUDIO\
  3326. 0x6a2e0650L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3327. DEFINE_GUIDSTRUCT("6a2e0650-28e4-11d0-a18c-00a0c9118956", PROPSETID_VIDCAP_TVAUDIO);
  3328. #define PROPSETID_VIDCAP_TVAUDIO DEFINE_GUIDNAMED(PROPSETID_VIDCAP_TVAUDIO)
  3329. typedef enum {
  3330. KSPROPERTY_TVAUDIO_CAPS, // R
  3331. KSPROPERTY_TVAUDIO_MODE, // RW
  3332. KSPROPERTY_TVAUDIO_CURRENTLY_AVAILABLE_MODES // R
  3333. } KSPROPERTY_VIDCAP_TVAUDIO;
  3334. #define KS_TVAUDIO_MODE_MONO 0x0001 // Mono
  3335. #define KS_TVAUDIO_MODE_STEREO 0x0002 // Stereo
  3336. #define KS_TVAUDIO_MODE_LANG_A 0x0010 // Primary language
  3337. #define KS_TVAUDIO_MODE_LANG_B 0x0020 // 2nd avail language
  3338. #define KS_TVAUDIO_MODE_LANG_C 0x0040 // 3rd avail language
  3339. typedef struct {
  3340. KSPROPERTY Property;
  3341. ULONG Capabilities; // Bitmask of KS_TVAUDIO_MODE_*
  3342. KSPIN_MEDIUM InputMedium;
  3343. KSPIN_MEDIUM OutputMedium;
  3344. } KSPROPERTY_TVAUDIO_CAPS_S, *PKSPROPERTY_TVAUDIO_CAPS_S;
  3345. typedef struct {
  3346. KSPROPERTY Property;
  3347. ULONG Mode; // KS_TVAUDIO_MODE_*
  3348. } KSPROPERTY_TVAUDIO_S, *PKSPROPERTY_TVAUDIO_S;
  3349. #define STATIC_KSEVENTSETID_VIDCAP_TVAUDIO\
  3350. 0x6a2e0651L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3351. DEFINE_GUIDSTRUCT("6a2e0651-28e4-11d0-a18c-00a0c9118956", KSEVENTSETID_VIDCAP_TVAUDIO);
  3352. #define KSEVENTSETID_VIDCAP_TVAUDIO DEFINE_GUIDNAMED(KSEVENTSETID_VIDCAP_TVAUDIO)
  3353. typedef enum {
  3354. KSEVENT_TVAUDIO_CHANGED,
  3355. } KSEVENT_TVAUDIO;
  3356. //===========================================================================
  3357. #define STATIC_PROPSETID_VIDCAP_VIDEOCOMPRESSION\
  3358. 0xC6E13343L, 0x30AC, 0x11d0, 0xA1, 0x8C, 0x00, 0xA0, 0xC9, 0x11, 0x89, 0x56
  3359. DEFINE_GUIDSTRUCT("C6E13343-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_VIDEOCOMPRESSION);
  3360. #define PROPSETID_VIDCAP_VIDEOCOMPRESSION DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEOCOMPRESSION)
  3361. typedef enum {
  3362. KSPROPERTY_VIDEOCOMPRESSION_GETINFO, // R
  3363. KSPROPERTY_VIDEOCOMPRESSION_KEYFRAME_RATE, // RW
  3364. KSPROPERTY_VIDEOCOMPRESSION_PFRAMES_PER_KEYFRAME, // RW
  3365. KSPROPERTY_VIDEOCOMPRESSION_QUALITY, // RW
  3366. KSPROPERTY_VIDEOCOMPRESSION_OVERRIDE_KEYFRAME, // W
  3367. KSPROPERTY_VIDEOCOMPRESSION_OVERRIDE_FRAME_SIZE, // W
  3368. KSPROPERTY_VIDEOCOMPRESSION_WINDOWSIZE, // RW
  3369. } KSPROPERTY_VIDCAP_VIDEOCOMPRESSION;
  3370. typedef enum {
  3371. KS_CompressionCaps_CanQuality = 1,
  3372. KS_CompressionCaps_CanCrunch = 2,
  3373. KS_CompressionCaps_CanKeyFrame = 4,
  3374. KS_CompressionCaps_CanBFrame = 8,
  3375. KS_CompressionCaps_CanWindow = 0x10,
  3376. } KS_CompressionCaps;
  3377. typedef struct {
  3378. KSPROPERTY Property;
  3379. // Note, no VersionString!
  3380. // Note, no DescriptionString!
  3381. ULONG StreamIndex; // zero based index of stream
  3382. LONG DefaultKeyFrameRate; // Key frame rate
  3383. LONG DefaultPFrameRate; // Predeicted frames per Key frame
  3384. LONG DefaultQuality; // 0 to 10000
  3385. LONG NumberOfQualitySettings; // How many discreet quality settings?
  3386. LONG Capabilities; // KS_CompressionCaps_*
  3387. } KSPROPERTY_VIDEOCOMPRESSION_GETINFO_S, *PKSPROPERTY_VIDEOCOMPRESSION_GETINFO_S;
  3388. typedef struct {
  3389. KSPROPERTY Property;
  3390. ULONG StreamIndex; // zero based index of stream
  3391. LONG Value; // value to get or set
  3392. } KSPROPERTY_VIDEOCOMPRESSION_S, *PKSPROPERTY_VIDEOCOMPRESSION_S;
  3393. //===========================================================================
  3394. // MEDIASUBTYPE_Overlay
  3395. #define STATIC_KSDATAFORMAT_SUBTYPE_OVERLAY\
  3396. 0xe436eb7fL, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70
  3397. DEFINE_GUIDSTRUCT("e436eb7f-524f-11ce-9f53-0020af0ba770", KSDATAFORMAT_SUBTYPE_OVERLAY);
  3398. #define KSDATAFORMAT_SUBTYPE_OVERLAY DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_OVERLAY)
  3399. #define STATIC_KSPROPSETID_OverlayUpdate\
  3400. 0x490EA5CFL, 0x7681, 0x11D1, 0xA2, 0x1C, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96
  3401. DEFINE_GUIDSTRUCT("490EA5CF-7681-11D1-A21C-00A0C9223196", KSPROPSETID_OverlayUpdate);
  3402. #define KSPROPSETID_OverlayUpdate DEFINE_GUIDNAMED(KSPROPSETID_OverlayUpdate)
  3403. typedef enum {
  3404. KSPROPERTY_OVERLAYUPDATE_INTERESTS,
  3405. KSPROPERTY_OVERLAYUPDATE_CLIPLIST = 0x1,
  3406. KSPROPERTY_OVERLAYUPDATE_PALETTE = 0x2,
  3407. KSPROPERTY_OVERLAYUPDATE_COLORKEY = 0x4,
  3408. KSPROPERTY_OVERLAYUPDATE_VIDEOPOSITION = 0x8,
  3409. KSPROPERTY_OVERLAYUPDATE_DISPLAYCHANGE = 0x10,
  3410. KSPROPERTY_OVERLAYUPDATE_COLORREF = 0x10000000
  3411. } KSPROPERTY_OVERLAYUPDATE;
  3412. typedef struct {
  3413. ULONG PelsWidth;
  3414. ULONG PelsHeight;
  3415. ULONG BitsPerPel;
  3416. WCHAR DeviceID[1];
  3417. } KSDISPLAYCHANGE, *PKSDISPLAYCHANGE;
  3418. #define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_INTERESTS(Handler)\
  3419. DEFINE_KSPROPERTY_ITEM(\
  3420. KSPROPERTY_OVERLAYUPDATE_INTERESTS,\
  3421. (Handler),\
  3422. sizeof(KSPROPERTY),\
  3423. sizeof(ULONG),\
  3424. NULL, NULL, 0, NULL, NULL, 0)
  3425. #define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_PALETTE(Handler)\
  3426. DEFINE_KSPROPERTY_ITEM(\
  3427. KSPROPERTY_OVERLAYUPDATE_PALETTE,\
  3428. NULL,\
  3429. sizeof(KSPROPERTY),\
  3430. 0,\
  3431. (Handler),\
  3432. NULL, 0, NULL, NULL, 0)
  3433. #define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_COLORKEY(Handler)\
  3434. DEFINE_KSPROPERTY_ITEM(\
  3435. KSPROPERTY_OVERLAYUPDATE_COLORKEY,\
  3436. NULL,\
  3437. sizeof(KSPROPERTY),\
  3438. sizeof(COLORKEY),\
  3439. (Handler),\
  3440. NULL, 0, NULL, NULL, 0)
  3441. #define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_CLIPLIST(Handler)\
  3442. DEFINE_KSPROPERTY_ITEM(\
  3443. KSPROPERTY_OVERLAYUPDATE_CLIPLIST,\
  3444. NULL,\
  3445. sizeof(KSPROPERTY),\
  3446. 2 * sizeof(RECT) + sizeof(RGNDATAHEADER),\
  3447. (Handler),\
  3448. NULL, 0, NULL, NULL, 0)
  3449. #define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_VIDEOPOSITION(Handler)\
  3450. DEFINE_KSPROPERTY_ITEM(\
  3451. KSPROPERTY_OVERLAYUPDATE_VIDEOPOSITION,\
  3452. NULL,\
  3453. sizeof(KSPROPERTY),\
  3454. 2 * sizeof(RECT),\
  3455. (Handler),\
  3456. NULL, 0, NULL, NULL, 0)
  3457. #define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_DISPLAYCHANGE(Handler)\
  3458. DEFINE_KSPROPERTY_ITEM(\
  3459. KSPROPERTY_OVERLAYUPDATE_DISPLAYCHANGE,\
  3460. NULL,\
  3461. sizeof(KSPROPERTY),\
  3462. sizeof(KSDISPLAYCHANGE),\
  3463. (Handler),\
  3464. NULL, 0, NULL, NULL, 0)
  3465. #define DEFINE_KSPROPERTY_ITEM_OVERLAYUPDATE_COLORREF(Handler)\
  3466. DEFINE_KSPROPERTY_ITEM(\
  3467. KSPROPERTY_OVERLAYUPDATE_COLORREF,\
  3468. (Handler),\
  3469. sizeof(KSPROPERTY),\
  3470. sizeof(COLORREF),\
  3471. NULL,\
  3472. NULL, 0, NULL, NULL, 0)
  3473. //===========================================================================
  3474. #define STATIC_PROPSETID_VIDCAP_VIDEOCONTROL\
  3475. 0x6a2e0670L, 0x28e4, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3476. DEFINE_GUIDSTRUCT("6a2e0670-28e4-11d0-a18c-00a0c9118956", PROPSETID_VIDCAP_VIDEOCONTROL);
  3477. #define PROPSETID_VIDCAP_VIDEOCONTROL DEFINE_GUIDNAMED(PROPSETID_VIDCAP_VIDEOCONTROL)
  3478. typedef enum {
  3479. KSPROPERTY_VIDEOCONTROL_CAPS, // R
  3480. KSPROPERTY_VIDEOCONTROL_ACTUAL_FRAME_RATE, // R O
  3481. KSPROPERTY_VIDEOCONTROL_FRAME_RATES, // R O
  3482. KSPROPERTY_VIDEOCONTROL_MODE, // RWO
  3483. } KSPROPERTY_VIDCAP_VIDEOCONTROL;
  3484. typedef enum {
  3485. KS_VideoControlFlag_FlipHorizontal = 0x0001,
  3486. KS_VideoControlFlag_FlipVertical = 0x0002,
  3487. KS_Obsolete_VideoControlFlag_ExternalTriggerEnable = 0x0010, // ***WARNING *** Flag msimatch with DSHOW.
  3488. KS_Obsolete_VideoControlFlag_Trigger = 0x0020, // ***WARNING *** Flag msimatch with DSHOW.
  3489. KS_VideoControlFlag_ExternalTriggerEnable = 0x0004,
  3490. KS_VideoControlFlag_Trigger = 0x0008,
  3491. } KS_VideoControlFlags;
  3492. typedef struct {
  3493. KSPROPERTY Property;
  3494. ULONG StreamIndex;
  3495. ULONG VideoControlCaps; // KS_VideoControlFlags_*
  3496. } KSPROPERTY_VIDEOCONTROL_CAPS_S, *PKSPROPERTY_VIDEOCONTROL_CAPS_S;
  3497. typedef struct {
  3498. KSPROPERTY Property;
  3499. ULONG StreamIndex;
  3500. LONG Mode; // KS_VideoControlFlags_*
  3501. } KSPROPERTY_VIDEOCONTROL_MODE_S, *PKSPROPERTY_VIDEOCONTROL_MODE_S;
  3502. typedef struct {
  3503. KSPROPERTY Property;
  3504. ULONG StreamIndex; // Index of stream
  3505. ULONG RangeIndex; // Index of range
  3506. SIZE Dimensions; // Size of image
  3507. LONGLONG CurrentActualFrameRate; // Only correct if pin is open
  3508. LONGLONG CurrentMaxAvailableFrameRate; // Max Rate temporarily limited on USB or 1394?
  3509. } KSPROPERTY_VIDEOCONTROL_ACTUAL_FRAME_RATE_S, *PKSPROPERTY_VIDEOCONTROL_ACTUAL_FRAME_RATE_S;
  3510. // KSPROPERTY_VIDEOCONTROL_FRAME_RATES returns a list of available frame rates in 100 nS units
  3511. typedef struct {
  3512. KSPROPERTY Property;
  3513. ULONG StreamIndex; // Index of stream
  3514. ULONG RangeIndex; // Index of range
  3515. SIZE Dimensions; // Size of image
  3516. } KSPROPERTY_VIDEOCONTROL_FRAME_RATES_S, *PKSPROPERTY_VIDEOCONTROL_FRAME_RATES_S;
  3517. //===========================================================================
  3518. #define STATIC_PROPSETID_VIDCAP_DROPPEDFRAMES\
  3519. 0xC6E13344L, 0x30AC, 0x11d0, 0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56
  3520. DEFINE_GUIDSTRUCT("C6E13344-30AC-11d0-A18C-00A0C9118956", PROPSETID_VIDCAP_DROPPEDFRAMES);
  3521. #define PROPSETID_VIDCAP_DROPPEDFRAMES DEFINE_GUIDNAMED(PROPSETID_VIDCAP_DROPPEDFRAMES)
  3522. typedef enum {
  3523. KSPROPERTY_DROPPEDFRAMES_CURRENT // R
  3524. } KSPROPERTY_VIDCAP_DROPPEDFRAMES;
  3525. typedef struct {
  3526. KSPROPERTY Property;
  3527. LONGLONG PictureNumber; // Current Picture Number
  3528. LONGLONG DropCount; // Count of frames dropped
  3529. ULONG AverageFrameSize; // Average size of frames captured
  3530. } KSPROPERTY_DROPPEDFRAMES_CURRENT_S, *PKSPROPERTY_DROPPEDFRAMES_CURRENT_S;
  3531. //===========================================================================
  3532. // VPE
  3533. #define STATIC_KSPROPSETID_VPConfig\
  3534. 0xbc29a660L, 0x30e3, 0x11d0, 0x9e, 0x69, 0x00, 0xc0, 0x4f, 0xd7, 0xc1, 0x5b
  3535. DEFINE_GUIDSTRUCT("bc29a660-30e3-11d0-9e69-00c04fd7c15b", KSPROPSETID_VPConfig);
  3536. #define KSPROPSETID_VPConfig DEFINE_GUIDNAMED(KSPROPSETID_VPConfig)
  3537. #define STATIC_KSPROPSETID_VPVBIConfig\
  3538. 0xec529b00L, 0x1a1f, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a
  3539. DEFINE_GUIDSTRUCT("ec529b00-1a1f-11d1-bad9-00609744111a", KSPROPSETID_VPVBIConfig);
  3540. #define KSPROPSETID_VPVBIConfig DEFINE_GUIDNAMED(KSPROPSETID_VPVBIConfig)
  3541. // Both of the above property sets use the same list of properties below
  3542. typedef enum {
  3543. KSPROPERTY_VPCONFIG_NUMCONNECTINFO,
  3544. KSPROPERTY_VPCONFIG_GETCONNECTINFO,
  3545. KSPROPERTY_VPCONFIG_SETCONNECTINFO,
  3546. KSPROPERTY_VPCONFIG_VPDATAINFO,
  3547. KSPROPERTY_VPCONFIG_MAXPIXELRATE,
  3548. KSPROPERTY_VPCONFIG_INFORMVPINPUT,
  3549. KSPROPERTY_VPCONFIG_NUMVIDEOFORMAT,
  3550. KSPROPERTY_VPCONFIG_GETVIDEOFORMAT,
  3551. KSPROPERTY_VPCONFIG_SETVIDEOFORMAT,
  3552. KSPROPERTY_VPCONFIG_INVERTPOLARITY,
  3553. KSPROPERTY_VPCONFIG_DECIMATIONCAPABILITY, // E_NOTIMPL for VBI
  3554. KSPROPERTY_VPCONFIG_SCALEFACTOR, // E_NOTIMPL for VBI
  3555. KSPROPERTY_VPCONFIG_DDRAWHANDLE,
  3556. KSPROPERTY_VPCONFIG_VIDEOPORTID,
  3557. KSPROPERTY_VPCONFIG_DDRAWSURFACEHANDLE,
  3558. KSPROPERTY_VPCONFIG_SURFACEPARAMS
  3559. } KSPROPERTY_VPCONFIG;
  3560. //=========================
  3561. // IBasicAudio
  3562. //
  3563. #define STATIC_CLSID_KsIBasicAudioInterfaceHandler\
  3564. 0xb9f8ac3e, 0x0f71, 0x11d2, 0xb7, 0x2c, 0x00, 0xc0, 0x4f, 0xb6, 0xbd, 0x3d
  3565. DEFINE_GUIDSTRUCT("b9f8ac3e-0f71-11d2-b72c-00c04fb6bd3d", CLSID_KsIBasicAudioInterfaceHandler);
  3566. #define CLSID_KsIBasicAudioInterfaceHandler DEFINE_GUIDNAMED(CLSID_KsIBasicAudioInterfaceHandler)
  3567. #if defined(__IVPType__)
  3568. typedef struct {
  3569. AMVPSIZE Size;
  3570. DWORD MaxPixelsPerSecond;
  3571. DWORD Reserved;
  3572. } KSVPMAXPIXELRATE, *PKSVPMAXPIXELRATE;
  3573. typedef struct {
  3574. KSPROPERTY Property;
  3575. AMVPSIZE Size;
  3576. } KSVPSIZE_PROP, *PKSVPSIZE_PROP;
  3577. typedef struct {
  3578. DWORD dwPitch;
  3579. DWORD dwXOrigin;
  3580. DWORD dwYOrigin;
  3581. } KSVPSURFACEPARAMS, *PKSVPSURFACEPARAMS;
  3582. #else // !defined(__IVPType__)
  3583. #if !defined(__DDRAW_INCLUDED__)
  3584. //==========================================================================
  3585. // The following definitions must be in sync with DDraw.h in DirectX SDK
  3586. //==========================================================================
  3587. /*
  3588. * The FourCC code is valid.
  3589. */
  3590. #define DDPF_FOURCC 0x00000004l
  3591. typedef struct _DDPIXELFORMAT
  3592. {
  3593. DWORD dwSize; // size of structure
  3594. DWORD dwFlags; // pixel format flags
  3595. DWORD dwFourCC; // (FOURCC code)
  3596. union
  3597. {
  3598. DWORD dwRGBBitCount; // how many bits per pixel (BD_1,2,4,8,16,24,32)
  3599. DWORD dwYUVBitCount; // how many bits per pixel (BD_4,8,16,24,32)
  3600. DWORD dwZBufferBitDepth; // how many bits for z buffers (BD_8,16,24,32)
  3601. DWORD dwAlphaBitDepth; // how many bits for alpha channels (BD_1,2,4,8)
  3602. };
  3603. union
  3604. {
  3605. DWORD dwRBitMask; // mask for red bit
  3606. DWORD dwYBitMask; // mask for Y bits
  3607. };
  3608. union
  3609. {
  3610. DWORD dwGBitMask; // mask for green bits
  3611. DWORD dwUBitMask; // mask for U bits
  3612. };
  3613. union
  3614. {
  3615. DWORD dwBBitMask; // mask for blue bits
  3616. DWORD dwVBitMask; // mask for V bits
  3617. };
  3618. union
  3619. {
  3620. DWORD dwRGBAlphaBitMask; // mask for alpha channel
  3621. DWORD dwYUVAlphaBitMask; // mask for alpha channel
  3622. DWORD dwRGBZBitMask; // mask for Z channel
  3623. DWORD dwYUVZBitMask; // mask for Z channel
  3624. };
  3625. } DDPIXELFORMAT, * LPDDPIXELFORMAT;
  3626. #endif // !defined(__DDRAW_INCLUDED__)
  3627. //==========================================================================
  3628. // End of DDraw.h header info
  3629. //==========================================================================
  3630. //==========================================================================
  3631. // The following definitions must be in sync with DVP.h in DirectX SDK
  3632. //==========================================================================
  3633. #if !defined(__DVP_INCLUDED__)
  3634. typedef struct _DDVIDEOPORTCONNECT {
  3635. DWORD dwSize; // size of the DDVIDEOPORTCONNECT structure
  3636. DWORD dwPortWidth; // Width of the video port
  3637. GUID guidTypeID; // Description of video port connection
  3638. DWORD dwFlags; // Connection flags
  3639. DWORD dwReserved1; // Reserved, set to zero.
  3640. } DDVIDEOPORTCONNECT, * LPDDVIDEOPORTCONNECT;
  3641. #define DDVPTYPE_E_HREFH_VREFH \
  3642. 0x54F39980L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8
  3643. #define DDVPTYPE_E_HREFL_VREFL \
  3644. 0xE09C77E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8
  3645. #endif // !defined(__DVP_INCLUDED__)
  3646. //==========================================================================
  3647. // End of DVP.h header info
  3648. //==========================================================================
  3649. //==========================================================================
  3650. // The following definitions must be in sync with VPType.h in AM 2.0 SDK
  3651. //==========================================================================
  3652. // pixel aspect ratios corresponding to a 720x480 NTSC image or a 720x576 image
  3653. typedef enum // AMPixAspectRatio
  3654. {
  3655. KS_PixAspectRatio_NTSC4x3,
  3656. KS_PixAspectRatio_NTSC16x9,
  3657. KS_PixAspectRatio_PAL4x3,
  3658. KS_PixAspectRatio_PAL16x9,
  3659. } KS_AMPixAspectRatio ;
  3660. typedef enum // AMVP_SELECTFORMATBY
  3661. {
  3662. KS_AMVP_DO_NOT_CARE,
  3663. KS_AMVP_BEST_BANDWIDTH,
  3664. KS_AMVP_INPUT_SAME_AS_OUTPUT
  3665. } KS_AMVP_SELECTFORMATBY;
  3666. typedef enum // AMVP_MODE
  3667. {
  3668. KS_AMVP_MODE_WEAVE,
  3669. KS_AMVP_MODE_BOBINTERLEAVED,
  3670. KS_AMVP_MODE_BOBNONINTERLEAVED,
  3671. KS_AMVP_MODE_SKIPEVEN,
  3672. KS_AMVP_MODE_SKIPODD
  3673. } KS_AMVP_MODE ;
  3674. typedef struct tagKS_AMVPDIMINFO // AMVPDIMINFO
  3675. {
  3676. DWORD dwFieldWidth ; // [out] field width
  3677. DWORD dwFieldHeight ; // [out] field height
  3678. DWORD dwVBIWidth ; // [out] VBI data width
  3679. DWORD dwVBIHeight ; // [out] VBI data height
  3680. RECT rcValidRegion ; // [out] valid rect for data cropping
  3681. } KS_AMVPDIMINFO, *PKS_AMVPDIMINFO ;
  3682. typedef struct tagKS_AMVPDATAINFO // AMVPDATAINFO
  3683. {
  3684. DWORD dwSize; // Size of the struct
  3685. DWORD dwMicrosecondsPerField; // Time taken by each field
  3686. KS_AMVPDIMINFO amvpDimInfo; // Dimensional Information
  3687. DWORD dwPictAspectRatioX; // Pict aspect ratio in X dimn
  3688. DWORD dwPictAspectRatioY; // Pict aspect ratio in Y dimn
  3689. BOOL bEnableDoubleClock; // Videoport should enable double clocking
  3690. BOOL bEnableVACT; // Videoport should use an external VACT signal
  3691. BOOL bDataIsInterlaced; // Indicates that the signal is interlaced
  3692. LONG lHalfLinesOdd; // number of halflines in the odd field
  3693. BOOL bFieldPolarityInverted; // Device inverts the polarity by default
  3694. DWORD dwNumLinesInVREF; // Number of lines of data in VREF
  3695. LONG lHalfLinesEven; // number of halflines in the even field
  3696. DWORD dwReserved1; // Reserved for future use
  3697. } KS_AMVPDATAINFO, *PKS_AMVPDATAINFO;
  3698. typedef struct tagKS_AMVPSIZE // AMVPSIZE
  3699. {
  3700. DWORD dwWidth ; // [in] width in pixels
  3701. DWORD dwHeight ; // [in] height in pixels
  3702. } KS_AMVPSIZE, *PKS_AMVPSIZE ;
  3703. //==========================================================================
  3704. // End of VPType.h header info
  3705. //==========================================================================
  3706. typedef struct {
  3707. KS_AMVPSIZE Size;
  3708. DWORD MaxPixelsPerSecond;
  3709. DWORD Reserved;
  3710. } KSVPMAXPIXELRATE, *PKSVPMAXPIXELRATE;
  3711. typedef struct {
  3712. KSPROPERTY Property;
  3713. KS_AMVPSIZE Size;
  3714. } KSVPSIZE_PROP, *PKSVPSIZE_PROP;
  3715. typedef struct {
  3716. DWORD dwPitch;
  3717. DWORD dwXOrigin;
  3718. DWORD dwYOrigin;
  3719. } KSVPSURFACEPARAMS, *PKSVPSURFACEPARAMS;
  3720. #endif // !defined(__IVPType__)
  3721. //
  3722. // IVPNotify event notification
  3723. //
  3724. #define STATIC_KSEVENTSETID_VPNotify\
  3725. 0x20c5598eL, 0xd3c8, 0x11d0, 0x8d, 0xfc, 0x00, 0xc0, 0x4f, 0xd7, 0xc0, 0x8b
  3726. DEFINE_GUIDSTRUCT("20c5598e-d3c8-11d0-8dfc-00c04fd7c08b", KSEVENTSETID_VPNotify);
  3727. #define KSEVENTSETID_VPNotify DEFINE_GUIDNAMED(KSEVENTSETID_VPNotify)
  3728. typedef enum {
  3729. KSEVENT_VPNOTIFY_FORMATCHANGE,
  3730. } KSEVENT_VPNOTIFY;
  3731. //
  3732. // VIDCAPTOSTI event notification
  3733. //
  3734. #define STATIC_KSEVENTSETID_VIDCAPTOSTI\
  3735. 0xdb47de20, 0xf628, 0x11d1, 0xba, 0x41, 0x0, 0xa0, 0xc9, 0xd, 0x2b, 0x5
  3736. DEFINE_GUIDSTRUCT("DB47DE20-F628-11d1-BA41-00A0C90D2B05", KSEVENTSETID_VIDCAPTOSTI);
  3737. #define KSEVENTSETID_VIDCAPNotify DEFINE_GUIDNAMED(KSEVENTSETID_VIDCAPTOSTI)
  3738. typedef enum {
  3739. KSEVENT_VIDCAPTOSTI_EXT_TRIGGER,
  3740. } KSEVENT_VIDCAPTOSTI;
  3741. //
  3742. // IVPVBINotify event notification
  3743. //
  3744. #define STATIC_KSEVENTSETID_VPVBINotify\
  3745. 0xec529b01L, 0x1a1f, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a
  3746. DEFINE_GUIDSTRUCT("ec529b01-1a1f-11d1-bad9-00609744111a", KSEVENTSETID_VPVBINotify);
  3747. #define KSEVENTSETID_VPVBINotify DEFINE_GUIDNAMED(KSEVENTSETID_VPVBINotify)
  3748. typedef enum {
  3749. KSEVENT_VPVBINOTIFY_FORMATCHANGE,
  3750. } KSEVENT_VPVBINOTIFY;
  3751. //
  3752. // closed caption information
  3753. //
  3754. #define STATIC_KSDATAFORMAT_TYPE_AUXLine21Data \
  3755. 0x670aea80L, 0x3a82, 0x11d0, 0xb7, 0x9b, 0x00, 0xaa, 0x00, 0x37, 0x67, 0xa7
  3756. DEFINE_GUIDSTRUCT("670aea80-3a82-11d0-b79b-00aa003767a7", KSDATAFORMAT_TYPE_AUXLine21Data);
  3757. #define KSDATAFORMAT_TYPE_AUXLine21Data DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_AUXLine21Data)
  3758. #define STATIC_KSDATAFORMAT_SUBTYPE_Line21_BytePair \
  3759. 0x6e8d4a22L, 0x310c, 0x11d0, 0xb7, 0x9a, 0x00, 0xaa, 0x00, 0x37, 0x67, 0xa7
  3760. DEFINE_GUIDSTRUCT("6e8d4a22-310c-11d0-b79a-00aa003767a7", KSDATAFORMAT_SUBTYPE_Line21_BytePair);
  3761. #define KSDATAFORMAT_SUBTYPE_Line21_BytePair DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_Line21_BytePair)
  3762. #define STATIC_KSDATAFORMAT_SUBTYPE_Line21_GOPPacket \
  3763. 0x6e8d4a23L, 0x310c, 0x11d0, 0xb7, 0x9a, 0x00, 0xaa, 0x00, 0x37, 0x67, 0xa7
  3764. DEFINE_GUIDSTRUCT("6e8d4a23-310c-11d0-b79a-00aa003767a7", KSDATAFORMAT_SUBTYPE_Line21_GOPPacket);
  3765. #define KSDATAFORMAT_SUBTYPE_Line21_GOPPacket DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_Line21_GOPPacket)
  3766. typedef struct _KSGOP_USERDATA {
  3767. ULONG sc;
  3768. ULONG reserved1;
  3769. BYTE cFields;
  3770. CHAR l21Data[3];
  3771. } KSGOP_USERDATA, *PKSGOP_USERDATA;
  3772. //
  3773. // DVD encrypted PACK format type definition
  3774. //
  3775. #define STATIC_KSDATAFORMAT_TYPE_DVD_ENCRYPTED_PACK\
  3776. 0xed0b916a, 0x044d, 0x11d1, 0xaa, 0x78, 0x00, 0xc0, 0x4f, 0xc3, 0x1d, 0x60
  3777. DEFINE_GUIDSTRUCT("ed0b916a-044d-11d1-aa78-00c04fc31d60", KSDATAFORMAT_TYPE_DVD_ENCRYPTED_PACK);
  3778. #define KSDATAFORMAT_TYPE_DVD_ENCRYPTED_PACK DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_DVD_ENCRYPTED_PACK)
  3779. #define KS_AM_UseNewCSSKey 0x1
  3780. // -----------------------------------------------------------------------
  3781. // KS_AM_KSPROPSETID_TSRateChange property set definitions for time stamp
  3782. // rate changes.
  3783. // -----------------------------------------------------------------------
  3784. #define STATIC_KSPROPSETID_TSRateChange\
  3785. 0xa503c5c0, 0x1d1d, 0x11d1, 0xad, 0x80, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0
  3786. DEFINE_GUIDSTRUCT("A503C5C0-1D1D-11D1-AD80-444553540000", KSPROPSETID_TSRateChange);
  3787. #define KSPROPSETID_TSRateChange DEFINE_GUIDNAMED(KSPROPSETID_TSRateChange)
  3788. typedef enum {
  3789. KS_AM_RATE_SimpleRateChange=1, // rw, use KS_AM_SimpleRateChange
  3790. KS_AM_RATE_ExactRateChange=2, // rw, use KS_AM_ExactRateChange
  3791. KS_AM_RATE_MaxFullDataRate=3, // r, use KS_AM_MaxFullDataRate
  3792. KS_AM_RATE_Step=4 // w, use KS_AM_Step
  3793. } KS_AM_PROPERTY_TS_RATE_CHANGE;
  3794. typedef struct {
  3795. // this is the simplest mechanism to set a time stamp rate change on
  3796. // a filter (simplest for the person setting the rate change, harder
  3797. // for the filter doing the rate change).
  3798. REFERENCE_TIME StartTime; //stream time at which to start this rate
  3799. LONG Rate; //new rate * 10000 (decimal)
  3800. } KS_AM_SimpleRateChange, *PKS_AM_SimpleRateChange;
  3801. typedef struct {
  3802. REFERENCE_TIME OutputZeroTime; //input TS that maps to zero output TS
  3803. LONG Rate; //new rate * 10000 (decimal)
  3804. } KS_AM_ExactRateChange, *PKS_AM_ExactRateChange;
  3805. typedef LONG KS_AM_MaxFullDataRate; //rate * 10000 (decimal)
  3806. typedef DWORD KS_AM_Step; // number of frame to step
  3807. //===========================================================================
  3808. //ENCODER API DEFINITIONS
  3809. //===========================================================================
  3810. #define STATIC_KSCATEGORY_ENCODER \
  3811. 0x19689bf6, 0xc384, 0x48fd, 0xad, 0x51, 0x90, 0xe5, 0x8c, 0x79, 0xf7, 0xb
  3812. DEFINE_GUIDSTRUCT("19689BF6-C384-48fd-AD51-90E58C79F70B", KSCATEGORY_ENCODER);
  3813. #define KSCATEGORY_ENCODER DEFINE_GUIDNAMED(KSCATEGORY_ENCODER)
  3814. #define STATIC_KSCATEGORY_MULTIPLEXER \
  3815. 0x7a5de1d3, 0x1a1, 0x452c, 0xb4, 0x81, 0x4f, 0xa2, 0xb9, 0x62, 0x71, 0xe8
  3816. DEFINE_GUIDSTRUCT("7A5DE1D3-01A1-452c-B481-4FA2B96271E8", KSCATEGORY_MULTIPLEXER);
  3817. #define KSCATEGORY_MULTIPLEXER DEFINE_GUIDNAMED(KSCATEGORY_MULTIPLEXER)
  3818. #ifndef __ENCODER_API_GUIDS__
  3819. #define __ENCODER_API_GUIDS__
  3820. #define STATIC_ENCAPIPARAM_BITRATE \
  3821. 0x49cc4c43, 0xca83, 0x4ad4, 0xa9, 0xaf, 0xf3, 0x69, 0x6a, 0xf6, 0x66, 0xdf
  3822. DEFINE_GUIDSTRUCT("49CC4C43-CA83-4ad4-A9AF-F3696AF666DF", ENCAPIPARAM_BITRATE);
  3823. #define ENCAPIPARAM_BITRATE DEFINE_GUIDNAMED(ENCAPIPARAM_BITRATE)
  3824. #define STATIC_ENCAPIPARAM_PEAK_BITRATE \
  3825. 0x703f16a9, 0x3d48, 0x44a1, 0xb0, 0x77, 0x1, 0x8d, 0xff, 0x91, 0x5d, 0x19
  3826. DEFINE_GUIDSTRUCT("703F16A9-3D48-44a1-B077-018DFF915D19", ENCAPIPARAM_PEAK_BITRATE);
  3827. #define ENCAPIPARAM_PEAK_BITRATE DEFINE_GUIDNAMED(ENCAPIPARAM_PEAK_BITRATE)
  3828. #define STATIC_ENCAPIPARAM_BITRATE_MODE \
  3829. 0xee5fb25c, 0xc713, 0x40d1, 0x9d, 0x58, 0xc0, 0xd7, 0x24, 0x1e, 0x25, 0xf
  3830. DEFINE_GUIDSTRUCT("EE5FB25C-C713-40d1-9D58-C0D7241E250F", ENCAPIPARAM_BITRATE_MODE);
  3831. #define ENCAPIPARAM_BITRATE_MODE DEFINE_GUIDNAMED(ENCAPIPARAM_BITRATE_MODE)
  3832. #endif // __ENCODER_API_GUIDS__
  3833. #ifndef __ENCODER_API_DEFINES__
  3834. #define __ENCODER_API_DEFINES__
  3835. typedef enum {
  3836. //
  3837. // Bit rate used for encoding is constant
  3838. //
  3839. ConstantBitRate = 0,
  3840. //
  3841. // Bit rate used for encoding is variable with the specified bitrate used
  3842. // as a guaranteed average over a specified window. The default window
  3843. // size is considered to be 5 minutes.
  3844. //
  3845. VariableBitRateAverage,
  3846. //
  3847. // Bit rate used for encoding is variable with the specified bitrate used
  3848. // as an average with a peak not to exceed the specified peak bitrate over
  3849. // a specified window. The default window size is considered to be 500ms
  3850. // (classically one GOP).
  3851. //
  3852. VariableBitRatePeak
  3853. } VIDEOENCODER_BITRATE_MODE;
  3854. #endif // __ENCODER_API_DEFINES__
  3855. #endif // !defined(_KSMEDIA_)