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

95 lines
3.3 KiB

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1992 - 1996 Microsoft Corporation. All Rights Reserved.
  9. //
  10. //==========================================================================;
  11. //
  12. // This file defines interconnections between components via Mediums
  13. //
  14. #ifdef DEFINE_MEDIUMS
  15. #define MEDIUM_DECL static const
  16. #else
  17. #define MEDIUM_DECL extern
  18. #endif
  19. /* -----------------------------------------------------------
  20. Topology of all devices:
  21. PinDir FilterPin# M_GUID#
  22. TVTuner
  23. TVTunerVideo out 0 0
  24. Crossbar
  25. TVTunerVideo in 0 0
  26. AnalogVideoIn out 3 1
  27. Capture
  28. AnalogVideoIn in 0 1
  29. All other pins are marked as promiscuous connections via GUID_NULL
  30. ------------------------------------------------------------------ */
  31. // Define the GUIDs which will be used to create the Mediums
  32. #define M_GUID0 0xa19dc0e0, 0x3b39, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  33. #define M_GUID1 0xa19dc0e1, 0x3b39, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
  34. // Note: To allow multiple instances of the same piece of hardware,
  35. // set the first ULONG after the GUID in the Medium to a unique value.
  36. // -----------------------------------------------
  37. MEDIUM_DECL KSPIN_MEDIUM TVTunerMediums[] = {
  38. {M_GUID0, 0, 0}, // Pin 0
  39. {STATIC_GUID_NULL, 0, 0}, // Pin 1
  40. };
  41. MEDIUM_DECL BOOL TVTunerPinDirection [] = {
  42. TRUE, // Output Pin 0
  43. TRUE, // Output Pin 1
  44. };
  45. // -----------------------------------------------
  46. MEDIUM_DECL KSPIN_MEDIUM CrossbarMediums[] = {
  47. {STATIC_GUID_NULL, 0, 0}, // Pin 0
  48. {M_GUID0, 0, 0}, // Pin 1
  49. {STATIC_GUID_NULL, 0, 0}, // Pin 2
  50. {M_GUID1, 0, 0}, // Pin 3
  51. };
  52. MEDIUM_DECL BOOL CrossbarPinDirection [] = {
  53. FALSE, // Input Pin 0
  54. FALSE, // Input Pin 1
  55. FALSE, // Input Pin 2
  56. TRUE, // Output Pin 3
  57. };
  58. // -----------------------------------------------
  59. MEDIUM_DECL KSPIN_MEDIUM CaptureMediums[] = {
  60. {STATIC_KSMEDIUMSETID_Standard, 0, 0}, // Pin 0 Capture
  61. {STATIC_KSMEDIUMSETID_Standard, 0, 0}, // Pin 1 Preview
  62. {STATIC_KSMEDIUMSETID_Standard, 0, 0}, // Pin 2 VBI
  63. {M_GUID1, 0, 0}, // Pin 3 Analog Video In
  64. };
  65. MEDIUM_DECL BOOL CapturePinDirection [] = {
  66. TRUE, // Output Pin 0
  67. TRUE, // Output Pin 1
  68. TRUE, // Output Pin 2
  69. FALSE, // Input Pin 3
  70. };
  71. MEDIUM_DECL GUID CaptureCategories[] = {
  72. STATIC_PINNAME_VIDEO_CAPTURE, // Pin 0
  73. STATIC_PINNAME_VIDEO_PREVIEW, // Pin 1
  74. STATIC_PINNAME_VIDEO_VBI // Pin 2
  75. STATIC_PINNAME_VIDEO_ANALOGVIDEOIN, // Pin 3
  76. };