168
|
1 #ifndef DS_Filter_H
|
|
2 #define DS_Filter_H
|
|
3
|
|
4 #include "interfaces.h"
|
|
5 #include "inputpin.h"
|
|
6 #include "outputpin.h"
|
|
7 #include <string>
|
|
8 using namespace std;
|
|
9 /**
|
|
10 User will allocate and fill format structures, call Create(),
|
|
11 and then set up m_pAll.
|
|
12 **/
|
|
13 class DS_Filter
|
|
14 {
|
|
15 protected:
|
|
16 public:
|
|
17 DS_Filter();
|
|
18 virtual ~DS_Filter();
|
342
|
19 void Create(char* dllname, const GUID* id, AM_MEDIA_TYPE* in_fmt, AM_MEDIA_TYPE* out_fmt);
|
168
|
20 void Start();
|
|
21 void Stop();
|
|
22 int m_iHandle;
|
|
23 IBaseFilter* m_pFilter;
|
|
24 IPin* m_pInputPin;
|
|
25 IPin* m_pOutputPin;
|
|
26
|
|
27 CBaseFilter* m_pSrcFilter;
|
|
28 CBaseFilter2* m_pParentFilter;
|
|
29 IPin* m_pOurInput;
|
|
30 COutputPin* m_pOurOutput;
|
|
31
|
|
32 AM_MEDIA_TYPE *m_pOurType, *m_pDestType;
|
|
33 IMemAllocator* m_pAll;
|
|
34 IMemInputPin* m_pImp;
|
|
35 int m_iState;
|
|
36 protected:
|
|
37 };
|
|
38
|
302
|
39 #endif
|
|
40
|