1 | /*
|
---|
2 | * Copyright (C) 2002 Robert Shearman
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | interface IPinConnection;
|
---|
29 | interface IPinFlowControl;
|
---|
30 | interface IGraphConfig;
|
---|
31 | interface IGraphConfigCallback;
|
---|
32 |
|
---|
33 | [
|
---|
34 | local,
|
---|
35 | object,
|
---|
36 | uuid(4a9a62d3-27d4-403d-91e9-89f540e55534),
|
---|
37 | pointer_default(unique)
|
---|
38 | ]
|
---|
39 | interface IPinConnection : IUnknown
|
---|
40 | {
|
---|
41 | HRESULT DynamicQueryAccept([in] const AM_MEDIA_TYPE *pmt);
|
---|
42 |
|
---|
43 | HRESULT NotifyEndOfStream([in] HANDLE hNotifyEvent);
|
---|
44 |
|
---|
45 | HRESULT IsEndPin();
|
---|
46 |
|
---|
47 | HRESULT DynamicDisconnect();
|
---|
48 | }
|
---|
49 |
|
---|
50 | [
|
---|
51 | local,
|
---|
52 | object,
|
---|
53 | uuid(c56e9858-dbf3-4f6b-8119-384af2060deb),
|
---|
54 | pointer_default(unique)
|
---|
55 | ]
|
---|
56 | interface IPinFlowControl : IUnknown
|
---|
57 | {
|
---|
58 | HRESULT Block([in] DWORD dwBlockFlags, [in] HANDLE hEvent);
|
---|
59 | }
|
---|
60 |
|
---|
61 | enum _AM_PIN_FLOW_CONTROL_BLOCK_FLAGS
|
---|
62 | {
|
---|
63 | AM_PIN_FLOW_CONTROL_BLOCK = 0x00000001,
|
---|
64 | };
|
---|
65 |
|
---|
66 | typedef enum _AM_GRAPH_CONFIG_RECONNECT_FLAGS
|
---|
67 | {
|
---|
68 | AM_GRAPH_CONFIG_RECONNECT_DIRECTCONNECT = 0x00000001,
|
---|
69 | AM_GRAPH_CONFIG_RECONNECT_CACHE_REMOVED_FILTERS = 0x00000002,
|
---|
70 | AM_GRAPH_CONFIG_RECONNECT_USE_ONLY_CACHED_FILTERS = 0x00000004
|
---|
71 | } AM_GRAPH_CONFIG_RECONNECT_FLAGS;
|
---|
72 |
|
---|
73 | enum _REM_FILTER_FLAGS
|
---|
74 | {
|
---|
75 | REMFILTERF_LEAVECONNECTED = 0x00000001
|
---|
76 | };
|
---|
77 |
|
---|
78 | typedef enum _AM_FILTER_FLAGS
|
---|
79 | {
|
---|
80 | AM_FILTER_FLAGS_REMOVABLE = 0x00000001
|
---|
81 | } AM_FILTER_FLAGS;
|
---|
82 |
|
---|
83 | [
|
---|
84 | local,
|
---|
85 | object,
|
---|
86 | uuid(03A1EB8E-32BF-4245-8502-114D08A9CB88),
|
---|
87 | pointer_default(unique)
|
---|
88 | ]
|
---|
89 | interface IGraphConfig : IUnknown
|
---|
90 | {
|
---|
91 | HRESULT Reconnect(
|
---|
92 | [in] IPin *pOutputPin,
|
---|
93 | [in] IPin *pInputPin,
|
---|
94 | [in] const AM_MEDIA_TYPE *pmtFirstConnection,
|
---|
95 | [in] IBaseFilter *pUsingFilter,
|
---|
96 | [in] HANDLE hAbortEvent,
|
---|
97 | [in] DWORD dwFlags);
|
---|
98 |
|
---|
99 | HRESULT Reconfigure(
|
---|
100 | [in] IGraphConfigCallback *pCallback,
|
---|
101 | [in] PVOID pvContext,
|
---|
102 | [in] DWORD dwFlags,
|
---|
103 | [in] HANDLE hAbortEvent);
|
---|
104 |
|
---|
105 | HRESULT AddFilterToCache([in] IBaseFilter *pFilter);
|
---|
106 |
|
---|
107 | HRESULT EnumCacheFilter([out] IEnumFilters **pEnum);
|
---|
108 |
|
---|
109 | HRESULT RemoveFilterFromCache([in]IBaseFilter *pFilter);
|
---|
110 |
|
---|
111 | HRESULT GetStartTime([out] REFERENCE_TIME *prtStart);
|
---|
112 |
|
---|
113 | HRESULT PushThroughData(
|
---|
114 | [in] IPin *pOutputPin,
|
---|
115 | [in] IPinConnection *pConnection,
|
---|
116 | [in] HANDLE hEventAbort);
|
---|
117 |
|
---|
118 | HRESULT SetFilterFlags([in] IBaseFilter *pFilter, [in] DWORD dwFlags);
|
---|
119 |
|
---|
120 | HRESULT GetFilterFlags([in] IBaseFilter *pFilter, [out] DWORD *pdwFlags);
|
---|
121 |
|
---|
122 | HRESULT RemoveFilterEx([in] IBaseFilter *pFilter, DWORD Flags);
|
---|
123 | }
|
---|
124 |
|
---|
125 | [
|
---|
126 | local,
|
---|
127 | object,
|
---|
128 | uuid(ade0fd60-d19d-11d2-abf6-00a0c905f375),
|
---|
129 | pointer_default(unique)
|
---|
130 | ]
|
---|
131 | interface IGraphConfigCallback : IUnknown
|
---|
132 | {
|
---|
133 | HRESULT Reconfigure(PVOID pvContext, DWORD dwFlags);
|
---|
134 | }
|
---|
135 |
|
---|
136 | [
|
---|
137 | local,
|
---|
138 | object,
|
---|
139 | uuid(DCFBDCF6-0DC2-45f5-9AB2-7C330EA09C29),
|
---|
140 | pointer_default(unique)
|
---|
141 | ]
|
---|
142 | interface IFilterChain : IUnknown
|
---|
143 | {
|
---|
144 | HRESULT StartChain(
|
---|
145 | [in] IBaseFilter *pStartFilter,
|
---|
146 | [in] IBaseFilter *pEndFilter);
|
---|
147 |
|
---|
148 | HRESULT PauseChain(
|
---|
149 | [in] IBaseFilter *pStartFilter,
|
---|
150 | [in] IBaseFilter *pEndFilter);
|
---|
151 |
|
---|
152 | HRESULT StopChain(
|
---|
153 | [in] IBaseFilter *pStartFilter,
|
---|
154 | [in] IBaseFilter *pEndFilter);
|
---|
155 |
|
---|
156 | HRESULT RemoveChain(
|
---|
157 | [in] IBaseFilter *pStartFilter,
|
---|
158 | [in] IBaseFilter *pEndFilter);
|
---|
159 | }
|
---|