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