summaryrefslogtreecommitdiff
path: root/src/libw32dll/DirectShow/inputpin.h
blob: ba1e2817eaceae06403f562eb8390772b1946c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#ifndef DS_INPUTPIN_H
#define DS_INPUTPIN_H

#include "interfaces.h"

//class CBaseFilter2;

typedef struct _CBaseFilter
{
    struct _IBaseFilter_vt *vt;
    
    IPin* pin;
    IPin* unused_pin;
    GUID interfaces[2];
    DECLARE_IUNKNOWN(CBaseFilter)
} CBaseFilter;

typedef struct _CInputPin
{
    IPin_vt *vt;
    
    AM_MEDIA_TYPE type;
    CBaseFilter* parent;
    GUID interfaces[1];
    DECLARE_IUNKNOWN(CInputPin)

} CInputPin;

typedef struct _CBaseFilter2
{
    struct _IBaseFilter_vt *vt;
    
    IPin* pin;
    GUID interfaces[5];
    DECLARE_IUNKNOWN(CBaseFilter2)
    
}CBaseFilter2;


typedef struct _CRemotePin
{
    IPin_vt *vt;
    CBaseFilter* parent;
    IPin* remote_pin;
    GUID interfaces[1];
    DECLARE_IUNKNOWN(CRemotePin)
}CRemotePin;

typedef struct _CRemotePin2
{
    IPin_vt *vt;
    CBaseFilter2* parent;
    GUID interfaces[1];
    DECLARE_IUNKNOWN(CRemotePin2)
}CRemotePin2;


long STDCALL CInputPin_Connect (
    IPin * This,
    /* [in] */ IPin *pReceivePin,
    /* [in] */ AM_MEDIA_TYPE *pmt);

long STDCALL CInputPin_ReceiveConnection(IPin * This,
					  /* [in] */ IPin *pConnector,
					  /* [in] */ const AM_MEDIA_TYPE *pmt);

long STDCALL CInputPin_Disconnect(IPin * This);
long STDCALL CInputPin_ConnectedTo(IPin * This, /* [out] */ IPin **pPin);

long STDCALL CInputPin_ConnectionMediaType(IPin * This,
					    /* [out] */ AM_MEDIA_TYPE *pmt);

long STDCALL CInputPin_QueryPinInfo(IPin * This, /* [out] */ PIN_INFO *pInfo);
long STDCALL CInputPin_QueryDirection(IPin * This,
				       /* [out] */ PIN_DIRECTION *pPinDir);
long STDCALL CInputPin_QueryId(IPin * This, /* [out] */ unsigned short* *Id);

long STDCALL CInputPin_QueryAccept(IPin * This,
				    /* [in] */ const AM_MEDIA_TYPE *pmt);


long STDCALL CInputPin_EnumMediaTypes (
    IPin * This,
    /* [out] */ IEnumMediaTypes **ppEnum);

long STDCALL CInputPin_QueryInternalConnections(IPin * This,
						 /* [out] */ IPin **apPin,
						 /* [out][in] */ unsigned long *nPin);

long STDCALL CInputPin_EndOfStream (IPin * This);
long STDCALL CInputPin_BeginFlush(IPin * This);

long STDCALL CInputPin_EndFlush(IPin * This);

long STDCALL CInputPin_NewSegment(IPin * This,
				   /* [in] */ REFERENCE_TIME tStart,
				   /* [in] */ REFERENCE_TIME tStop,
				   /* [in] */ double dRate);

CInputPin * CInputPin_Create(CBaseFilter* p, const AM_MEDIA_TYPE *vh);
void CInputPin_Destroy(CInputPin * this);

long STDCALL CBaseFilter_GetClassID(IBaseFilter * This,
				      /* [out] */ CLSID *pClassID);
long STDCALL CBaseFilter_Stop(IBaseFilter * This);

long STDCALL CBaseFilter_Pause(IBaseFilter * This);

long STDCALL CBaseFilter_Run(IBaseFilter * This,
			      REFERENCE_TIME tStart);

long STDCALL CBaseFilter_GetState(IBaseFilter * This,
				   /* [in] */ unsigned long dwMilliSecsTimeout,
				   // /* [out] */ FILTER_STATE *State)
				   void* State);

long STDCALL CBaseFilter_SetSyncSource(IBaseFilter * This,
					/* [in] */ IReferenceClock *pClock);

long STDCALL CBaseFilter_GetSyncSource (
        IBaseFilter * This,
        /* [out] */ IReferenceClock **pClock);


long STDCALL CBaseFilter_EnumPins (
        IBaseFilter * This,
        /* [out] */ IEnumPins **ppEnum);

long STDCALL CBaseFilter_FindPin (
        IBaseFilter * This,
        /* [string][in] */ const unsigned short* Id,
        /* [out] */ IPin **ppPin);


long STDCALL CBaseFilter_QueryFilterInfo (
        IBaseFilter * This,
//        /* [out] */ FILTER_INFO *pInfo)
	void* pInfo);

long STDCALL CBaseFilter_JoinFilterGraph (
        IBaseFilter * This,
        /* [in] */ IFilterGraph *pGraph,
        /* [string][in] */ const unsigned short* pName);


long STDCALL CBaseFilter_QueryVendorInfo (
        IBaseFilter * This,
        /* [string][out] */ unsigned short* *pVendorInfo);

CBaseFilter * CBaseFilter_Create(const AM_MEDIA_TYPE *type, CBaseFilter2* parent);


void CBaseFilter_Destroy(CBaseFilter *this);
IPin* CBaseFilter_GetPin(CBaseFilter *this);
IPin* CBaseFilter_GetUnusedPin(CBaseFilter *this);
long STDCALL CBaseFilter2_GetClassID (
        IBaseFilter * This,
        /* [out] */ CLSID *pClassID);

long STDCALL CBaseFilter2_Stop (
        IBaseFilter * This);
long STDCALL CBaseFilter2_Pause (IBaseFilter * This);

long STDCALL CBaseFilter2_Run (IBaseFilter * This, REFERENCE_TIME tStart);

long STDCALL CBaseFilter2_GetState (
        IBaseFilter * This,
        /* [in] */ unsigned long dwMilliSecsTimeout,
//        /* [out] */ FILTER_STATE *State)
    	void* State);

long STDCALL CBaseFilter2_SetSyncSource (
        IBaseFilter * This,
        /* [in] */ IReferenceClock *pClock);
long STDCALL CBaseFilter2_GetSyncSource (
        IBaseFilter * This,
        /* [out] */ IReferenceClock **pClock);

long STDCALL CBaseFilter2_EnumPins (
        IBaseFilter * This,
        /* [out] */ IEnumPins **ppEnum);
long STDCALL CBaseFilter2_FindPin (
        IBaseFilter * This,
        /* [string][in] */ const unsigned short* Id,
        /* [out] */ IPin **ppPin);

long STDCALL CBaseFilter2_QueryFilterInfo (
        IBaseFilter * This,
//        /* [out] */ FILTER_INFO *pInfo)
	void* pInfo);

long STDCALL CBaseFilter2_JoinFilterGraph(IBaseFilter * This,
					   /* [in] */ IFilterGraph *pGraph,
					   /* [string][in] */
					   const unsigned short* pName);

long STDCALL CBaseFilter2_QueryVendorInfo(IBaseFilter * This,
					   /* [string][out] */
					   unsigned short* *pVendorInfo);
CBaseFilter2 * CBaseFilter2_Create();
void CBaseFilter2_Destroy(CBaseFilter2 *this);

IPin* CBaseFilter2_GetPin(CBaseFilter2 *this);
				       
CRemotePin * CRemotePin_Create(CBaseFilter* pt, IPin* rpin);
void CRemotePin_Destroy(CRemotePin * this);
CRemotePin2 * CRemotePin2_Create(CBaseFilter2* p);
void CRemotePin2_Destroy(CRemotePin2 * this);


#endif /* DS_INPUTPIN_H */