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.

33 lines
985 B

  1. #include <windows.h>
  2. #include <ibitmap.h>
  3. #include <frameop.h>
  4. #include <dcap.h>
  5. #ifndef _capture_h
  6. #define _capture_h
  7. class CCaptureChain
  8. {
  9. private:
  10. CFrameOp* m_opchain;
  11. CFilterChain* m_filterchain;
  12. DWORD_PTR m_filtertags;
  13. CRITICAL_SECTION m_capcs;
  14. public:
  15. CCaptureChain();
  16. ~CCaptureChain();
  17. STDMETHODIMP InitCaptureChain(HCAPDEV hcapdev, BOOL streaming,
  18. LPBITMAPINFOHEADER lpcap,
  19. LONG desiredwidth, LONG desiredheight,
  20. DWORD desiredformat,
  21. LPBITMAPINFOHEADER *plpdsp);
  22. STDMETHODIMP GrabFrame(IBitmapSurface** ppBS);
  23. STDMETHODIMP AddFilter(CLSID* pclsid, LPBITMAPINFOHEADER lpbmhIn,
  24. HANDLE* phNew, HANDLE hAfter);
  25. STDMETHODIMP RemoveFilter(HANDLE hNew);
  26. STDMETHODIMP DisplayFilterProperties(HANDLE hFilter, HWND hwndParent);
  27. };
  28. #endif //#ifndef _capture_h