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.

72 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1995-1996 Microsoft Corporation
  3. Module Name:
  4. medvctrl.h
  5. Abstract:
  6. Defines the MediaControl class which encapsulates the multimedia devices, in particular
  7. videoIn and videoOut.
  8. --*/
  9. #ifndef _MEDVCTRL_H_
  10. #define _MEDVCTRL_H_
  11. #include <pshpack8.h> /* Assume 8 byte packing throughout */
  12. class VideoInControl : public MediaControl {
  13. private:
  14. UINT m_uTimeout; // timeout in notification wait
  15. UINT m_uPrefeed; // num of buffers prefed to device
  16. UINT m_FPSRequested; // requested frame rate
  17. UINT m_FPSMax; // max frame rate
  18. public:
  19. VideoInControl ( void );
  20. ~VideoInControl ( void );
  21. HRESULT Initialize ( MEDIACTRLINIT * p );
  22. HRESULT Configure ( MEDIACTRLCONFIG * p );
  23. HRESULT SetProp ( DWORD dwPropId, DWORD_PTR dwPropVal );
  24. HRESULT GetProp ( DWORD dwPropId, PDWORD_PTR pdwPropVal );
  25. HRESULT Open ( void );
  26. HRESULT Start ( void );
  27. HRESULT Stop ( void );
  28. HRESULT Reset ( void );
  29. HRESULT Close ( void );
  30. HRESULT DisplayDriverDialog (HWND hwnd, DWORD dwDlgId);
  31. };
  32. class VideoOutControl : public MediaControl {
  33. private:
  34. UINT m_uTimeout; // timeout in notification wait
  35. UINT m_uPrefeed; // num of buffers prefed to device
  36. UINT m_uPosition; // position of the playback stream
  37. public:
  38. VideoOutControl ( void );
  39. ~VideoOutControl ( void );
  40. HRESULT Initialize ( MEDIACTRLINIT * p );
  41. HRESULT Configure ( MEDIACTRLCONFIG * p );
  42. HRESULT SetProp ( DWORD dwPropId, DWORD_PTR dwPropVal );
  43. HRESULT GetProp ( DWORD dwPropId, PDWORD_PTR pdwPropVal );
  44. HRESULT Open ( void );
  45. HRESULT Start ( void );
  46. HRESULT Stop ( void );
  47. HRESULT Reset ( void );
  48. HRESULT Close ( void );
  49. };
  50. enum {
  51. MC_PROP_VIDEO_FRAME_RATE = MC_PROP_NumOfProps,
  52. MC_PROP_MAX_VIDEO_FRAME_RATE,
  53. MC_PROP_VFW_DIALOGS
  54. };
  55. #include <poppack.h> /* End byte packing */
  56. #endif // _MEDVCTRL_H_
  57.