asfheader, demux_audio: Remove some pointless be2me/le2me
[mplayer/glamo.git] / loader / dshow / inputpin.h
blob02f1c8b98fa4d848c77899d89b9521804121686d
1 #ifndef MPLAYER_INPUTPIN_H
2 #define MPLAYER_INPUTPIN_H
4 #include "interfaces.h"
6 typedef struct CBaseFilter2 CBaseFilter2;
7 struct CBaseFilter2
9 IBaseFilter_vt* vt;
10 DECLARE_IUNKNOWN();
11 IPin* pin;
12 GUID interfaces[5];
14 IPin* ( *GetPin )(CBaseFilter2* This);
17 CBaseFilter2* CBaseFilter2Create(void);
20 typedef struct CBaseFilter CBaseFilter;
21 struct CBaseFilter
23 IBaseFilter_vt* vt;
24 DECLARE_IUNKNOWN(); // has to match CBaseFilter2 - INHERITANCE!!
25 IPin* pin;
26 IPin* unused_pin;
27 GUID interfaces[2];
29 IPin* ( *GetPin )(CBaseFilter* This);
30 IPin* ( *GetUnusedPin )(CBaseFilter* This);
33 CBaseFilter* CBaseFilterCreate(const AM_MEDIA_TYPE* vhdr, CBaseFilter2* parent);
36 typedef struct
38 IPin_vt* vt;
39 DECLARE_IUNKNOWN();
40 CBaseFilter* parent;
41 AM_MEDIA_TYPE type;
42 GUID interfaces[1];
43 } CInputPin;
45 CInputPin* CInputPinCreate(CBaseFilter* parent, const AM_MEDIA_TYPE* vhdr);
48 typedef struct
50 IPin_vt* vt;
51 DECLARE_IUNKNOWN();
52 CBaseFilter* parent;
53 GUID interfaces[1];
54 IPin* remote_pin;
55 } CRemotePin;
57 CRemotePin* CRemotePinCreate(CBaseFilter* pt, IPin* rpin);
60 typedef struct
62 IPin_vt* vt;
63 DECLARE_IUNKNOWN();
64 CBaseFilter2* parent;
65 GUID interfaces[1];
66 } CRemotePin2;
68 CRemotePin2* CRemotePin2Create(CBaseFilter2* parent);
70 #endif /* MPLAYER_INPUTPIN_H */