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.

75 lines
1.9 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Name: H323vidt.h
  4. //
  5. // Description: Definition of the CH323VideoCaptureTerminal class
  6. //
  7. ///////////////////////////////////////////////////////////////////////////////
  8. #ifndef _H323VIDT_H_
  9. #define _H323VIDT_H_
  10. #include "h323term.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CH323VideoCaptureTerminal
  13. /////////////////////////////////////////////////////////////////////////////
  14. const DWORD VIDEO_CAPTURE_FILTER_NUMPINS = 3;
  15. interface DECLSPEC_UUID("b44aca09-e746-4d58-ad97-8890ba2286e5") DECLSPEC_NOVTABLE
  16. IH323VideoDummy : public IUnknown
  17. {
  18. };
  19. #define IID_IH323VideoDummy __uuidof(IH323VideoDummy)
  20. // COM_INTERFACE_ENTRY_CHAIN is not allowed to the 1st one is a MAP
  21. // entry IConfVideoDummy is to make BEGIN_COM_MAP happy
  22. class CH323VideoCaptureTerminal :
  23. public IH323VideoDummy,
  24. public CH323BaseTerminal
  25. {
  26. BEGIN_COM_MAP(CH323VideoCaptureTerminal)
  27. COM_INTERFACE_ENTRY(IH323VideoDummy)
  28. COM_INTERFACE_ENTRY_CHAIN(CH323BaseTerminal)
  29. END_COM_MAP()
  30. public:
  31. CH323VideoCaptureTerminal();
  32. virtual ~CH323VideoCaptureTerminal();
  33. static HRESULT CreateTerminal(
  34. IN char * strDeviceName,
  35. IN UINT VideoCaptureID,
  36. IN MSP_HANDLE htAddress,
  37. OUT ITTerminal **ppTerm
  38. );
  39. HRESULT Initialize (
  40. IN char * strName,
  41. IN UINT VideoCaptureID,
  42. IN MSP_HANDLE htAddress
  43. );
  44. protected:
  45. HRESULT CreateFilter();
  46. DWORD GetNumExposedPins() const
  47. {
  48. return VIDEO_CAPTURE_FILTER_NUMPINS;
  49. }
  50. HRESULT GetExposedPins(
  51. IN IPin ** ppPins,
  52. IN DWORD dwNumPins
  53. );
  54. protected:
  55. UINT m_VideoCaptureID;
  56. };
  57. #endif // _H323VIDT_H_