BuildGraph.h
上传用户:bxq2008bxq
上传日期:2022-07-18
资源大小:6138k
文件大小:1k
源码类别:

DirextX编程

开发平台:

Visual C++

  1. #pragma once
  2. class CBuildGraph
  3. {
  4. public:
  5. CBuildGraph(void);
  6. public:
  7. ~CBuildGraph(void);
  8. IGraphBuilder *pGraph;
  9. ISampleGrabber *pGrabber;
  10. IMediaControl *pControl;
  11. IMediaEventEx *pEvent;
  12. IBaseFilter *pF;
  13. IBaseFilter *pNull;
  14. HRESULT GetUnconnectedPin(
  15. IBaseFilter *pFilter,   // Pointer to the filter.
  16. PIN_DIRECTION PinDir,   // Direction of the pin to find.
  17. IPin **ppPin);          // Receives a pointer to the pin.
  18. HRESULT ConnectFilters(
  19. IGraphBuilder *pGraph, // Filter Graph Manager.
  20. IPin *pOut,            // Output pin on the upstream filter.
  21. IBaseFilter *pDest);    // Downstream filter.
  22. HRESULT ConnectFilters(
  23. IGraphBuilder *pGraph, 
  24. IBaseFilter *pSrc, 
  25. IBaseFilter *pDest);
  26. HRESULT GetPinCategory(IPin *pPin, GUID *pPinCategory);
  27. HRESULT CBuildGraph::GetCapturePin(
  28. IBaseFilter *pFilter,   // Pointer to the filter.
  29. PIN_DIRECTION PinDir,   // Direction of the pin to find.
  30. IPin **ppPin);          // Receives a pointer to the pin.
  31. HRESULT ConnectCaptureFilters(
  32. IGraphBuilder *pGraph, 
  33. IBaseFilter *pSrc, 
  34. IBaseFilter *pDest);
  35. HRESULT InitCaptureVideo(IBaseFilter *pSrc);
  36. public:
  37. long cbBuffer;
  38. };