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.

41 lines
1.1 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. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include "strmini.h"
  15. #include "ksmedia.h"
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #include "capmain.h"
  20. #include "capdebug.h"
  21. #include "device.h"
  22. #include "xbar.h"
  23. BOOL CrossBar::TestRoute(ULONG InPin, ULONG OutPin)
  24. {
  25. if ((InputPins [InPin].PinType == KS_PhysConn_Video_Tuner ||
  26. InputPins [InPin].PinType == KS_PhysConn_Video_Composite ||
  27. InputPins [InPin].PinType == KS_PhysConn_Video_SVideo) &&
  28. (OutputPins [OutPin].PinType == KS_PhysConn_Video_VideoDecoder)) {
  29. return TRUE;
  30. }
  31. else
  32. return FALSE;
  33. }