annotate loader/dshow/inputpin.h @ 21432:6f2116ad422a

Simplify: 1 > 0 seems to be a rather safe assumption to make ;-)
author reimar
date Sat, 02 Dec 2006 19:59:35 +0000
parents 9533c26c0806
children 2c8cdb9123b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 168
diff changeset
1 #ifndef DS_INPUTPIN_H
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 168
diff changeset
2 #define DS_INPUTPIN_H
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 168
diff changeset
3
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
4 #include "interfaces.h"
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
5
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
6 typedef struct _CBaseFilter2 CBaseFilter2;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
7 struct _CBaseFilter2
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
8 {
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
9 IBaseFilter_vt* vt;
3130
623cdb771e97 avifile sync. seems to some bugs fixed...
arpi
parents: 3056
diff changeset
10 DECLARE_IUNKNOWN();
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
11 IPin* pin;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
12 GUID interfaces[5];
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
13
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
14 IPin* ( *GetPin )(CBaseFilter2* This);
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
15 };
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
16
8292
9533c26c0806 avifile sync (mostly cosmetics)
arpi
parents: 7386
diff changeset
17 CBaseFilter2* CBaseFilter2Create(void);
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
18
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
19
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
20 typedef struct _CBaseFilter CBaseFilter;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
21 struct _CBaseFilter
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
22 {
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
23 IBaseFilter_vt* vt;
3130
623cdb771e97 avifile sync. seems to some bugs fixed...
arpi
parents: 3056
diff changeset
24 DECLARE_IUNKNOWN(); // has to match CBaseFilter2 - INHERITANCE!!
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
25 IPin* pin;
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
26 IPin* unused_pin;
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
27 GUID interfaces[2];
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 168
diff changeset
28
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
29 IPin* ( *GetPin )(CBaseFilter* This);
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
30 IPin* ( *GetUnusedPin )(CBaseFilter* This);
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
31 };
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 168
diff changeset
32
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
33 CBaseFilter* CBaseFilterCreate(const AM_MEDIA_TYPE* vhdr, CBaseFilter2* parent);
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
34
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
35
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3467
diff changeset
36 typedef struct
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
37 {
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
38 IPin_vt* vt;
3130
623cdb771e97 avifile sync. seems to some bugs fixed...
arpi
parents: 3056
diff changeset
39 DECLARE_IUNKNOWN();
3467
e3bbf44dbab2 avifile sync
arpi
parents: 3130
diff changeset
40 CBaseFilter* parent;
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
41 AM_MEDIA_TYPE type;
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
42 GUID interfaces[1];
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3467
diff changeset
43 } CInputPin;
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
44
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
45 CInputPin* CInputPinCreate(CBaseFilter* parent, const AM_MEDIA_TYPE* vhdr);
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
46
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 168
diff changeset
47
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3467
diff changeset
48 typedef struct
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
49 {
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
50 IPin_vt* vt;
3130
623cdb771e97 avifile sync. seems to some bugs fixed...
arpi
parents: 3056
diff changeset
51 DECLARE_IUNKNOWN();
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
52 CBaseFilter* parent;
3130
623cdb771e97 avifile sync. seems to some bugs fixed...
arpi
parents: 3056
diff changeset
53 GUID interfaces[1];
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
54 IPin* remote_pin;
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
55 } CRemotePin;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
56
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
57 CRemotePin* CRemotePinCreate(CBaseFilter* pt, IPin* rpin);
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
58
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
59
7386
174e2a58b4cd avifile sync - 95% cosmetics 5% bug
arpi
parents: 3467
diff changeset
60 typedef struct
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
61 {
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
62 IPin_vt* vt;
3130
623cdb771e97 avifile sync. seems to some bugs fixed...
arpi
parents: 3056
diff changeset
63 DECLARE_IUNKNOWN();
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
64 CBaseFilter2* parent;
3056
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
65 GUID interfaces[1];
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
66 } CRemotePin2;
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
67
213b35f84cf3 C++ -> C (import from avifile cvs)
arpi
parents: 1545
diff changeset
68 CRemotePin2* CRemotePin2Create(CBaseFilter2* parent);
168
bdc4a8fc04d8 Initial revision
arpi_esp
parents:
diff changeset
69
1545
da26060c81ef big avifile sync - from now we have common code
arpi
parents: 168
diff changeset
70 #endif /* DS_INPUTPIN_H */