Make sure we do not accidentally use the vdp_get_error_string from the
[mplayer/glamo.git] / loader / dshow / DS_Filter.h
blob8fda4b4ef218c86d3dcf8bd84f1e62d1f751b18c
1 #ifndef MPLAYER_DS_FILTER_H
2 #define MPLAYER_DS_FILTER_H
4 #include "inputpin.h"
5 #include "outputpin.h"
7 #if defined(__cplusplus)
8 extern "C" {
9 #endif
11 typedef struct {
12 char* frame_pointer;
13 long frame_size;
14 } SampleProcUserData;
16 /**
17 User will allocate and fill format structures, call Create(),
18 and then set up m_pAll.
19 **/
21 typedef struct DS_Filter DS_Filter;
22 struct DS_Filter
24 int m_iHandle;
25 IBaseFilter* m_pFilter;
26 IPin* m_pInputPin;
27 IPin* m_pOutputPin;
29 CBaseFilter* m_pSrcFilter;
30 CBaseFilter2* m_pParentFilter;
31 IPin* m_pOurInput;
32 COutputPin* m_pOurOutput;
34 AM_MEDIA_TYPE *m_pOurType, *m_pDestType;
35 IMemAllocator* m_pAll;
36 IMemInputPin* m_pImp;
38 void ( *Start )(DS_Filter*);
39 void ( *Stop )(DS_Filter*);
42 DS_Filter* DS_FilterCreate(const char* dllname, const GUID* id,
43 AM_MEDIA_TYPE* in_fmt, AM_MEDIA_TYPE* out_fmt,SampleProcUserData* pUserData);
44 void DS_Filter_Destroy(DS_Filter* This);
46 #if defined(__cplusplus)
48 #endif
50 #endif /* MPLAYER_DS_FILTER_H */