Add PSDK headers from ./include to ./w32api, delete some outdated headers and place...
[reactos.git] / reactos / w32api / include / strmif.h
1 /*** Autogenerated by WIDL 0.1 from strmif.idl - Do not edit ***/
2 #include <rpc.h>
3 #include <rpcndr.h>
4
5 #ifndef __WIDL_STRMIF_H
6 #define __WIDL_STRMIF_H
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 #include <objidl.h>
11 #include <oaidl.h>
12 #define CDEF_CLASS_DEFAULT 0x0001
13 #define CDEF_BYPASS_CLASS_MANAGER 0x0002
14 #define CDEF_CLASS_LEGACY 0x0004
15 #define CDEF_MERIT_ABOVE_DO_NOT_USE 0x0008
16 #ifndef __ICreateDevEnum_FWD_DEFINED__
17 #define __ICreateDevEnum_FWD_DEFINED__
18 typedef struct ICreateDevEnum ICreateDevEnum;
19 #endif
20
21 /*****************************************************************************
22 * ICreateDevEnum interface
23 */
24 #ifndef __ICreateDevEnum_INTERFACE_DEFINED__
25 #define __ICreateDevEnum_INTERFACE_DEFINED__
26
27 DEFINE_GUID(IID_ICreateDevEnum, 0x29840822, 0x5b84, 0x11d0, 0xbd,0x3b, 0x00,0xa0,0xc9,0x11,0xce,0x86);
28 #if defined(__cplusplus) && !defined(CINTERFACE)
29 struct ICreateDevEnum : public IUnknown
30 {
31 virtual HRESULT STDMETHODCALLTYPE CreateClassEnumerator(
32 REFCLSID clsidDeviceClass,
33 IEnumMoniker** ppEnumMoniker,
34 DWORD dwFlags) = 0;
35
36 };
37 #else
38 typedef struct ICreateDevEnumVtbl ICreateDevEnumVtbl;
39 struct ICreateDevEnum {
40 const ICreateDevEnumVtbl* lpVtbl;
41 };
42 struct ICreateDevEnumVtbl {
43 BEGIN_INTERFACE
44
45 /*** IUnknown methods ***/
46 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
47 ICreateDevEnum* This,
48 REFIID riid,
49 void** ppvObject);
50
51 ULONG (STDMETHODCALLTYPE *AddRef)(
52 ICreateDevEnum* This);
53
54 ULONG (STDMETHODCALLTYPE *Release)(
55 ICreateDevEnum* This);
56
57 /*** ICreateDevEnum methods ***/
58 HRESULT (STDMETHODCALLTYPE *CreateClassEnumerator)(
59 ICreateDevEnum* This,
60 REFCLSID clsidDeviceClass,
61 IEnumMoniker** ppEnumMoniker,
62 DWORD dwFlags);
63
64 END_INTERFACE
65 };
66
67 #ifdef COBJMACROS
68 /*** IUnknown methods ***/
69 #define ICreateDevEnum_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
70 #define ICreateDevEnum_AddRef(p) (p)->lpVtbl->AddRef(p)
71 #define ICreateDevEnum_Release(p) (p)->lpVtbl->Release(p)
72 /*** ICreateDevEnum methods ***/
73 #define ICreateDevEnum_CreateClassEnumerator(p,a,b,c) (p)->lpVtbl->CreateClassEnumerator(p,a,b,c)
74 #endif
75
76 #endif
77
78 #define ICreateDevEnum_METHODS \
79 /*** IUnknown methods ***/ \
80 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
81 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
82 STDMETHOD_(ULONG,Release)(THIS) PURE; \
83 /*** ICreateDevEnum methods ***/ \
84 STDMETHOD_(HRESULT,CreateClassEnumerator)(THIS_ REFCLSID clsidDeviceClass, IEnumMoniker** ppEnumMoniker, DWORD dwFlags) PURE;
85
86 HRESULT CALLBACK ICreateDevEnum_CreateClassEnumerator_Proxy(
87 ICreateDevEnum* This,
88 REFCLSID clsidDeviceClass,
89 IEnumMoniker** ppEnumMoniker,
90 DWORD dwFlags);
91 void __RPC_STUB ICreateDevEnum_CreateClassEnumerator_Stub(
92 struct IRpcStubBuffer* This,
93 struct IRpcChannelBuffer* pRpcChannelBuffer,
94 PRPC_MESSAGE pRpcMessage,
95 DWORD* pdwStubPhase);
96
97 #endif /* __ICreateDevEnum_INTERFACE_DEFINED__ */
98
99 #define CHARS_IN_GUID 39
100 #undef GetTimeFormat
101 typedef struct _AMMediaType {
102 GUID majortype;
103 GUID subtype;
104 BOOL bFixedSizeSamples;
105 BOOL bTemporalCompression;
106 ULONG lSampleSize;
107 GUID formattype;
108 IUnknown *pUnk;
109 ULONG cbFormat;
110 BYTE *pbFormat;
111 } AM_MEDIA_TYPE;
112
113 typedef enum _PinDirection {
114 PINDIR_INPUT,
115 PINDIR_OUTPUT
116 } PIN_DIRECTION;
117
118 #define MAX_PIN_NAME 128
119 #define MAX_FILTER_NAME 128
120 typedef LONGLONG REFERENCE_TIME;
121
122 typedef DOUBLE REFTIME;
123
124 typedef DWORD_PTR HSEMAPHORE;
125
126 typedef DWORD_PTR HEVENT;
127
128 typedef struct _AllocatorProperties {
129 long cBuffers;
130 long cbBuffer;
131 long cbAlign;
132 long cbPrefix;
133 } ALLOCATOR_PROPERTIES;
134
135 #ifndef __IAMovieSetup_FWD_DEFINED__
136 #define __IAMovieSetup_FWD_DEFINED__
137 typedef struct IAMovieSetup IAMovieSetup;
138 #endif
139
140 #ifndef __IEnumFilters_FWD_DEFINED__
141 #define __IEnumFilters_FWD_DEFINED__
142 typedef struct IEnumFilters IEnumFilters;
143 #endif
144
145 #ifndef __IEnumMediaTypes_FWD_DEFINED__
146 #define __IEnumMediaTypes_FWD_DEFINED__
147 typedef struct IEnumMediaTypes IEnumMediaTypes;
148 #endif
149
150 #ifndef __IEnumPins_FWD_DEFINED__
151 #define __IEnumPins_FWD_DEFINED__
152 typedef struct IEnumPins IEnumPins;
153 #endif
154
155 #ifndef __IBaseFilter_FWD_DEFINED__
156 #define __IBaseFilter_FWD_DEFINED__
157 typedef struct IBaseFilter IBaseFilter;
158 #endif
159
160 #ifndef __IFilterGraph_FWD_DEFINED__
161 #define __IFilterGraph_FWD_DEFINED__
162 typedef struct IFilterGraph IFilterGraph;
163 #endif
164
165 #ifndef __IMediaFilter_FWD_DEFINED__
166 #define __IMediaFilter_FWD_DEFINED__
167 typedef struct IMediaFilter IMediaFilter;
168 #endif
169
170 #ifndef __IMediaSample_FWD_DEFINED__
171 #define __IMediaSample_FWD_DEFINED__
172 typedef struct IMediaSample IMediaSample;
173 #endif
174
175 #ifndef __IMemAllocator_FWD_DEFINED__
176 #define __IMemAllocator_FWD_DEFINED__
177 typedef struct IMemAllocator IMemAllocator;
178 #endif
179
180 #ifndef __IMemAllocatorCallbackTemp_FWD_DEFINED__
181 #define __IMemAllocatorCallbackTemp_FWD_DEFINED__
182 typedef struct IMemAllocatorCallbackTemp IMemAllocatorCallbackTemp;
183 #endif
184
185 #ifndef __IMemAllocatorNotifyCallbackTemp_FWD_DEFINED__
186 #define __IMemAllocatorNotifyCallbackTemp_FWD_DEFINED__
187 typedef struct IMemAllocatorNotifyCallbackTemp IMemAllocatorNotifyCallbackTemp;
188 #endif
189
190 #ifndef __IMemInputPin_FWD_DEFINED__
191 #define __IMemInputPin_FWD_DEFINED__
192 typedef struct IMemInputPin IMemInputPin;
193 #endif
194
195 #ifndef __IPin_FWD_DEFINED__
196 #define __IPin_FWD_DEFINED__
197 typedef struct IPin IPin;
198 #endif
199
200 #ifndef __IReferenceClock_FWD_DEFINED__
201 #define __IReferenceClock_FWD_DEFINED__
202 typedef struct IReferenceClock IReferenceClock;
203 #endif
204
205 typedef struct _PinInfo {
206 IBaseFilter *pFilter;
207 PIN_DIRECTION dir;
208 WCHAR achName[128];
209 } PIN_INFO;
210
211 /*****************************************************************************
212 * IPin interface
213 */
214 #ifndef __IPin_INTERFACE_DEFINED__
215 #define __IPin_INTERFACE_DEFINED__
216
217 DEFINE_GUID(IID_IPin, 0x56a86891, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
218 #if defined(__cplusplus) && !defined(CINTERFACE)
219 struct IPin : public IUnknown
220 {
221 virtual HRESULT STDMETHODCALLTYPE Connect(
222 IPin* pReceivePin,
223 const AM_MEDIA_TYPE* pmt) = 0;
224
225 virtual HRESULT STDMETHODCALLTYPE ReceiveConnection(
226 IPin* pConnector,
227 const AM_MEDIA_TYPE* pmt) = 0;
228
229 virtual HRESULT STDMETHODCALLTYPE Disconnect(
230 ) = 0;
231
232 virtual HRESULT STDMETHODCALLTYPE ConnectedTo(
233 IPin** pPin) = 0;
234
235 virtual HRESULT STDMETHODCALLTYPE ConnectionMediaType(
236 AM_MEDIA_TYPE* pmt) = 0;
237
238 virtual HRESULT STDMETHODCALLTYPE QueryPinInfo(
239 PIN_INFO* pInfo) = 0;
240
241 virtual HRESULT STDMETHODCALLTYPE QueryDirection(
242 PIN_DIRECTION* pPinDir) = 0;
243
244 virtual HRESULT STDMETHODCALLTYPE QueryId(
245 LPWSTR* Id) = 0;
246
247 virtual HRESULT STDMETHODCALLTYPE QueryAccept(
248 const AM_MEDIA_TYPE* pmt) = 0;
249
250 virtual HRESULT STDMETHODCALLTYPE EnumMediaTypes(
251 IEnumMediaTypes** ppEnum) = 0;
252
253 virtual HRESULT STDMETHODCALLTYPE QueryInternalConnections(
254 IPin** apPin,
255 ULONG* nPin) = 0;
256
257 virtual HRESULT STDMETHODCALLTYPE EndOfStream(
258 ) = 0;
259
260 virtual HRESULT STDMETHODCALLTYPE BeginFlush(
261 ) = 0;
262
263 virtual HRESULT STDMETHODCALLTYPE EndFlush(
264 ) = 0;
265
266 virtual HRESULT STDMETHODCALLTYPE NewSegment(
267 REFERENCE_TIME tStart,
268 REFERENCE_TIME tStop,
269 double dRate) = 0;
270
271 };
272 #else
273 typedef struct IPinVtbl IPinVtbl;
274 struct IPin {
275 const IPinVtbl* lpVtbl;
276 };
277 struct IPinVtbl {
278 BEGIN_INTERFACE
279
280 /*** IUnknown methods ***/
281 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
282 IPin* This,
283 REFIID riid,
284 void** ppvObject);
285
286 ULONG (STDMETHODCALLTYPE *AddRef)(
287 IPin* This);
288
289 ULONG (STDMETHODCALLTYPE *Release)(
290 IPin* This);
291
292 /*** IPin methods ***/
293 HRESULT (STDMETHODCALLTYPE *Connect)(
294 IPin* This,
295 IPin* pReceivePin,
296 const AM_MEDIA_TYPE* pmt);
297
298 HRESULT (STDMETHODCALLTYPE *ReceiveConnection)(
299 IPin* This,
300 IPin* pConnector,
301 const AM_MEDIA_TYPE* pmt);
302
303 HRESULT (STDMETHODCALLTYPE *Disconnect)(
304 IPin* This);
305
306 HRESULT (STDMETHODCALLTYPE *ConnectedTo)(
307 IPin* This,
308 IPin** pPin);
309
310 HRESULT (STDMETHODCALLTYPE *ConnectionMediaType)(
311 IPin* This,
312 AM_MEDIA_TYPE* pmt);
313
314 HRESULT (STDMETHODCALLTYPE *QueryPinInfo)(
315 IPin* This,
316 PIN_INFO* pInfo);
317
318 HRESULT (STDMETHODCALLTYPE *QueryDirection)(
319 IPin* This,
320 PIN_DIRECTION* pPinDir);
321
322 HRESULT (STDMETHODCALLTYPE *QueryId)(
323 IPin* This,
324 LPWSTR* Id);
325
326 HRESULT (STDMETHODCALLTYPE *QueryAccept)(
327 IPin* This,
328 const AM_MEDIA_TYPE* pmt);
329
330 HRESULT (STDMETHODCALLTYPE *EnumMediaTypes)(
331 IPin* This,
332 IEnumMediaTypes** ppEnum);
333
334 HRESULT (STDMETHODCALLTYPE *QueryInternalConnections)(
335 IPin* This,
336 IPin** apPin,
337 ULONG* nPin);
338
339 HRESULT (STDMETHODCALLTYPE *EndOfStream)(
340 IPin* This);
341
342 HRESULT (STDMETHODCALLTYPE *BeginFlush)(
343 IPin* This);
344
345 HRESULT (STDMETHODCALLTYPE *EndFlush)(
346 IPin* This);
347
348 HRESULT (STDMETHODCALLTYPE *NewSegment)(
349 IPin* This,
350 REFERENCE_TIME tStart,
351 REFERENCE_TIME tStop,
352 double dRate);
353
354 END_INTERFACE
355 };
356
357 #ifdef COBJMACROS
358 /*** IUnknown methods ***/
359 #define IPin_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
360 #define IPin_AddRef(p) (p)->lpVtbl->AddRef(p)
361 #define IPin_Release(p) (p)->lpVtbl->Release(p)
362 /*** IPin methods ***/
363 #define IPin_Connect(p,a,b) (p)->lpVtbl->Connect(p,a,b)
364 #define IPin_ReceiveConnection(p,a,b) (p)->lpVtbl->ReceiveConnection(p,a,b)
365 #define IPin_Disconnect(p) (p)->lpVtbl->Disconnect(p)
366 #define IPin_ConnectedTo(p,a) (p)->lpVtbl->ConnectedTo(p,a)
367 #define IPin_ConnectionMediaType(p,a) (p)->lpVtbl->ConnectionMediaType(p,a)
368 #define IPin_QueryPinInfo(p,a) (p)->lpVtbl->QueryPinInfo(p,a)
369 #define IPin_QueryDirection(p,a) (p)->lpVtbl->QueryDirection(p,a)
370 #define IPin_QueryId(p,a) (p)->lpVtbl->QueryId(p,a)
371 #define IPin_QueryAccept(p,a) (p)->lpVtbl->QueryAccept(p,a)
372 #define IPin_EnumMediaTypes(p,a) (p)->lpVtbl->EnumMediaTypes(p,a)
373 #define IPin_QueryInternalConnections(p,a,b) (p)->lpVtbl->QueryInternalConnections(p,a,b)
374 #define IPin_EndOfStream(p) (p)->lpVtbl->EndOfStream(p)
375 #define IPin_BeginFlush(p) (p)->lpVtbl->BeginFlush(p)
376 #define IPin_EndFlush(p) (p)->lpVtbl->EndFlush(p)
377 #define IPin_NewSegment(p,a,b,c) (p)->lpVtbl->NewSegment(p,a,b,c)
378 #endif
379
380 #endif
381
382 #define IPin_METHODS \
383 /*** IUnknown methods ***/ \
384 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
385 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
386 STDMETHOD_(ULONG,Release)(THIS) PURE; \
387 /*** IPin methods ***/ \
388 STDMETHOD_(HRESULT,Connect)(THIS_ IPin* pReceivePin, const AM_MEDIA_TYPE* pmt) PURE; \
389 STDMETHOD_(HRESULT,ReceiveConnection)(THIS_ IPin* pConnector, const AM_MEDIA_TYPE* pmt) PURE; \
390 STDMETHOD_(HRESULT,Disconnect)(THIS) PURE; \
391 STDMETHOD_(HRESULT,ConnectedTo)(THIS_ IPin** pPin) PURE; \
392 STDMETHOD_(HRESULT,ConnectionMediaType)(THIS_ AM_MEDIA_TYPE* pmt) PURE; \
393 STDMETHOD_(HRESULT,QueryPinInfo)(THIS_ PIN_INFO* pInfo) PURE; \
394 STDMETHOD_(HRESULT,QueryDirection)(THIS_ PIN_DIRECTION* pPinDir) PURE; \
395 STDMETHOD_(HRESULT,QueryId)(THIS_ LPWSTR* Id) PURE; \
396 STDMETHOD_(HRESULT,QueryAccept)(THIS_ const AM_MEDIA_TYPE* pmt) PURE; \
397 STDMETHOD_(HRESULT,EnumMediaTypes)(THIS_ IEnumMediaTypes** ppEnum) PURE; \
398 STDMETHOD_(HRESULT,QueryInternalConnections)(THIS_ IPin** apPin, ULONG* nPin) PURE; \
399 STDMETHOD_(HRESULT,EndOfStream)(THIS) PURE; \
400 STDMETHOD_(HRESULT,BeginFlush)(THIS) PURE; \
401 STDMETHOD_(HRESULT,EndFlush)(THIS) PURE; \
402 STDMETHOD_(HRESULT,NewSegment)(THIS_ REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate) PURE;
403
404 HRESULT CALLBACK IPin_Connect_Proxy(
405 IPin* This,
406 IPin* pReceivePin,
407 const AM_MEDIA_TYPE* pmt);
408 void __RPC_STUB IPin_Connect_Stub(
409 struct IRpcStubBuffer* This,
410 struct IRpcChannelBuffer* pRpcChannelBuffer,
411 PRPC_MESSAGE pRpcMessage,
412 DWORD* pdwStubPhase);
413 HRESULT CALLBACK IPin_ReceiveConnection_Proxy(
414 IPin* This,
415 IPin* pConnector,
416 const AM_MEDIA_TYPE* pmt);
417 void __RPC_STUB IPin_ReceiveConnection_Stub(
418 struct IRpcStubBuffer* This,
419 struct IRpcChannelBuffer* pRpcChannelBuffer,
420 PRPC_MESSAGE pRpcMessage,
421 DWORD* pdwStubPhase);
422 HRESULT CALLBACK IPin_Disconnect_Proxy(
423 IPin* This);
424 void __RPC_STUB IPin_Disconnect_Stub(
425 struct IRpcStubBuffer* This,
426 struct IRpcChannelBuffer* pRpcChannelBuffer,
427 PRPC_MESSAGE pRpcMessage,
428 DWORD* pdwStubPhase);
429 HRESULT CALLBACK IPin_ConnectedTo_Proxy(
430 IPin* This,
431 IPin** pPin);
432 void __RPC_STUB IPin_ConnectedTo_Stub(
433 struct IRpcStubBuffer* This,
434 struct IRpcChannelBuffer* pRpcChannelBuffer,
435 PRPC_MESSAGE pRpcMessage,
436 DWORD* pdwStubPhase);
437 HRESULT CALLBACK IPin_ConnectionMediaType_Proxy(
438 IPin* This,
439 AM_MEDIA_TYPE* pmt);
440 void __RPC_STUB IPin_ConnectionMediaType_Stub(
441 struct IRpcStubBuffer* This,
442 struct IRpcChannelBuffer* pRpcChannelBuffer,
443 PRPC_MESSAGE pRpcMessage,
444 DWORD* pdwStubPhase);
445 HRESULT CALLBACK IPin_QueryPinInfo_Proxy(
446 IPin* This,
447 PIN_INFO* pInfo);
448 void __RPC_STUB IPin_QueryPinInfo_Stub(
449 struct IRpcStubBuffer* This,
450 struct IRpcChannelBuffer* pRpcChannelBuffer,
451 PRPC_MESSAGE pRpcMessage,
452 DWORD* pdwStubPhase);
453 HRESULT CALLBACK IPin_QueryDirection_Proxy(
454 IPin* This,
455 PIN_DIRECTION* pPinDir);
456 void __RPC_STUB IPin_QueryDirection_Stub(
457 struct IRpcStubBuffer* This,
458 struct IRpcChannelBuffer* pRpcChannelBuffer,
459 PRPC_MESSAGE pRpcMessage,
460 DWORD* pdwStubPhase);
461 HRESULT CALLBACK IPin_QueryId_Proxy(
462 IPin* This,
463 LPWSTR* Id);
464 void __RPC_STUB IPin_QueryId_Stub(
465 struct IRpcStubBuffer* This,
466 struct IRpcChannelBuffer* pRpcChannelBuffer,
467 PRPC_MESSAGE pRpcMessage,
468 DWORD* pdwStubPhase);
469 HRESULT CALLBACK IPin_QueryAccept_Proxy(
470 IPin* This,
471 const AM_MEDIA_TYPE* pmt);
472 void __RPC_STUB IPin_QueryAccept_Stub(
473 struct IRpcStubBuffer* This,
474 struct IRpcChannelBuffer* pRpcChannelBuffer,
475 PRPC_MESSAGE pRpcMessage,
476 DWORD* pdwStubPhase);
477 HRESULT CALLBACK IPin_EnumMediaTypes_Proxy(
478 IPin* This,
479 IEnumMediaTypes** ppEnum);
480 void __RPC_STUB IPin_EnumMediaTypes_Stub(
481 struct IRpcStubBuffer* This,
482 struct IRpcChannelBuffer* pRpcChannelBuffer,
483 PRPC_MESSAGE pRpcMessage,
484 DWORD* pdwStubPhase);
485 HRESULT CALLBACK IPin_QueryInternalConnections_Proxy(
486 IPin* This,
487 IPin** apPin,
488 ULONG* nPin);
489 void __RPC_STUB IPin_QueryInternalConnections_Stub(
490 struct IRpcStubBuffer* This,
491 struct IRpcChannelBuffer* pRpcChannelBuffer,
492 PRPC_MESSAGE pRpcMessage,
493 DWORD* pdwStubPhase);
494 HRESULT CALLBACK IPin_EndOfStream_Proxy(
495 IPin* This);
496 void __RPC_STUB IPin_EndOfStream_Stub(
497 struct IRpcStubBuffer* This,
498 struct IRpcChannelBuffer* pRpcChannelBuffer,
499 PRPC_MESSAGE pRpcMessage,
500 DWORD* pdwStubPhase);
501 HRESULT CALLBACK IPin_BeginFlush_Proxy(
502 IPin* This);
503 void __RPC_STUB IPin_BeginFlush_Stub(
504 struct IRpcStubBuffer* This,
505 struct IRpcChannelBuffer* pRpcChannelBuffer,
506 PRPC_MESSAGE pRpcMessage,
507 DWORD* pdwStubPhase);
508 HRESULT CALLBACK IPin_EndFlush_Proxy(
509 IPin* This);
510 void __RPC_STUB IPin_EndFlush_Stub(
511 struct IRpcStubBuffer* This,
512 struct IRpcChannelBuffer* pRpcChannelBuffer,
513 PRPC_MESSAGE pRpcMessage,
514 DWORD* pdwStubPhase);
515 HRESULT CALLBACK IPin_NewSegment_Proxy(
516 IPin* This,
517 REFERENCE_TIME tStart,
518 REFERENCE_TIME tStop,
519 double dRate);
520 void __RPC_STUB IPin_NewSegment_Stub(
521 struct IRpcStubBuffer* This,
522 struct IRpcChannelBuffer* pRpcChannelBuffer,
523 PRPC_MESSAGE pRpcMessage,
524 DWORD* pdwStubPhase);
525
526 #endif /* __IPin_INTERFACE_DEFINED__ */
527
528 typedef IPin *PPIN;
529
530 /*****************************************************************************
531 * IEnumPins interface
532 */
533 #ifndef __IEnumPins_INTERFACE_DEFINED__
534 #define __IEnumPins_INTERFACE_DEFINED__
535
536 DEFINE_GUID(IID_IEnumPins, 0x56a86892, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
537 #if defined(__cplusplus) && !defined(CINTERFACE)
538 struct IEnumPins : public IUnknown
539 {
540 virtual HRESULT STDMETHODCALLTYPE Next(
541 ULONG cPins,
542 IPin** ppPins,
543 ULONG* pcFetched) = 0;
544
545 virtual HRESULT STDMETHODCALLTYPE Skip(
546 ULONG cPins) = 0;
547
548 virtual HRESULT STDMETHODCALLTYPE Reset(
549 ) = 0;
550
551 virtual HRESULT STDMETHODCALLTYPE Clone(
552 IEnumPins** ppEnum) = 0;
553
554 };
555 #else
556 typedef struct IEnumPinsVtbl IEnumPinsVtbl;
557 struct IEnumPins {
558 const IEnumPinsVtbl* lpVtbl;
559 };
560 struct IEnumPinsVtbl {
561 BEGIN_INTERFACE
562
563 /*** IUnknown methods ***/
564 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
565 IEnumPins* This,
566 REFIID riid,
567 void** ppvObject);
568
569 ULONG (STDMETHODCALLTYPE *AddRef)(
570 IEnumPins* This);
571
572 ULONG (STDMETHODCALLTYPE *Release)(
573 IEnumPins* This);
574
575 /*** IEnumPins methods ***/
576 HRESULT (STDMETHODCALLTYPE *Next)(
577 IEnumPins* This,
578 ULONG cPins,
579 IPin** ppPins,
580 ULONG* pcFetched);
581
582 HRESULT (STDMETHODCALLTYPE *Skip)(
583 IEnumPins* This,
584 ULONG cPins);
585
586 HRESULT (STDMETHODCALLTYPE *Reset)(
587 IEnumPins* This);
588
589 HRESULT (STDMETHODCALLTYPE *Clone)(
590 IEnumPins* This,
591 IEnumPins** ppEnum);
592
593 END_INTERFACE
594 };
595
596 #ifdef COBJMACROS
597 /*** IUnknown methods ***/
598 #define IEnumPins_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
599 #define IEnumPins_AddRef(p) (p)->lpVtbl->AddRef(p)
600 #define IEnumPins_Release(p) (p)->lpVtbl->Release(p)
601 /*** IEnumPins methods ***/
602 #define IEnumPins_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
603 #define IEnumPins_Skip(p,a) (p)->lpVtbl->Skip(p,a)
604 #define IEnumPins_Reset(p) (p)->lpVtbl->Reset(p)
605 #define IEnumPins_Clone(p,a) (p)->lpVtbl->Clone(p,a)
606 #endif
607
608 #endif
609
610 #define IEnumPins_METHODS \
611 /*** IUnknown methods ***/ \
612 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
613 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
614 STDMETHOD_(ULONG,Release)(THIS) PURE; \
615 /*** IEnumPins methods ***/ \
616 STDMETHOD_(HRESULT,Next)(THIS_ ULONG cPins, IPin** ppPins, ULONG* pcFetched) PURE; \
617 STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cPins) PURE; \
618 STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
619 STDMETHOD_(HRESULT,Clone)(THIS_ IEnumPins** ppEnum) PURE;
620
621 HRESULT CALLBACK IEnumPins_Next_Proxy(
622 IEnumPins* This,
623 ULONG cPins,
624 IPin** ppPins,
625 ULONG* pcFetched);
626 void __RPC_STUB IEnumPins_Next_Stub(
627 struct IRpcStubBuffer* This,
628 struct IRpcChannelBuffer* pRpcChannelBuffer,
629 PRPC_MESSAGE pRpcMessage,
630 DWORD* pdwStubPhase);
631 HRESULT CALLBACK IEnumPins_Skip_Proxy(
632 IEnumPins* This,
633 ULONG cPins);
634 void __RPC_STUB IEnumPins_Skip_Stub(
635 struct IRpcStubBuffer* This,
636 struct IRpcChannelBuffer* pRpcChannelBuffer,
637 PRPC_MESSAGE pRpcMessage,
638 DWORD* pdwStubPhase);
639 HRESULT CALLBACK IEnumPins_Reset_Proxy(
640 IEnumPins* This);
641 void __RPC_STUB IEnumPins_Reset_Stub(
642 struct IRpcStubBuffer* This,
643 struct IRpcChannelBuffer* pRpcChannelBuffer,
644 PRPC_MESSAGE pRpcMessage,
645 DWORD* pdwStubPhase);
646 HRESULT CALLBACK IEnumPins_Clone_Proxy(
647 IEnumPins* This,
648 IEnumPins** ppEnum);
649 void __RPC_STUB IEnumPins_Clone_Stub(
650 struct IRpcStubBuffer* This,
651 struct IRpcChannelBuffer* pRpcChannelBuffer,
652 PRPC_MESSAGE pRpcMessage,
653 DWORD* pdwStubPhase);
654
655 #endif /* __IEnumPins_INTERFACE_DEFINED__ */
656
657 typedef IEnumPins *PENUMPINS;
658
659 /*****************************************************************************
660 * IEnumMediaTypes interface
661 */
662 #ifndef __IEnumMediaTypes_INTERFACE_DEFINED__
663 #define __IEnumMediaTypes_INTERFACE_DEFINED__
664
665 DEFINE_GUID(IID_IEnumMediaTypes, 0x89c31040, 0x846b, 0x11ce, 0x97,0xd3, 0x00,0xaa,0x00,0x55,0x59,0x5a);
666 #if defined(__cplusplus) && !defined(CINTERFACE)
667 struct IEnumMediaTypes : public IUnknown
668 {
669 virtual HRESULT STDMETHODCALLTYPE Next(
670 ULONG cMediaTypes,
671 AM_MEDIA_TYPE** ppMediaTypes,
672 ULONG* pcFetched) = 0;
673
674 virtual HRESULT STDMETHODCALLTYPE Skip(
675 ULONG cMediaTypes) = 0;
676
677 virtual HRESULT STDMETHODCALLTYPE Reset(
678 ) = 0;
679
680 virtual HRESULT STDMETHODCALLTYPE Clone(
681 IEnumMediaTypes** ppEnum) = 0;
682
683 };
684 #else
685 typedef struct IEnumMediaTypesVtbl IEnumMediaTypesVtbl;
686 struct IEnumMediaTypes {
687 const IEnumMediaTypesVtbl* lpVtbl;
688 };
689 struct IEnumMediaTypesVtbl {
690 BEGIN_INTERFACE
691
692 /*** IUnknown methods ***/
693 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
694 IEnumMediaTypes* This,
695 REFIID riid,
696 void** ppvObject);
697
698 ULONG (STDMETHODCALLTYPE *AddRef)(
699 IEnumMediaTypes* This);
700
701 ULONG (STDMETHODCALLTYPE *Release)(
702 IEnumMediaTypes* This);
703
704 /*** IEnumMediaTypes methods ***/
705 HRESULT (STDMETHODCALLTYPE *Next)(
706 IEnumMediaTypes* This,
707 ULONG cMediaTypes,
708 AM_MEDIA_TYPE** ppMediaTypes,
709 ULONG* pcFetched);
710
711 HRESULT (STDMETHODCALLTYPE *Skip)(
712 IEnumMediaTypes* This,
713 ULONG cMediaTypes);
714
715 HRESULT (STDMETHODCALLTYPE *Reset)(
716 IEnumMediaTypes* This);
717
718 HRESULT (STDMETHODCALLTYPE *Clone)(
719 IEnumMediaTypes* This,
720 IEnumMediaTypes** ppEnum);
721
722 END_INTERFACE
723 };
724
725 #ifdef COBJMACROS
726 /*** IUnknown methods ***/
727 #define IEnumMediaTypes_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
728 #define IEnumMediaTypes_AddRef(p) (p)->lpVtbl->AddRef(p)
729 #define IEnumMediaTypes_Release(p) (p)->lpVtbl->Release(p)
730 /*** IEnumMediaTypes methods ***/
731 #define IEnumMediaTypes_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
732 #define IEnumMediaTypes_Skip(p,a) (p)->lpVtbl->Skip(p,a)
733 #define IEnumMediaTypes_Reset(p) (p)->lpVtbl->Reset(p)
734 #define IEnumMediaTypes_Clone(p,a) (p)->lpVtbl->Clone(p,a)
735 #endif
736
737 #endif
738
739 #define IEnumMediaTypes_METHODS \
740 /*** IUnknown methods ***/ \
741 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
742 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
743 STDMETHOD_(ULONG,Release)(THIS) PURE; \
744 /*** IEnumMediaTypes methods ***/ \
745 STDMETHOD_(HRESULT,Next)(THIS_ ULONG cMediaTypes, AM_MEDIA_TYPE** ppMediaTypes, ULONG* pcFetched) PURE; \
746 STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cMediaTypes) PURE; \
747 STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
748 STDMETHOD_(HRESULT,Clone)(THIS_ IEnumMediaTypes** ppEnum) PURE;
749
750 HRESULT CALLBACK IEnumMediaTypes_Next_Proxy(
751 IEnumMediaTypes* This,
752 ULONG cMediaTypes,
753 AM_MEDIA_TYPE** ppMediaTypes,
754 ULONG* pcFetched);
755 void __RPC_STUB IEnumMediaTypes_Next_Stub(
756 struct IRpcStubBuffer* This,
757 struct IRpcChannelBuffer* pRpcChannelBuffer,
758 PRPC_MESSAGE pRpcMessage,
759 DWORD* pdwStubPhase);
760 HRESULT CALLBACK IEnumMediaTypes_Skip_Proxy(
761 IEnumMediaTypes* This,
762 ULONG cMediaTypes);
763 void __RPC_STUB IEnumMediaTypes_Skip_Stub(
764 struct IRpcStubBuffer* This,
765 struct IRpcChannelBuffer* pRpcChannelBuffer,
766 PRPC_MESSAGE pRpcMessage,
767 DWORD* pdwStubPhase);
768 HRESULT CALLBACK IEnumMediaTypes_Reset_Proxy(
769 IEnumMediaTypes* This);
770 void __RPC_STUB IEnumMediaTypes_Reset_Stub(
771 struct IRpcStubBuffer* This,
772 struct IRpcChannelBuffer* pRpcChannelBuffer,
773 PRPC_MESSAGE pRpcMessage,
774 DWORD* pdwStubPhase);
775 HRESULT CALLBACK IEnumMediaTypes_Clone_Proxy(
776 IEnumMediaTypes* This,
777 IEnumMediaTypes** ppEnum);
778 void __RPC_STUB IEnumMediaTypes_Clone_Stub(
779 struct IRpcStubBuffer* This,
780 struct IRpcChannelBuffer* pRpcChannelBuffer,
781 PRPC_MESSAGE pRpcMessage,
782 DWORD* pdwStubPhase);
783
784 #endif /* __IEnumMediaTypes_INTERFACE_DEFINED__ */
785
786 typedef IEnumMediaTypes *PENUMMEDIATYPES;
787
788 /*****************************************************************************
789 * IFilterGraph interface
790 */
791 #ifndef __IFilterGraph_INTERFACE_DEFINED__
792 #define __IFilterGraph_INTERFACE_DEFINED__
793
794 DEFINE_GUID(IID_IFilterGraph, 0x56a8689f, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
795 #if defined(__cplusplus) && !defined(CINTERFACE)
796 struct IFilterGraph : public IUnknown
797 {
798 virtual HRESULT STDMETHODCALLTYPE AddFilter(
799 IBaseFilter* pFilter,
800 LPCWSTR pName) = 0;
801
802 virtual HRESULT STDMETHODCALLTYPE RemoveFilter(
803 IBaseFilter* pFilter) = 0;
804
805 virtual HRESULT STDMETHODCALLTYPE EnumFilters(
806 IEnumFilters** ppEnum) = 0;
807
808 virtual HRESULT STDMETHODCALLTYPE FindFilterByName(
809 LPCWSTR pName,
810 IBaseFilter** ppFilter) = 0;
811
812 virtual HRESULT STDMETHODCALLTYPE ConnectDirect(
813 IPin* ppinOut,
814 IPin* ppinIn,
815 const AM_MEDIA_TYPE* pmt) = 0;
816
817 virtual HRESULT STDMETHODCALLTYPE Reconnect(
818 IPin* ppin) = 0;
819
820 virtual HRESULT STDMETHODCALLTYPE Disconnect(
821 IPin* ppin) = 0;
822
823 virtual HRESULT STDMETHODCALLTYPE SetDefaultSyncSource(
824 ) = 0;
825
826 };
827 #else
828 typedef struct IFilterGraphVtbl IFilterGraphVtbl;
829 struct IFilterGraph {
830 const IFilterGraphVtbl* lpVtbl;
831 };
832 struct IFilterGraphVtbl {
833 BEGIN_INTERFACE
834
835 /*** IUnknown methods ***/
836 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
837 IFilterGraph* This,
838 REFIID riid,
839 void** ppvObject);
840
841 ULONG (STDMETHODCALLTYPE *AddRef)(
842 IFilterGraph* This);
843
844 ULONG (STDMETHODCALLTYPE *Release)(
845 IFilterGraph* This);
846
847 /*** IFilterGraph methods ***/
848 HRESULT (STDMETHODCALLTYPE *AddFilter)(
849 IFilterGraph* This,
850 IBaseFilter* pFilter,
851 LPCWSTR pName);
852
853 HRESULT (STDMETHODCALLTYPE *RemoveFilter)(
854 IFilterGraph* This,
855 IBaseFilter* pFilter);
856
857 HRESULT (STDMETHODCALLTYPE *EnumFilters)(
858 IFilterGraph* This,
859 IEnumFilters** ppEnum);
860
861 HRESULT (STDMETHODCALLTYPE *FindFilterByName)(
862 IFilterGraph* This,
863 LPCWSTR pName,
864 IBaseFilter** ppFilter);
865
866 HRESULT (STDMETHODCALLTYPE *ConnectDirect)(
867 IFilterGraph* This,
868 IPin* ppinOut,
869 IPin* ppinIn,
870 const AM_MEDIA_TYPE* pmt);
871
872 HRESULT (STDMETHODCALLTYPE *Reconnect)(
873 IFilterGraph* This,
874 IPin* ppin);
875
876 HRESULT (STDMETHODCALLTYPE *Disconnect)(
877 IFilterGraph* This,
878 IPin* ppin);
879
880 HRESULT (STDMETHODCALLTYPE *SetDefaultSyncSource)(
881 IFilterGraph* This);
882
883 END_INTERFACE
884 };
885
886 #ifdef COBJMACROS
887 /*** IUnknown methods ***/
888 #define IFilterGraph_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
889 #define IFilterGraph_AddRef(p) (p)->lpVtbl->AddRef(p)
890 #define IFilterGraph_Release(p) (p)->lpVtbl->Release(p)
891 /*** IFilterGraph methods ***/
892 #define IFilterGraph_AddFilter(p,a,b) (p)->lpVtbl->AddFilter(p,a,b)
893 #define IFilterGraph_RemoveFilter(p,a) (p)->lpVtbl->RemoveFilter(p,a)
894 #define IFilterGraph_EnumFilters(p,a) (p)->lpVtbl->EnumFilters(p,a)
895 #define IFilterGraph_FindFilterByName(p,a,b) (p)->lpVtbl->FindFilterByName(p,a,b)
896 #define IFilterGraph_ConnectDirect(p,a,b,c) (p)->lpVtbl->ConnectDirect(p,a,b,c)
897 #define IFilterGraph_Reconnect(p,a) (p)->lpVtbl->Reconnect(p,a)
898 #define IFilterGraph_Disconnect(p,a) (p)->lpVtbl->Disconnect(p,a)
899 #define IFilterGraph_SetDefaultSyncSource(p) (p)->lpVtbl->SetDefaultSyncSource(p)
900 #endif
901
902 #endif
903
904 #define IFilterGraph_METHODS \
905 /*** IUnknown methods ***/ \
906 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
907 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
908 STDMETHOD_(ULONG,Release)(THIS) PURE; \
909 /*** IFilterGraph methods ***/ \
910 STDMETHOD_(HRESULT,AddFilter)(THIS_ IBaseFilter* pFilter, LPCWSTR pName) PURE; \
911 STDMETHOD_(HRESULT,RemoveFilter)(THIS_ IBaseFilter* pFilter) PURE; \
912 STDMETHOD_(HRESULT,EnumFilters)(THIS_ IEnumFilters** ppEnum) PURE; \
913 STDMETHOD_(HRESULT,FindFilterByName)(THIS_ LPCWSTR pName, IBaseFilter** ppFilter) PURE; \
914 STDMETHOD_(HRESULT,ConnectDirect)(THIS_ IPin* ppinOut, IPin* ppinIn, const AM_MEDIA_TYPE* pmt) PURE; \
915 STDMETHOD_(HRESULT,Reconnect)(THIS_ IPin* ppin) PURE; \
916 STDMETHOD_(HRESULT,Disconnect)(THIS_ IPin* ppin) PURE; \
917 STDMETHOD_(HRESULT,SetDefaultSyncSource)(THIS) PURE;
918
919 HRESULT CALLBACK IFilterGraph_AddFilter_Proxy(
920 IFilterGraph* This,
921 IBaseFilter* pFilter,
922 LPCWSTR pName);
923 void __RPC_STUB IFilterGraph_AddFilter_Stub(
924 struct IRpcStubBuffer* This,
925 struct IRpcChannelBuffer* pRpcChannelBuffer,
926 PRPC_MESSAGE pRpcMessage,
927 DWORD* pdwStubPhase);
928 HRESULT CALLBACK IFilterGraph_RemoveFilter_Proxy(
929 IFilterGraph* This,
930 IBaseFilter* pFilter);
931 void __RPC_STUB IFilterGraph_RemoveFilter_Stub(
932 struct IRpcStubBuffer* This,
933 struct IRpcChannelBuffer* pRpcChannelBuffer,
934 PRPC_MESSAGE pRpcMessage,
935 DWORD* pdwStubPhase);
936 HRESULT CALLBACK IFilterGraph_EnumFilters_Proxy(
937 IFilterGraph* This,
938 IEnumFilters** ppEnum);
939 void __RPC_STUB IFilterGraph_EnumFilters_Stub(
940 struct IRpcStubBuffer* This,
941 struct IRpcChannelBuffer* pRpcChannelBuffer,
942 PRPC_MESSAGE pRpcMessage,
943 DWORD* pdwStubPhase);
944 HRESULT CALLBACK IFilterGraph_FindFilterByName_Proxy(
945 IFilterGraph* This,
946 LPCWSTR pName,
947 IBaseFilter** ppFilter);
948 void __RPC_STUB IFilterGraph_FindFilterByName_Stub(
949 struct IRpcStubBuffer* This,
950 struct IRpcChannelBuffer* pRpcChannelBuffer,
951 PRPC_MESSAGE pRpcMessage,
952 DWORD* pdwStubPhase);
953 HRESULT CALLBACK IFilterGraph_ConnectDirect_Proxy(
954 IFilterGraph* This,
955 IPin* ppinOut,
956 IPin* ppinIn,
957 const AM_MEDIA_TYPE* pmt);
958 void __RPC_STUB IFilterGraph_ConnectDirect_Stub(
959 struct IRpcStubBuffer* This,
960 struct IRpcChannelBuffer* pRpcChannelBuffer,
961 PRPC_MESSAGE pRpcMessage,
962 DWORD* pdwStubPhase);
963 HRESULT CALLBACK IFilterGraph_Reconnect_Proxy(
964 IFilterGraph* This,
965 IPin* ppin);
966 void __RPC_STUB IFilterGraph_Reconnect_Stub(
967 struct IRpcStubBuffer* This,
968 struct IRpcChannelBuffer* pRpcChannelBuffer,
969 PRPC_MESSAGE pRpcMessage,
970 DWORD* pdwStubPhase);
971 HRESULT CALLBACK IFilterGraph_Disconnect_Proxy(
972 IFilterGraph* This,
973 IPin* ppin);
974 void __RPC_STUB IFilterGraph_Disconnect_Stub(
975 struct IRpcStubBuffer* This,
976 struct IRpcChannelBuffer* pRpcChannelBuffer,
977 PRPC_MESSAGE pRpcMessage,
978 DWORD* pdwStubPhase);
979 HRESULT CALLBACK IFilterGraph_SetDefaultSyncSource_Proxy(
980 IFilterGraph* This);
981 void __RPC_STUB IFilterGraph_SetDefaultSyncSource_Stub(
982 struct IRpcStubBuffer* This,
983 struct IRpcChannelBuffer* pRpcChannelBuffer,
984 PRPC_MESSAGE pRpcMessage,
985 DWORD* pdwStubPhase);
986
987 #endif /* __IFilterGraph_INTERFACE_DEFINED__ */
988
989 typedef IFilterGraph *PFILTERGRAPH;
990
991 /*****************************************************************************
992 * IEnumFilters interface
993 */
994 #ifndef __IEnumFilters_INTERFACE_DEFINED__
995 #define __IEnumFilters_INTERFACE_DEFINED__
996
997 DEFINE_GUID(IID_IEnumFilters, 0x56a86893, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
998 #if defined(__cplusplus) && !defined(CINTERFACE)
999 struct IEnumFilters : public IUnknown
1000 {
1001 virtual HRESULT STDMETHODCALLTYPE Next(
1002 ULONG cFilters,
1003 IBaseFilter** ppFilter,
1004 ULONG* pcFetched) = 0;
1005
1006 virtual HRESULT STDMETHODCALLTYPE Skip(
1007 ULONG cFilters) = 0;
1008
1009 virtual HRESULT STDMETHODCALLTYPE Reset(
1010 ) = 0;
1011
1012 virtual HRESULT STDMETHODCALLTYPE Clone(
1013 IEnumFilters** ppEnum) = 0;
1014
1015 };
1016 #else
1017 typedef struct IEnumFiltersVtbl IEnumFiltersVtbl;
1018 struct IEnumFilters {
1019 const IEnumFiltersVtbl* lpVtbl;
1020 };
1021 struct IEnumFiltersVtbl {
1022 BEGIN_INTERFACE
1023
1024 /*** IUnknown methods ***/
1025 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1026 IEnumFilters* This,
1027 REFIID riid,
1028 void** ppvObject);
1029
1030 ULONG (STDMETHODCALLTYPE *AddRef)(
1031 IEnumFilters* This);
1032
1033 ULONG (STDMETHODCALLTYPE *Release)(
1034 IEnumFilters* This);
1035
1036 /*** IEnumFilters methods ***/
1037 HRESULT (STDMETHODCALLTYPE *Next)(
1038 IEnumFilters* This,
1039 ULONG cFilters,
1040 IBaseFilter** ppFilter,
1041 ULONG* pcFetched);
1042
1043 HRESULT (STDMETHODCALLTYPE *Skip)(
1044 IEnumFilters* This,
1045 ULONG cFilters);
1046
1047 HRESULT (STDMETHODCALLTYPE *Reset)(
1048 IEnumFilters* This);
1049
1050 HRESULT (STDMETHODCALLTYPE *Clone)(
1051 IEnumFilters* This,
1052 IEnumFilters** ppEnum);
1053
1054 END_INTERFACE
1055 };
1056
1057 #ifdef COBJMACROS
1058 /*** IUnknown methods ***/
1059 #define IEnumFilters_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1060 #define IEnumFilters_AddRef(p) (p)->lpVtbl->AddRef(p)
1061 #define IEnumFilters_Release(p) (p)->lpVtbl->Release(p)
1062 /*** IEnumFilters methods ***/
1063 #define IEnumFilters_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
1064 #define IEnumFilters_Skip(p,a) (p)->lpVtbl->Skip(p,a)
1065 #define IEnumFilters_Reset(p) (p)->lpVtbl->Reset(p)
1066 #define IEnumFilters_Clone(p,a) (p)->lpVtbl->Clone(p,a)
1067 #endif
1068
1069 #endif
1070
1071 #define IEnumFilters_METHODS \
1072 /*** IUnknown methods ***/ \
1073 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
1074 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
1075 STDMETHOD_(ULONG,Release)(THIS) PURE; \
1076 /*** IEnumFilters methods ***/ \
1077 STDMETHOD_(HRESULT,Next)(THIS_ ULONG cFilters, IBaseFilter** ppFilter, ULONG* pcFetched) PURE; \
1078 STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cFilters) PURE; \
1079 STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
1080 STDMETHOD_(HRESULT,Clone)(THIS_ IEnumFilters** ppEnum) PURE;
1081
1082 HRESULT CALLBACK IEnumFilters_Next_Proxy(
1083 IEnumFilters* This,
1084 ULONG cFilters,
1085 IBaseFilter** ppFilter,
1086 ULONG* pcFetched);
1087 void __RPC_STUB IEnumFilters_Next_Stub(
1088 struct IRpcStubBuffer* This,
1089 struct IRpcChannelBuffer* pRpcChannelBuffer,
1090 PRPC_MESSAGE pRpcMessage,
1091 DWORD* pdwStubPhase);
1092 HRESULT CALLBACK IEnumFilters_Skip_Proxy(
1093 IEnumFilters* This,
1094 ULONG cFilters);
1095 void __RPC_STUB IEnumFilters_Skip_Stub(
1096 struct IRpcStubBuffer* This,
1097 struct IRpcChannelBuffer* pRpcChannelBuffer,
1098 PRPC_MESSAGE pRpcMessage,
1099 DWORD* pdwStubPhase);
1100 HRESULT CALLBACK IEnumFilters_Reset_Proxy(
1101 IEnumFilters* This);
1102 void __RPC_STUB IEnumFilters_Reset_Stub(
1103 struct IRpcStubBuffer* This,
1104 struct IRpcChannelBuffer* pRpcChannelBuffer,
1105 PRPC_MESSAGE pRpcMessage,
1106 DWORD* pdwStubPhase);
1107 HRESULT CALLBACK IEnumFilters_Clone_Proxy(
1108 IEnumFilters* This,
1109 IEnumFilters** ppEnum);
1110 void __RPC_STUB IEnumFilters_Clone_Stub(
1111 struct IRpcStubBuffer* This,
1112 struct IRpcChannelBuffer* pRpcChannelBuffer,
1113 PRPC_MESSAGE pRpcMessage,
1114 DWORD* pdwStubPhase);
1115
1116 #endif /* __IEnumFilters_INTERFACE_DEFINED__ */
1117
1118 typedef IEnumFilters *PENUMFILTERS;
1119
1120 typedef enum _FilterState {
1121 State_Stopped,
1122 State_Paused,
1123 State_Running
1124 } FILTER_STATE;
1125
1126 /*****************************************************************************
1127 * IMediaFilter interface
1128 */
1129 #ifndef __IMediaFilter_INTERFACE_DEFINED__
1130 #define __IMediaFilter_INTERFACE_DEFINED__
1131
1132 DEFINE_GUID(IID_IMediaFilter, 0x56a86899, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
1133 #if defined(__cplusplus) && !defined(CINTERFACE)
1134 struct IMediaFilter : public IPersist
1135 {
1136 virtual HRESULT STDMETHODCALLTYPE Stop(
1137 ) = 0;
1138
1139 virtual HRESULT STDMETHODCALLTYPE Pause(
1140 ) = 0;
1141
1142 virtual HRESULT STDMETHODCALLTYPE Run(
1143 REFERENCE_TIME tStart) = 0;
1144
1145 virtual HRESULT STDMETHODCALLTYPE GetState(
1146 DWORD dwMilliSecsTimeout,
1147 FILTER_STATE* State) = 0;
1148
1149 virtual HRESULT STDMETHODCALLTYPE SetSyncSource(
1150 IReferenceClock* pClock) = 0;
1151
1152 virtual HRESULT STDMETHODCALLTYPE GetSyncSource(
1153 IReferenceClock** pClock) = 0;
1154
1155 };
1156 #else
1157 typedef struct IMediaFilterVtbl IMediaFilterVtbl;
1158 struct IMediaFilter {
1159 const IMediaFilterVtbl* lpVtbl;
1160 };
1161 struct IMediaFilterVtbl {
1162 BEGIN_INTERFACE
1163
1164 /*** IUnknown methods ***/
1165 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1166 IMediaFilter* This,
1167 REFIID riid,
1168 void** ppvObject);
1169
1170 ULONG (STDMETHODCALLTYPE *AddRef)(
1171 IMediaFilter* This);
1172
1173 ULONG (STDMETHODCALLTYPE *Release)(
1174 IMediaFilter* This);
1175
1176 /*** IPersist methods ***/
1177 HRESULT (STDMETHODCALLTYPE *GetClassID)(
1178 IMediaFilter* This,
1179 CLSID* pClassID);
1180
1181 /*** IMediaFilter methods ***/
1182 HRESULT (STDMETHODCALLTYPE *Stop)(
1183 IMediaFilter* This);
1184
1185 HRESULT (STDMETHODCALLTYPE *Pause)(
1186 IMediaFilter* This);
1187
1188 HRESULT (STDMETHODCALLTYPE *Run)(
1189 IMediaFilter* This,
1190 REFERENCE_TIME tStart);
1191
1192 HRESULT (STDMETHODCALLTYPE *GetState)(
1193 IMediaFilter* This,
1194 DWORD dwMilliSecsTimeout,
1195 FILTER_STATE* State);
1196
1197 HRESULT (STDMETHODCALLTYPE *SetSyncSource)(
1198 IMediaFilter* This,
1199 IReferenceClock* pClock);
1200
1201 HRESULT (STDMETHODCALLTYPE *GetSyncSource)(
1202 IMediaFilter* This,
1203 IReferenceClock** pClock);
1204
1205 END_INTERFACE
1206 };
1207
1208 #ifdef COBJMACROS
1209 /*** IUnknown methods ***/
1210 #define IMediaFilter_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1211 #define IMediaFilter_AddRef(p) (p)->lpVtbl->AddRef(p)
1212 #define IMediaFilter_Release(p) (p)->lpVtbl->Release(p)
1213 /*** IPersist methods ***/
1214 #define IMediaFilter_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a)
1215 /*** IMediaFilter methods ***/
1216 #define IMediaFilter_Stop(p) (p)->lpVtbl->Stop(p)
1217 #define IMediaFilter_Pause(p) (p)->lpVtbl->Pause(p)
1218 #define IMediaFilter_Run(p,a) (p)->lpVtbl->Run(p,a)
1219 #define IMediaFilter_GetState(p,a,b) (p)->lpVtbl->GetState(p,a,b)
1220 #define IMediaFilter_SetSyncSource(p,a) (p)->lpVtbl->SetSyncSource(p,a)
1221 #define IMediaFilter_GetSyncSource(p,a) (p)->lpVtbl->GetSyncSource(p,a)
1222 #endif
1223
1224 #endif
1225
1226 #define IMediaFilter_METHODS \
1227 /*** IUnknown methods ***/ \
1228 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
1229 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
1230 STDMETHOD_(ULONG,Release)(THIS) PURE; \
1231 /*** IPersist methods ***/ \
1232 STDMETHOD_(HRESULT,GetClassID)(THIS_ CLSID* pClassID) PURE; \
1233 /*** IMediaFilter methods ***/ \
1234 STDMETHOD_(HRESULT,Stop)(THIS) PURE; \
1235 STDMETHOD_(HRESULT,Pause)(THIS) PURE; \
1236 STDMETHOD_(HRESULT,Run)(THIS_ REFERENCE_TIME tStart) PURE; \
1237 STDMETHOD_(HRESULT,GetState)(THIS_ DWORD dwMilliSecsTimeout, FILTER_STATE* State) PURE; \
1238 STDMETHOD_(HRESULT,SetSyncSource)(THIS_ IReferenceClock* pClock) PURE; \
1239 STDMETHOD_(HRESULT,GetSyncSource)(THIS_ IReferenceClock** pClock) PURE;
1240
1241 HRESULT CALLBACK IMediaFilter_Stop_Proxy(
1242 IMediaFilter* This);
1243 void __RPC_STUB IMediaFilter_Stop_Stub(
1244 struct IRpcStubBuffer* This,
1245 struct IRpcChannelBuffer* pRpcChannelBuffer,
1246 PRPC_MESSAGE pRpcMessage,
1247 DWORD* pdwStubPhase);
1248 HRESULT CALLBACK IMediaFilter_Pause_Proxy(
1249 IMediaFilter* This);
1250 void __RPC_STUB IMediaFilter_Pause_Stub(
1251 struct IRpcStubBuffer* This,
1252 struct IRpcChannelBuffer* pRpcChannelBuffer,
1253 PRPC_MESSAGE pRpcMessage,
1254 DWORD* pdwStubPhase);
1255 HRESULT CALLBACK IMediaFilter_Run_Proxy(
1256 IMediaFilter* This,
1257 REFERENCE_TIME tStart);
1258 void __RPC_STUB IMediaFilter_Run_Stub(
1259 struct IRpcStubBuffer* This,
1260 struct IRpcChannelBuffer* pRpcChannelBuffer,
1261 PRPC_MESSAGE pRpcMessage,
1262 DWORD* pdwStubPhase);
1263 HRESULT CALLBACK IMediaFilter_GetState_Proxy(
1264 IMediaFilter* This,
1265 DWORD dwMilliSecsTimeout,
1266 FILTER_STATE* State);
1267 void __RPC_STUB IMediaFilter_GetState_Stub(
1268 struct IRpcStubBuffer* This,
1269 struct IRpcChannelBuffer* pRpcChannelBuffer,
1270 PRPC_MESSAGE pRpcMessage,
1271 DWORD* pdwStubPhase);
1272 HRESULT CALLBACK IMediaFilter_SetSyncSource_Proxy(
1273 IMediaFilter* This,
1274 IReferenceClock* pClock);
1275 void __RPC_STUB IMediaFilter_SetSyncSource_Stub(
1276 struct IRpcStubBuffer* This,
1277 struct IRpcChannelBuffer* pRpcChannelBuffer,
1278 PRPC_MESSAGE pRpcMessage,
1279 DWORD* pdwStubPhase);
1280 HRESULT CALLBACK IMediaFilter_GetSyncSource_Proxy(
1281 IMediaFilter* This,
1282 IReferenceClock** pClock);
1283 void __RPC_STUB IMediaFilter_GetSyncSource_Stub(
1284 struct IRpcStubBuffer* This,
1285 struct IRpcChannelBuffer* pRpcChannelBuffer,
1286 PRPC_MESSAGE pRpcMessage,
1287 DWORD* pdwStubPhase);
1288
1289 #endif /* __IMediaFilter_INTERFACE_DEFINED__ */
1290
1291 typedef IMediaFilter *PMEDIAFILTER;
1292
1293 typedef struct _FilterInfo {
1294 WCHAR achName[128];
1295 IFilterGraph *pGraph;
1296 } FILTER_INFO;
1297
1298 /*****************************************************************************
1299 * IBaseFilter interface
1300 */
1301 #ifndef __IBaseFilter_INTERFACE_DEFINED__
1302 #define __IBaseFilter_INTERFACE_DEFINED__
1303
1304 DEFINE_GUID(IID_IBaseFilter, 0x56a86895, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
1305 #if defined(__cplusplus) && !defined(CINTERFACE)
1306 struct IBaseFilter : public IMediaFilter
1307 {
1308 virtual HRESULT STDMETHODCALLTYPE EnumPins(
1309 IEnumPins** ppEnum) = 0;
1310
1311 virtual HRESULT STDMETHODCALLTYPE FindPin(
1312 LPCWSTR Id,
1313 IPin** ppPin) = 0;
1314
1315 virtual HRESULT STDMETHODCALLTYPE QueryFilterInfo(
1316 FILTER_INFO* pInfo) = 0;
1317
1318 virtual HRESULT STDMETHODCALLTYPE JoinFilterGraph(
1319 IFilterGraph* pGraph,
1320 LPCWSTR pName) = 0;
1321
1322 virtual HRESULT STDMETHODCALLTYPE QueryVendorInfo(
1323 LPWSTR* pVendorInfo) = 0;
1324
1325 };
1326 #else
1327 typedef struct IBaseFilterVtbl IBaseFilterVtbl;
1328 struct IBaseFilter {
1329 const IBaseFilterVtbl* lpVtbl;
1330 };
1331 struct IBaseFilterVtbl {
1332 BEGIN_INTERFACE
1333
1334 /*** IUnknown methods ***/
1335 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1336 IBaseFilter* This,
1337 REFIID riid,
1338 void** ppvObject);
1339
1340 ULONG (STDMETHODCALLTYPE *AddRef)(
1341 IBaseFilter* This);
1342
1343 ULONG (STDMETHODCALLTYPE *Release)(
1344 IBaseFilter* This);
1345
1346 /*** IPersist methods ***/
1347 HRESULT (STDMETHODCALLTYPE *GetClassID)(
1348 IBaseFilter* This,
1349 CLSID* pClassID);
1350
1351 /*** IMediaFilter methods ***/
1352 HRESULT (STDMETHODCALLTYPE *Stop)(
1353 IBaseFilter* This);
1354
1355 HRESULT (STDMETHODCALLTYPE *Pause)(
1356 IBaseFilter* This);
1357
1358 HRESULT (STDMETHODCALLTYPE *Run)(
1359 IBaseFilter* This,
1360 REFERENCE_TIME tStart);
1361
1362 HRESULT (STDMETHODCALLTYPE *GetState)(
1363 IBaseFilter* This,
1364 DWORD dwMilliSecsTimeout,
1365 FILTER_STATE* State);
1366
1367 HRESULT (STDMETHODCALLTYPE *SetSyncSource)(
1368 IBaseFilter* This,
1369 IReferenceClock* pClock);
1370
1371 HRESULT (STDMETHODCALLTYPE *GetSyncSource)(
1372 IBaseFilter* This,
1373 IReferenceClock** pClock);
1374
1375 /*** IBaseFilter methods ***/
1376 HRESULT (STDMETHODCALLTYPE *EnumPins)(
1377 IBaseFilter* This,
1378 IEnumPins** ppEnum);
1379
1380 HRESULT (STDMETHODCALLTYPE *FindPin)(
1381 IBaseFilter* This,
1382 LPCWSTR Id,
1383 IPin** ppPin);
1384
1385 HRESULT (STDMETHODCALLTYPE *QueryFilterInfo)(
1386 IBaseFilter* This,
1387 FILTER_INFO* pInfo);
1388
1389 HRESULT (STDMETHODCALLTYPE *JoinFilterGraph)(
1390 IBaseFilter* This,
1391 IFilterGraph* pGraph,
1392 LPCWSTR pName);
1393
1394 HRESULT (STDMETHODCALLTYPE *QueryVendorInfo)(
1395 IBaseFilter* This,
1396 LPWSTR* pVendorInfo);
1397
1398 END_INTERFACE
1399 };
1400
1401 #ifdef COBJMACROS
1402 /*** IUnknown methods ***/
1403 #define IBaseFilter_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1404 #define IBaseFilter_AddRef(p) (p)->lpVtbl->AddRef(p)
1405 #define IBaseFilter_Release(p) (p)->lpVtbl->Release(p)
1406 /*** IPersist methods ***/
1407 #define IBaseFilter_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a)
1408 /*** IMediaFilter methods ***/
1409 #define IBaseFilter_Stop(p) (p)->lpVtbl->Stop(p)
1410 #define IBaseFilter_Pause(p) (p)->lpVtbl->Pause(p)
1411 #define IBaseFilter_Run(p,a) (p)->lpVtbl->Run(p,a)
1412 #define IBaseFilter_GetState(p,a,b) (p)->lpVtbl->GetState(p,a,b)
1413 #define IBaseFilter_SetSyncSource(p,a) (p)->lpVtbl->SetSyncSource(p,a)
1414 #define IBaseFilter_GetSyncSource(p,a) (p)->lpVtbl->GetSyncSource(p,a)
1415 /*** IBaseFilter methods ***/
1416 #define IBaseFilter_EnumPins(p,a) (p)->lpVtbl->EnumPins(p,a)
1417 #define IBaseFilter_FindPin(p,a,b) (p)->lpVtbl->FindPin(p,a,b)
1418 #define IBaseFilter_QueryFilterInfo(p,a) (p)->lpVtbl->QueryFilterInfo(p,a)
1419 #define IBaseFilter_JoinFilterGraph(p,a,b) (p)->lpVtbl->JoinFilterGraph(p,a,b)
1420 #define IBaseFilter_QueryVendorInfo(p,a) (p)->lpVtbl->QueryVendorInfo(p,a)
1421 #endif
1422
1423 #endif
1424
1425 #define IBaseFilter_METHODS \
1426 /*** IUnknown methods ***/ \
1427 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
1428 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
1429 STDMETHOD_(ULONG,Release)(THIS) PURE; \
1430 /*** IPersist methods ***/ \
1431 STDMETHOD_(HRESULT,GetClassID)(THIS_ CLSID* pClassID) PURE; \
1432 /*** IMediaFilter methods ***/ \
1433 STDMETHOD_(HRESULT,Stop)(THIS) PURE; \
1434 STDMETHOD_(HRESULT,Pause)(THIS) PURE; \
1435 STDMETHOD_(HRESULT,Run)(THIS_ REFERENCE_TIME tStart) PURE; \
1436 STDMETHOD_(HRESULT,GetState)(THIS_ DWORD dwMilliSecsTimeout, FILTER_STATE* State) PURE; \
1437 STDMETHOD_(HRESULT,SetSyncSource)(THIS_ IReferenceClock* pClock) PURE; \
1438 STDMETHOD_(HRESULT,GetSyncSource)(THIS_ IReferenceClock** pClock) PURE; \
1439 /*** IBaseFilter methods ***/ \
1440 STDMETHOD_(HRESULT,EnumPins)(THIS_ IEnumPins** ppEnum) PURE; \
1441 STDMETHOD_(HRESULT,FindPin)(THIS_ LPCWSTR Id, IPin** ppPin) PURE; \
1442 STDMETHOD_(HRESULT,QueryFilterInfo)(THIS_ FILTER_INFO* pInfo) PURE; \
1443 STDMETHOD_(HRESULT,JoinFilterGraph)(THIS_ IFilterGraph* pGraph, LPCWSTR pName) PURE; \
1444 STDMETHOD_(HRESULT,QueryVendorInfo)(THIS_ LPWSTR* pVendorInfo) PURE;
1445
1446 HRESULT CALLBACK IBaseFilter_EnumPins_Proxy(
1447 IBaseFilter* This,
1448 IEnumPins** ppEnum);
1449 void __RPC_STUB IBaseFilter_EnumPins_Stub(
1450 struct IRpcStubBuffer* This,
1451 struct IRpcChannelBuffer* pRpcChannelBuffer,
1452 PRPC_MESSAGE pRpcMessage,
1453 DWORD* pdwStubPhase);
1454 HRESULT CALLBACK IBaseFilter_FindPin_Proxy(
1455 IBaseFilter* This,
1456 LPCWSTR Id,
1457 IPin** ppPin);
1458 void __RPC_STUB IBaseFilter_FindPin_Stub(
1459 struct IRpcStubBuffer* This,
1460 struct IRpcChannelBuffer* pRpcChannelBuffer,
1461 PRPC_MESSAGE pRpcMessage,
1462 DWORD* pdwStubPhase);
1463 HRESULT CALLBACK IBaseFilter_QueryFilterInfo_Proxy(
1464 IBaseFilter* This,
1465 FILTER_INFO* pInfo);
1466 void __RPC_STUB IBaseFilter_QueryFilterInfo_Stub(
1467 struct IRpcStubBuffer* This,
1468 struct IRpcChannelBuffer* pRpcChannelBuffer,
1469 PRPC_MESSAGE pRpcMessage,
1470 DWORD* pdwStubPhase);
1471 HRESULT CALLBACK IBaseFilter_JoinFilterGraph_Proxy(
1472 IBaseFilter* This,
1473 IFilterGraph* pGraph,
1474 LPCWSTR pName);
1475 void __RPC_STUB IBaseFilter_JoinFilterGraph_Stub(
1476 struct IRpcStubBuffer* This,
1477 struct IRpcChannelBuffer* pRpcChannelBuffer,
1478 PRPC_MESSAGE pRpcMessage,
1479 DWORD* pdwStubPhase);
1480 HRESULT CALLBACK IBaseFilter_QueryVendorInfo_Proxy(
1481 IBaseFilter* This,
1482 LPWSTR* pVendorInfo);
1483 void __RPC_STUB IBaseFilter_QueryVendorInfo_Stub(
1484 struct IRpcStubBuffer* This,
1485 struct IRpcChannelBuffer* pRpcChannelBuffer,
1486 PRPC_MESSAGE pRpcMessage,
1487 DWORD* pdwStubPhase);
1488
1489 #endif /* __IBaseFilter_INTERFACE_DEFINED__ */
1490
1491 typedef IBaseFilter *PFILTER;
1492
1493 /*****************************************************************************
1494 * IReferenceClock interface
1495 */
1496 #ifndef __IReferenceClock_INTERFACE_DEFINED__
1497 #define __IReferenceClock_INTERFACE_DEFINED__
1498
1499 DEFINE_GUID(IID_IReferenceClock, 0x56a86897, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
1500 #if defined(__cplusplus) && !defined(CINTERFACE)
1501 struct IReferenceClock : public IUnknown
1502 {
1503 virtual HRESULT STDMETHODCALLTYPE GetTime(
1504 REFERENCE_TIME* pTime) = 0;
1505
1506 virtual HRESULT STDMETHODCALLTYPE AdviseTime(
1507 REFERENCE_TIME baseTime,
1508 REFERENCE_TIME streamTime,
1509 HEVENT hEvent,
1510 DWORD_PTR* pdwAdviseCookie) = 0;
1511
1512 virtual HRESULT STDMETHODCALLTYPE AdvisePeriodic(
1513 REFERENCE_TIME startTime,
1514 REFERENCE_TIME periodTime,
1515 HSEMAPHORE hSemaphore,
1516 DWORD_PTR* pdwAdviseCookie) = 0;
1517
1518 virtual HRESULT STDMETHODCALLTYPE Unadvise(
1519 DWORD_PTR dwAdviseCookie) = 0;
1520
1521 };
1522 #else
1523 typedef struct IReferenceClockVtbl IReferenceClockVtbl;
1524 struct IReferenceClock {
1525 const IReferenceClockVtbl* lpVtbl;
1526 };
1527 struct IReferenceClockVtbl {
1528 BEGIN_INTERFACE
1529
1530 /*** IUnknown methods ***/
1531 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1532 IReferenceClock* This,
1533 REFIID riid,
1534 void** ppvObject);
1535
1536 ULONG (STDMETHODCALLTYPE *AddRef)(
1537 IReferenceClock* This);
1538
1539 ULONG (STDMETHODCALLTYPE *Release)(
1540 IReferenceClock* This);
1541
1542 /*** IReferenceClock methods ***/
1543 HRESULT (STDMETHODCALLTYPE *GetTime)(
1544 IReferenceClock* This,
1545 REFERENCE_TIME* pTime);
1546
1547 HRESULT (STDMETHODCALLTYPE *AdviseTime)(
1548 IReferenceClock* This,
1549 REFERENCE_TIME baseTime,
1550 REFERENCE_TIME streamTime,
1551 HEVENT hEvent,
1552 DWORD_PTR* pdwAdviseCookie);
1553
1554 HRESULT (STDMETHODCALLTYPE *AdvisePeriodic)(
1555 IReferenceClock* This,
1556 REFERENCE_TIME startTime,
1557 REFERENCE_TIME periodTime,
1558 HSEMAPHORE hSemaphore,
1559 DWORD_PTR* pdwAdviseCookie);
1560
1561 HRESULT (STDMETHODCALLTYPE *Unadvise)(
1562 IReferenceClock* This,
1563 DWORD_PTR dwAdviseCookie);
1564
1565 END_INTERFACE
1566 };
1567
1568 #ifdef COBJMACROS
1569 /*** IUnknown methods ***/
1570 #define IReferenceClock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1571 #define IReferenceClock_AddRef(p) (p)->lpVtbl->AddRef(p)
1572 #define IReferenceClock_Release(p) (p)->lpVtbl->Release(p)
1573 /*** IReferenceClock methods ***/
1574 #define IReferenceClock_GetTime(p,a) (p)->lpVtbl->GetTime(p,a)
1575 #define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->lpVtbl->AdviseTime(p,a,b,c,d)
1576 #define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->lpVtbl->AdvisePeriodic(p,a,b,c,d)
1577 #define IReferenceClock_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a)
1578 #endif
1579
1580 #endif
1581
1582 #define IReferenceClock_METHODS \
1583 /*** IUnknown methods ***/ \
1584 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
1585 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
1586 STDMETHOD_(ULONG,Release)(THIS) PURE; \
1587 /*** IReferenceClock methods ***/ \
1588 STDMETHOD_(HRESULT,GetTime)(THIS_ REFERENCE_TIME* pTime) PURE; \
1589 STDMETHOD_(HRESULT,AdviseTime)(THIS_ REFERENCE_TIME baseTime, REFERENCE_TIME streamTime, HEVENT hEvent, DWORD_PTR* pdwAdviseCookie) PURE; \
1590 STDMETHOD_(HRESULT,AdvisePeriodic)(THIS_ REFERENCE_TIME startTime, REFERENCE_TIME periodTime, HSEMAPHORE hSemaphore, DWORD_PTR* pdwAdviseCookie) PURE; \
1591 STDMETHOD_(HRESULT,Unadvise)(THIS_ DWORD_PTR dwAdviseCookie) PURE;
1592
1593 HRESULT CALLBACK IReferenceClock_GetTime_Proxy(
1594 IReferenceClock* This,
1595 REFERENCE_TIME* pTime);
1596 void __RPC_STUB IReferenceClock_GetTime_Stub(
1597 struct IRpcStubBuffer* This,
1598 struct IRpcChannelBuffer* pRpcChannelBuffer,
1599 PRPC_MESSAGE pRpcMessage,
1600 DWORD* pdwStubPhase);
1601 HRESULT CALLBACK IReferenceClock_AdviseTime_Proxy(
1602 IReferenceClock* This,
1603 REFERENCE_TIME baseTime,
1604 REFERENCE_TIME streamTime,
1605 HEVENT hEvent,
1606 DWORD_PTR* pdwAdviseCookie);
1607 void __RPC_STUB IReferenceClock_AdviseTime_Stub(
1608 struct IRpcStubBuffer* This,
1609 struct IRpcChannelBuffer* pRpcChannelBuffer,
1610 PRPC_MESSAGE pRpcMessage,
1611 DWORD* pdwStubPhase);
1612 HRESULT CALLBACK IReferenceClock_AdvisePeriodic_Proxy(
1613 IReferenceClock* This,
1614 REFERENCE_TIME startTime,
1615 REFERENCE_TIME periodTime,
1616 HSEMAPHORE hSemaphore,
1617 DWORD_PTR* pdwAdviseCookie);
1618 void __RPC_STUB IReferenceClock_AdvisePeriodic_Stub(
1619 struct IRpcStubBuffer* This,
1620 struct IRpcChannelBuffer* pRpcChannelBuffer,
1621 PRPC_MESSAGE pRpcMessage,
1622 DWORD* pdwStubPhase);
1623 HRESULT CALLBACK IReferenceClock_Unadvise_Proxy(
1624 IReferenceClock* This,
1625 DWORD_PTR dwAdviseCookie);
1626 void __RPC_STUB IReferenceClock_Unadvise_Stub(
1627 struct IRpcStubBuffer* This,
1628 struct IRpcChannelBuffer* pRpcChannelBuffer,
1629 PRPC_MESSAGE pRpcMessage,
1630 DWORD* pdwStubPhase);
1631
1632 #endif /* __IReferenceClock_INTERFACE_DEFINED__ */
1633
1634 typedef IReferenceClock *PREFERENCECLOCK;
1635
1636 /*****************************************************************************
1637 * IMediaSample interface
1638 */
1639 #ifndef __IMediaSample_INTERFACE_DEFINED__
1640 #define __IMediaSample_INTERFACE_DEFINED__
1641
1642 DEFINE_GUID(IID_IMediaSample, 0x56a8689a, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
1643 #if defined(__cplusplus) && !defined(CINTERFACE)
1644 struct IMediaSample : public IUnknown
1645 {
1646 virtual HRESULT STDMETHODCALLTYPE GetPointer(
1647 BYTE** ppBuffer) = 0;
1648
1649 virtual long STDMETHODCALLTYPE GetSize(
1650 ) = 0;
1651
1652 virtual HRESULT STDMETHODCALLTYPE GetTime(
1653 REFERENCE_TIME* pTimeStart,
1654 REFERENCE_TIME* pTimeEnd) = 0;
1655
1656 virtual HRESULT STDMETHODCALLTYPE SetTime(
1657 REFERENCE_TIME* pTimeStart,
1658 REFERENCE_TIME* pTimeEnd) = 0;
1659
1660 virtual HRESULT STDMETHODCALLTYPE IsSyncPoint(
1661 ) = 0;
1662
1663 virtual HRESULT STDMETHODCALLTYPE SetSyncPoint(
1664 BOOL bIsSyncPoint) = 0;
1665
1666 virtual HRESULT STDMETHODCALLTYPE IsPreroll(
1667 ) = 0;
1668
1669 virtual HRESULT STDMETHODCALLTYPE SetPreroll(
1670 BOOL bIsPreroll) = 0;
1671
1672 virtual long STDMETHODCALLTYPE GetActualDataLength(
1673 ) = 0;
1674
1675 virtual HRESULT STDMETHODCALLTYPE SetActualDataLength(
1676 long length) = 0;
1677
1678 virtual HRESULT STDMETHODCALLTYPE GetMediaType(
1679 AM_MEDIA_TYPE** ppMediaType) = 0;
1680
1681 virtual HRESULT STDMETHODCALLTYPE SetMediaType(
1682 AM_MEDIA_TYPE* pMediaType) = 0;
1683
1684 virtual HRESULT STDMETHODCALLTYPE IsDiscontinuity(
1685 ) = 0;
1686
1687 virtual HRESULT STDMETHODCALLTYPE SetDiscontinuity(
1688 BOOL bDiscontinuity) = 0;
1689
1690 virtual HRESULT STDMETHODCALLTYPE GetMediaTime(
1691 LONGLONG* pTimeStart,
1692 LONGLONG* pTimeEnd) = 0;
1693
1694 virtual HRESULT STDMETHODCALLTYPE SetMediaTime(
1695 LONGLONG* pTimeStart,
1696 LONGLONG* pTimeEnd) = 0;
1697
1698 };
1699 #else
1700 typedef struct IMediaSampleVtbl IMediaSampleVtbl;
1701 struct IMediaSample {
1702 const IMediaSampleVtbl* lpVtbl;
1703 };
1704 struct IMediaSampleVtbl {
1705 BEGIN_INTERFACE
1706
1707 /*** IUnknown methods ***/
1708 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
1709 IMediaSample* This,
1710 REFIID riid,
1711 void** ppvObject);
1712
1713 ULONG (STDMETHODCALLTYPE *AddRef)(
1714 IMediaSample* This);
1715
1716 ULONG (STDMETHODCALLTYPE *Release)(
1717 IMediaSample* This);
1718
1719 /*** IMediaSample methods ***/
1720 HRESULT (STDMETHODCALLTYPE *GetPointer)(
1721 IMediaSample* This,
1722 BYTE** ppBuffer);
1723
1724 long (STDMETHODCALLTYPE *GetSize)(
1725 IMediaSample* This);
1726
1727 HRESULT (STDMETHODCALLTYPE *GetTime)(
1728 IMediaSample* This,
1729 REFERENCE_TIME* pTimeStart,
1730 REFERENCE_TIME* pTimeEnd);
1731
1732 HRESULT (STDMETHODCALLTYPE *SetTime)(
1733 IMediaSample* This,
1734 REFERENCE_TIME* pTimeStart,
1735 REFERENCE_TIME* pTimeEnd);
1736
1737 HRESULT (STDMETHODCALLTYPE *IsSyncPoint)(
1738 IMediaSample* This);
1739
1740 HRESULT (STDMETHODCALLTYPE *SetSyncPoint)(
1741 IMediaSample* This,
1742 BOOL bIsSyncPoint);
1743
1744 HRESULT (STDMETHODCALLTYPE *IsPreroll)(
1745 IMediaSample* This);
1746
1747 HRESULT (STDMETHODCALLTYPE *SetPreroll)(
1748 IMediaSample* This,
1749 BOOL bIsPreroll);
1750
1751 long (STDMETHODCALLTYPE *GetActualDataLength)(
1752 IMediaSample* This);
1753
1754 HRESULT (STDMETHODCALLTYPE *SetActualDataLength)(
1755 IMediaSample* This,
1756 long length);
1757
1758 HRESULT (STDMETHODCALLTYPE *GetMediaType)(
1759 IMediaSample* This,
1760 AM_MEDIA_TYPE** ppMediaType);
1761
1762 HRESULT (STDMETHODCALLTYPE *SetMediaType)(
1763 IMediaSample* This,
1764 AM_MEDIA_TYPE* pMediaType);
1765
1766 HRESULT (STDMETHODCALLTYPE *IsDiscontinuity)(
1767 IMediaSample* This);
1768
1769 HRESULT (STDMETHODCALLTYPE *SetDiscontinuity)(
1770 IMediaSample* This,
1771 BOOL bDiscontinuity);
1772
1773 HRESULT (STDMETHODCALLTYPE *GetMediaTime)(
1774 IMediaSample* This,
1775 LONGLONG* pTimeStart,
1776 LONGLONG* pTimeEnd);
1777
1778 HRESULT (STDMETHODCALLTYPE *SetMediaTime)(
1779 IMediaSample* This,
1780 LONGLONG* pTimeStart,
1781 LONGLONG* pTimeEnd);
1782
1783 END_INTERFACE
1784 };
1785
1786 #ifdef COBJMACROS
1787 /*** IUnknown methods ***/
1788 #define IMediaSample_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1789 #define IMediaSample_AddRef(p) (p)->lpVtbl->AddRef(p)
1790 #define IMediaSample_Release(p) (p)->lpVtbl->Release(p)
1791 /*** IMediaSample methods ***/
1792 #define IMediaSample_GetPointer(p,a) (p)->lpVtbl->GetPointer(p,a)
1793 #define IMediaSample_GetSize(p) (p)->lpVtbl->GetSize(p)
1794 #define IMediaSample_GetTime(p,a,b) (p)->lpVtbl->GetTime(p,a,b)
1795 #define IMediaSample_SetTime(p,a,b) (p)->lpVtbl->SetTime(p,a,b)
1796 #define IMediaSample_IsSyncPoint(p) (p)->lpVtbl->IsSyncPoint(p)
1797 #define IMediaSample_SetSyncPoint(p,a) (p)->lpVtbl->SetSyncPoint(p,a)
1798 #define IMediaSample_IsPreroll(p) (p)->lpVtbl->IsPreroll(p)
1799 #define IMediaSample_SetPreroll(p,a) (p)->lpVtbl->SetPreroll(p,a)
1800 #define IMediaSample_GetActualDataLength(p) (p)->lpVtbl->GetActualDataLength(p)
1801 #define IMediaSample_SetActualDataLength(p,a) (p)->lpVtbl->SetActualDataLength(p,a)
1802 #define IMediaSample_GetMediaType(p,a) (p)->lpVtbl->GetMediaType(p,a)
1803 #define IMediaSample_SetMediaType(p,a) (p)->lpVtbl->SetMediaType(p,a)
1804 #define IMediaSample_IsDiscontinuity(p) (p)->lpVtbl->IsDiscontinuity(p)
1805 #define IMediaSample_SetDiscontinuity(p,a) (p)->lpVtbl->SetDiscontinuity(p,a)
1806 #define IMediaSample_GetMediaTime(p,a,b) (p)->lpVtbl->GetMediaTime(p,a,b)
1807 #define IMediaSample_SetMediaTime(p,a,b) (p)->lpVtbl->SetMediaTime(p,a,b)
1808 #endif
1809
1810 #endif
1811
1812 #define IMediaSample_METHODS \
1813 /*** IUnknown methods ***/ \
1814 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
1815 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
1816 STDMETHOD_(ULONG,Release)(THIS) PURE; \
1817 /*** IMediaSample methods ***/ \
1818 STDMETHOD_(HRESULT,GetPointer)(THIS_ BYTE** ppBuffer) PURE; \
1819 STDMETHOD_(long,GetSize)(THIS) PURE; \
1820 STDMETHOD_(HRESULT,GetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \
1821 STDMETHOD_(HRESULT,SetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \
1822 STDMETHOD_(HRESULT,IsSyncPoint)(THIS) PURE; \
1823 STDMETHOD_(HRESULT,SetSyncPoint)(THIS_ BOOL bIsSyncPoint) PURE; \
1824 STDMETHOD_(HRESULT,IsPreroll)(THIS) PURE; \
1825 STDMETHOD_(HRESULT,SetPreroll)(THIS_ BOOL bIsPreroll) PURE; \
1826 STDMETHOD_(long,GetActualDataLength)(THIS) PURE; \
1827 STDMETHOD_(HRESULT,SetActualDataLength)(THIS_ long length) PURE; \
1828 STDMETHOD_(HRESULT,GetMediaType)(THIS_ AM_MEDIA_TYPE** ppMediaType) PURE; \
1829 STDMETHOD_(HRESULT,SetMediaType)(THIS_ AM_MEDIA_TYPE* pMediaType) PURE; \
1830 STDMETHOD_(HRESULT,IsDiscontinuity)(THIS) PURE; \
1831 STDMETHOD_(HRESULT,SetDiscontinuity)(THIS_ BOOL bDiscontinuity) PURE; \
1832 STDMETHOD_(HRESULT,GetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE; \
1833 STDMETHOD_(HRESULT,SetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE;
1834
1835 HRESULT CALLBACK IMediaSample_GetPointer_Proxy(
1836 IMediaSample* This,
1837 BYTE** ppBuffer);
1838 void __RPC_STUB IMediaSample_GetPointer_Stub(
1839 struct IRpcStubBuffer* This,
1840 struct IRpcChannelBuffer* pRpcChannelBuffer,
1841 PRPC_MESSAGE pRpcMessage,
1842 DWORD* pdwStubPhase);
1843 long CALLBACK IMediaSample_GetSize_Proxy(
1844 IMediaSample* This);
1845 void __RPC_STUB IMediaSample_GetSize_Stub(
1846 struct IRpcStubBuffer* This,
1847 struct IRpcChannelBuffer* pRpcChannelBuffer,
1848 PRPC_MESSAGE pRpcMessage,
1849 DWORD* pdwStubPhase);
1850 HRESULT CALLBACK IMediaSample_GetTime_Proxy(
1851 IMediaSample* This,
1852 REFERENCE_TIME* pTimeStart,
1853 REFERENCE_TIME* pTimeEnd);
1854 void __RPC_STUB IMediaSample_GetTime_Stub(
1855 struct IRpcStubBuffer* This,
1856 struct IRpcChannelBuffer* pRpcChannelBuffer,
1857 PRPC_MESSAGE pRpcMessage,
1858 DWORD* pdwStubPhase);
1859 HRESULT CALLBACK IMediaSample_SetTime_Proxy(
1860 IMediaSample* This,
1861 REFERENCE_TIME* pTimeStart,
1862 REFERENCE_TIME* pTimeEnd);
1863 void __RPC_STUB IMediaSample_SetTime_Stub(
1864 struct IRpcStubBuffer* This,
1865 struct IRpcChannelBuffer* pRpcChannelBuffer,
1866 PRPC_MESSAGE pRpcMessage,
1867 DWORD* pdwStubPhase);
1868 HRESULT CALLBACK IMediaSample_IsSyncPoint_Proxy(
1869 IMediaSample* This);
1870 void __RPC_STUB IMediaSample_IsSyncPoint_Stub(
1871 struct IRpcStubBuffer* This,
1872 struct IRpcChannelBuffer* pRpcChannelBuffer,
1873 PRPC_MESSAGE pRpcMessage,
1874 DWORD* pdwStubPhase);
1875 HRESULT CALLBACK IMediaSample_SetSyncPoint_Proxy(
1876 IMediaSample* This,
1877 BOOL bIsSyncPoint);
1878 void __RPC_STUB IMediaSample_SetSyncPoint_Stub(
1879 struct IRpcStubBuffer* This,
1880 struct IRpcChannelBuffer* pRpcChannelBuffer,
1881 PRPC_MESSAGE pRpcMessage,
1882 DWORD* pdwStubPhase);
1883 HRESULT CALLBACK IMediaSample_IsPreroll_Proxy(
1884 IMediaSample* This);
1885 void __RPC_STUB IMediaSample_IsPreroll_Stub(
1886 struct IRpcStubBuffer* This,
1887 struct IRpcChannelBuffer* pRpcChannelBuffer,
1888 PRPC_MESSAGE pRpcMessage,
1889 DWORD* pdwStubPhase);
1890 HRESULT CALLBACK IMediaSample_SetPreroll_Proxy(
1891 IMediaSample* This,
1892 BOOL bIsPreroll);
1893 void __RPC_STUB IMediaSample_SetPreroll_Stub(
1894 struct IRpcStubBuffer* This,
1895 struct IRpcChannelBuffer* pRpcChannelBuffer,
1896 PRPC_MESSAGE pRpcMessage,
1897 DWORD* pdwStubPhase);
1898 long CALLBACK IMediaSample_GetActualDataLength_Proxy(
1899 IMediaSample* This);
1900 void __RPC_STUB IMediaSample_GetActualDataLength_Stub(
1901 struct IRpcStubBuffer* This,
1902 struct IRpcChannelBuffer* pRpcChannelBuffer,
1903 PRPC_MESSAGE pRpcMessage,
1904 DWORD* pdwStubPhase);
1905 HRESULT CALLBACK IMediaSample_SetActualDataLength_Proxy(
1906 IMediaSample* This,
1907 long length);
1908 void __RPC_STUB IMediaSample_SetActualDataLength_Stub(
1909 struct IRpcStubBuffer* This,
1910 struct IRpcChannelBuffer* pRpcChannelBuffer,
1911 PRPC_MESSAGE pRpcMessage,
1912 DWORD* pdwStubPhase);
1913 HRESULT CALLBACK IMediaSample_GetMediaType_Proxy(
1914 IMediaSample* This,
1915 AM_MEDIA_TYPE** ppMediaType);
1916 void __RPC_STUB IMediaSample_GetMediaType_Stub(
1917 struct IRpcStubBuffer* This,
1918 struct IRpcChannelBuffer* pRpcChannelBuffer,
1919 PRPC_MESSAGE pRpcMessage,
1920 DWORD* pdwStubPhase);
1921 HRESULT CALLBACK IMediaSample_SetMediaType_Proxy(
1922 IMediaSample* This,
1923 AM_MEDIA_TYPE* pMediaType);
1924 void __RPC_STUB IMediaSample_SetMediaType_Stub(
1925 struct IRpcStubBuffer* This,
1926 struct IRpcChannelBuffer* pRpcChannelBuffer,
1927 PRPC_MESSAGE pRpcMessage,
1928 DWORD* pdwStubPhase);
1929 HRESULT CALLBACK IMediaSample_IsDiscontinuity_Proxy(
1930 IMediaSample* This);
1931 void __RPC_STUB IMediaSample_IsDiscontinuity_Stub(
1932 struct IRpcStubBuffer* This,
1933 struct IRpcChannelBuffer* pRpcChannelBuffer,
1934 PRPC_MESSAGE pRpcMessage,
1935 DWORD* pdwStubPhase);
1936 HRESULT CALLBACK IMediaSample_SetDiscontinuity_Proxy(
1937 IMediaSample* This,
1938 BOOL bDiscontinuity);
1939 void __RPC_STUB IMediaSample_SetDiscontinuity_Stub(
1940 struct IRpcStubBuffer* This,
1941 struct IRpcChannelBuffer* pRpcChannelBuffer,
1942 PRPC_MESSAGE pRpcMessage,
1943 DWORD* pdwStubPhase);
1944 HRESULT CALLBACK IMediaSample_GetMediaTime_Proxy(
1945 IMediaSample* This,
1946 LONGLONG* pTimeStart,
1947 LONGLONG* pTimeEnd);
1948 void __RPC_STUB IMediaSample_GetMediaTime_Stub(
1949 struct IRpcStubBuffer* This,
1950 struct IRpcChannelBuffer* pRpcChannelBuffer,
1951 PRPC_MESSAGE pRpcMessage,
1952 DWORD* pdwStubPhase);
1953 HRESULT CALLBACK IMediaSample_SetMediaTime_Proxy(
1954 IMediaSample* This,
1955 LONGLONG* pTimeStart,
1956 LONGLONG* pTimeEnd);
1957 void __RPC_STUB IMediaSample_SetMediaTime_Stub(
1958 struct IRpcStubBuffer* This,
1959 struct IRpcChannelBuffer* pRpcChannelBuffer,
1960 PRPC_MESSAGE pRpcMessage,
1961 DWORD* pdwStubPhase);
1962
1963 #endif /* __IMediaSample_INTERFACE_DEFINED__ */
1964
1965 typedef IMediaSample *PMEDIASAMPLE;
1966
1967 enum tagAM_SAMPLE_PROPERTY_FLAGS {
1968 AM_SAMPLE_SPLICEPOINT = 0x1,
1969 AM_SAMPLE_PREROLL = 0x2,
1970 AM_SAMPLE_DATADISCONTINUITY = 0x4,
1971 AM_SAMPLE_TYPECHANGED = 0x8,
1972 AM_SAMPLE_TIMEVALID = 0x10,
1973 AM_SAMPLE_TIMEDISCONTINUITY = 0x40,
1974 AM_SAMPLE_FLUSH_ON_PAUSE = 0x80,
1975 AM_SAMPLE_STOPVALID = 0x100,
1976 AM_SAMPLE_ENDOFSTREAM = 0x200,
1977 AM_STREAM_MEDIA = 0,
1978 AM_STREAM_CONTROL = 1
1979 };
1980
1981 typedef struct tagAM_SAMPLE2_PROPERTIES {
1982 DWORD cbData;
1983 DWORD dwTypeSpecificFlags;
1984 DWORD dwSampleFlags;
1985 LONG lActual;
1986 REFERENCE_TIME tStart;
1987 REFERENCE_TIME tStop;
1988 DWORD dwStreamId;
1989 AM_MEDIA_TYPE *pMediaType;
1990 BYTE *pbBuffer;
1991 LONG cbBuffer;
1992 } AM_SAMPLE2_PROPERTIES;
1993
1994 #ifndef __IMediaSample2_FWD_DEFINED__
1995 #define __IMediaSample2_FWD_DEFINED__
1996 typedef struct IMediaSample2 IMediaSample2;
1997 #endif
1998
1999 /*****************************************************************************
2000 * IMediaSample2 interface
2001 */
2002 #ifndef __IMediaSample2_INTERFACE_DEFINED__
2003 #define __IMediaSample2_INTERFACE_DEFINED__
2004
2005 DEFINE_GUID(IID_IMediaSample2, 0x36b73884, 0xc2c8, 0x11cf, 0x8b,0x46, 0x00,0x80,0x5f,0x6c,0xef,0x60);
2006 #if defined(__cplusplus) && !defined(CINTERFACE)
2007 struct IMediaSample2 : public IMediaSample
2008 {
2009 virtual HRESULT STDMETHODCALLTYPE GetProperties(
2010 DWORD cbProperties,
2011 BYTE* pbProperties) = 0;
2012
2013 virtual HRESULT STDMETHODCALLTYPE SetProperties(
2014 DWORD cbProperties,
2015 const BYTE* pbProperties) = 0;
2016
2017 };
2018 #else
2019 typedef struct IMediaSample2Vtbl IMediaSample2Vtbl;
2020 struct IMediaSample2 {
2021 const IMediaSample2Vtbl* lpVtbl;
2022 };
2023 struct IMediaSample2Vtbl {
2024 BEGIN_INTERFACE
2025
2026 /*** IUnknown methods ***/
2027 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
2028 IMediaSample2* This,
2029 REFIID riid,
2030 void** ppvObject);
2031
2032 ULONG (STDMETHODCALLTYPE *AddRef)(
2033 IMediaSample2* This);
2034
2035 ULONG (STDMETHODCALLTYPE *Release)(
2036 IMediaSample2* This);
2037
2038 /*** IMediaSample methods ***/
2039 HRESULT (STDMETHODCALLTYPE *GetPointer)(
2040 IMediaSample2* This,
2041 BYTE** ppBuffer);
2042
2043 long (STDMETHODCALLTYPE *GetSize)(
2044 IMediaSample2* This);
2045
2046 HRESULT (STDMETHODCALLTYPE *GetTime)(
2047 IMediaSample2* This,
2048 REFERENCE_TIME* pTimeStart,
2049 REFERENCE_TIME* pTimeEnd);
2050
2051 HRESULT (STDMETHODCALLTYPE *SetTime)(
2052 IMediaSample2* This,
2053 REFERENCE_TIME* pTimeStart,
2054 REFERENCE_TIME* pTimeEnd);
2055
2056 HRESULT (STDMETHODCALLTYPE *IsSyncPoint)(
2057 IMediaSample2* This);
2058
2059 HRESULT (STDMETHODCALLTYPE *SetSyncPoint)(
2060 IMediaSample2* This,
2061 BOOL bIsSyncPoint);
2062
2063 HRESULT (STDMETHODCALLTYPE *IsPreroll)(
2064 IMediaSample2* This);
2065
2066 HRESULT (STDMETHODCALLTYPE *SetPreroll)(
2067 IMediaSample2* This,
2068 BOOL bIsPreroll);
2069
2070 long (STDMETHODCALLTYPE *GetActualDataLength)(
2071 IMediaSample2* This);
2072
2073 HRESULT (STDMETHODCALLTYPE *SetActualDataLength)(
2074 IMediaSample2* This,
2075 long length);
2076
2077 HRESULT (STDMETHODCALLTYPE *GetMediaType)(
2078 IMediaSample2* This,
2079 AM_MEDIA_TYPE** ppMediaType);
2080
2081 HRESULT (STDMETHODCALLTYPE *SetMediaType)(
2082 IMediaSample2* This,
2083 AM_MEDIA_TYPE* pMediaType);
2084
2085 HRESULT (STDMETHODCALLTYPE *IsDiscontinuity)(
2086 IMediaSample2* This);
2087
2088 HRESULT (STDMETHODCALLTYPE *SetDiscontinuity)(
2089 IMediaSample2* This,
2090 BOOL bDiscontinuity);
2091
2092 HRESULT (STDMETHODCALLTYPE *GetMediaTime)(
2093 IMediaSample2* This,
2094 LONGLONG* pTimeStart,
2095 LONGLONG* pTimeEnd);
2096
2097 HRESULT (STDMETHODCALLTYPE *SetMediaTime)(
2098 IMediaSample2* This,
2099 LONGLONG* pTimeStart,
2100 LONGLONG* pTimeEnd);
2101
2102 /*** IMediaSample2 methods ***/
2103 HRESULT (STDMETHODCALLTYPE *GetProperties)(
2104 IMediaSample2* This,
2105 DWORD cbProperties,
2106 BYTE* pbProperties);
2107
2108 HRESULT (STDMETHODCALLTYPE *SetProperties)(
2109 IMediaSample2* This,
2110 DWORD cbProperties,
2111 const BYTE* pbProperties);
2112
2113 END_INTERFACE
2114 };
2115
2116 #ifdef COBJMACROS
2117 /*** IUnknown methods ***/
2118 #define IMediaSample2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2119 #define IMediaSample2_AddRef(p) (p)->lpVtbl->AddRef(p)
2120 #define IMediaSample2_Release(p) (p)->lpVtbl->Release(p)
2121 /*** IMediaSample methods ***/
2122 #define IMediaSample2_GetPointer(p,a) (p)->lpVtbl->GetPointer(p,a)
2123 #define IMediaSample2_GetSize(p) (p)->lpVtbl->GetSize(p)
2124 #define IMediaSample2_GetTime(p,a,b) (p)->lpVtbl->GetTime(p,a,b)
2125 #define IMediaSample2_SetTime(p,a,b) (p)->lpVtbl->SetTime(p,a,b)
2126 #define IMediaSample2_IsSyncPoint(p) (p)->lpVtbl->IsSyncPoint(p)
2127 #define IMediaSample2_SetSyncPoint(p,a) (p)->lpVtbl->SetSyncPoint(p,a)
2128 #define IMediaSample2_IsPreroll(p) (p)->lpVtbl->IsPreroll(p)
2129 #define IMediaSample2_SetPreroll(p,a) (p)->lpVtbl->SetPreroll(p,a)
2130 #define IMediaSample2_GetActualDataLength(p) (p)->lpVtbl->GetActualDataLength(p)
2131 #define IMediaSample2_SetActualDataLength(p,a) (p)->lpVtbl->SetActualDataLength(p,a)
2132 #define IMediaSample2_GetMediaType(p,a) (p)->lpVtbl->GetMediaType(p,a)
2133 #define IMediaSample2_SetMediaType(p,a) (p)->lpVtbl->SetMediaType(p,a)
2134 #define IMediaSample2_IsDiscontinuity(p) (p)->lpVtbl->IsDiscontinuity(p)
2135 #define IMediaSample2_SetDiscontinuity(p,a) (p)->lpVtbl->SetDiscontinuity(p,a)
2136 #define IMediaSample2_GetMediaTime(p,a,b) (p)->lpVtbl->GetMediaTime(p,a,b)
2137 #define IMediaSample2_SetMediaTime(p,a,b) (p)->lpVtbl->SetMediaTime(p,a,b)
2138 /*** IMediaSample2 methods ***/
2139 #define IMediaSample2_GetProperties(p,a,b) (p)->lpVtbl->GetProperties(p,a,b)
2140 #define IMediaSample2_SetProperties(p,a,b) (p)->lpVtbl->SetProperties(p,a,b)
2141 #endif
2142
2143 #endif
2144
2145 #define IMediaSample2_METHODS \
2146 /*** IUnknown methods ***/ \
2147 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
2148 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
2149 STDMETHOD_(ULONG,Release)(THIS) PURE; \
2150 /*** IMediaSample methods ***/ \
2151 STDMETHOD_(HRESULT,GetPointer)(THIS_ BYTE** ppBuffer) PURE; \
2152 STDMETHOD_(long,GetSize)(THIS) PURE; \
2153 STDMETHOD_(HRESULT,GetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \
2154 STDMETHOD_(HRESULT,SetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \
2155 STDMETHOD_(HRESULT,IsSyncPoint)(THIS) PURE; \
2156 STDMETHOD_(HRESULT,SetSyncPoint)(THIS_ BOOL bIsSyncPoint) PURE; \
2157 STDMETHOD_(HRESULT,IsPreroll)(THIS) PURE; \
2158 STDMETHOD_(HRESULT,SetPreroll)(THIS_ BOOL bIsPreroll) PURE; \
2159 STDMETHOD_(long,GetActualDataLength)(THIS) PURE; \
2160 STDMETHOD_(HRESULT,SetActualDataLength)(THIS_ long length) PURE; \
2161 STDMETHOD_(HRESULT,GetMediaType)(THIS_ AM_MEDIA_TYPE** ppMediaType) PURE; \
2162 STDMETHOD_(HRESULT,SetMediaType)(THIS_ AM_MEDIA_TYPE* pMediaType) PURE; \
2163 STDMETHOD_(HRESULT,IsDiscontinuity)(THIS) PURE; \
2164 STDMETHOD_(HRESULT,SetDiscontinuity)(THIS_ BOOL bDiscontinuity) PURE; \
2165 STDMETHOD_(HRESULT,GetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE; \
2166 STDMETHOD_(HRESULT,SetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE; \
2167 /*** IMediaSample2 methods ***/ \
2168 STDMETHOD_(HRESULT,GetProperties)(THIS_ DWORD cbProperties, BYTE* pbProperties) PURE; \
2169 STDMETHOD_(HRESULT,SetProperties)(THIS_ DWORD cbProperties, const BYTE* pbProperties) PURE;
2170
2171 HRESULT CALLBACK IMediaSample2_GetProperties_Proxy(
2172 IMediaSample2* This,
2173 DWORD cbProperties,
2174 BYTE* pbProperties);
2175 void __RPC_STUB IMediaSample2_GetProperties_Stub(
2176 struct IRpcStubBuffer* This,
2177 struct IRpcChannelBuffer* pRpcChannelBuffer,
2178 PRPC_MESSAGE pRpcMessage,
2179 DWORD* pdwStubPhase);
2180 HRESULT CALLBACK IMediaSample2_SetProperties_Proxy(
2181 IMediaSample2* This,
2182 DWORD cbProperties,
2183 const BYTE* pbProperties);
2184 void __RPC_STUB IMediaSample2_SetProperties_Stub(
2185 struct IRpcStubBuffer* This,
2186 struct IRpcChannelBuffer* pRpcChannelBuffer,
2187 PRPC_MESSAGE pRpcMessage,
2188 DWORD* pdwStubPhase);
2189
2190 #endif /* __IMediaSample2_INTERFACE_DEFINED__ */
2191
2192 typedef IMediaSample2 *PMEDIASAMPLE2;
2193
2194 #define AM_GBF_PREVFRAMESKIPPED 1
2195 #define AM_GBF_NOTASYNCPOINT 2
2196 #define AM_GBF_NOWAIT 4
2197 /*****************************************************************************
2198 * IMemAllocator interface
2199 */
2200 #ifndef __IMemAllocator_INTERFACE_DEFINED__
2201 #define __IMemAllocator_INTERFACE_DEFINED__
2202
2203 DEFINE_GUID(IID_IMemAllocator, 0x56a8689c, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
2204 #if defined(__cplusplus) && !defined(CINTERFACE)
2205 struct IMemAllocator : public IUnknown
2206 {
2207 virtual HRESULT STDMETHODCALLTYPE SetProperties(
2208 ALLOCATOR_PROPERTIES* pRequest,
2209 ALLOCATOR_PROPERTIES* pActual) = 0;
2210
2211 virtual HRESULT STDMETHODCALLTYPE GetProperties(
2212 ALLOCATOR_PROPERTIES* pProps) = 0;
2213
2214 virtual HRESULT STDMETHODCALLTYPE Commit(
2215 ) = 0;
2216
2217 virtual HRESULT STDMETHODCALLTYPE Decommit(
2218 ) = 0;
2219
2220 virtual HRESULT STDMETHODCALLTYPE GetBuffer(
2221 IMediaSample** ppBuffer,
2222 REFERENCE_TIME* pStartTime,
2223 REFERENCE_TIME* pEndTime,
2224 DWORD dwFlags) = 0;
2225
2226 virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer(
2227 IMediaSample* pBuffer) = 0;
2228
2229 };
2230 #else
2231 typedef struct IMemAllocatorVtbl IMemAllocatorVtbl;
2232 struct IMemAllocator {
2233 const IMemAllocatorVtbl* lpVtbl;
2234 };
2235 struct IMemAllocatorVtbl {
2236 BEGIN_INTERFACE
2237
2238 /*** IUnknown methods ***/
2239 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
2240 IMemAllocator* This,
2241 REFIID riid,
2242 void** ppvObject);
2243
2244 ULONG (STDMETHODCALLTYPE *AddRef)(
2245 IMemAllocator* This);
2246
2247 ULONG (STDMETHODCALLTYPE *Release)(
2248 IMemAllocator* This);
2249
2250 /*** IMemAllocator methods ***/
2251 HRESULT (STDMETHODCALLTYPE *SetProperties)(
2252 IMemAllocator* This,
2253 ALLOCATOR_PROPERTIES* pRequest,
2254 ALLOCATOR_PROPERTIES* pActual);
2255
2256 HRESULT (STDMETHODCALLTYPE *GetProperties)(
2257 IMemAllocator* This,
2258 ALLOCATOR_PROPERTIES* pProps);
2259
2260 HRESULT (STDMETHODCALLTYPE *Commit)(
2261 IMemAllocator* This);
2262
2263 HRESULT (STDMETHODCALLTYPE *Decommit)(
2264 IMemAllocator* This);
2265
2266 HRESULT (STDMETHODCALLTYPE *GetBuffer)(
2267 IMemAllocator* This,
2268 IMediaSample** ppBuffer,
2269 REFERENCE_TIME* pStartTime,
2270 REFERENCE_TIME* pEndTime,
2271 DWORD dwFlags);
2272
2273 HRESULT (STDMETHODCALLTYPE *ReleaseBuffer)(
2274 IMemAllocator* This,
2275 IMediaSample* pBuffer);
2276
2277 END_INTERFACE
2278 };
2279
2280 #ifdef COBJMACROS
2281 /*** IUnknown methods ***/
2282 #define IMemAllocator_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2283 #define IMemAllocator_AddRef(p) (p)->lpVtbl->AddRef(p)
2284 #define IMemAllocator_Release(p) (p)->lpVtbl->Release(p)
2285 /*** IMemAllocator methods ***/
2286 #define IMemAllocator_SetProperties(p,a,b) (p)->lpVtbl->SetProperties(p,a,b)
2287 #define IMemAllocator_GetProperties(p,a) (p)->lpVtbl->GetProperties(p,a)
2288 #define IMemAllocator_Commit(p) (p)->lpVtbl->Commit(p)
2289 #define IMemAllocator_Decommit(p) (p)->lpVtbl->Decommit(p)
2290 #define IMemAllocator_GetBuffer(p,a,b,c,d) (p)->lpVtbl->GetBuffer(p,a,b,c,d)
2291 #define IMemAllocator_ReleaseBuffer(p,a) (p)->lpVtbl->ReleaseBuffer(p,a)
2292 #endif
2293
2294 #endif
2295
2296 #define IMemAllocator_METHODS \
2297 /*** IUnknown methods ***/ \
2298 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
2299 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
2300 STDMETHOD_(ULONG,Release)(THIS) PURE; \
2301 /*** IMemAllocator methods ***/ \
2302 STDMETHOD_(HRESULT,SetProperties)(THIS_ ALLOCATOR_PROPERTIES* pRequest, ALLOCATOR_PROPERTIES* pActual) PURE; \
2303 STDMETHOD_(HRESULT,GetProperties)(THIS_ ALLOCATOR_PROPERTIES* pProps) PURE; \
2304 STDMETHOD_(HRESULT,Commit)(THIS) PURE; \
2305 STDMETHOD_(HRESULT,Decommit)(THIS) PURE; \
2306 STDMETHOD_(HRESULT,GetBuffer)(THIS_ IMediaSample** ppBuffer, REFERENCE_TIME* pStartTime, REFERENCE_TIME* pEndTime, DWORD dwFlags) PURE; \
2307 STDMETHOD_(HRESULT,ReleaseBuffer)(THIS_ IMediaSample* pBuffer) PURE;
2308
2309 HRESULT CALLBACK IMemAllocator_SetProperties_Proxy(
2310 IMemAllocator* This,
2311 ALLOCATOR_PROPERTIES* pRequest,
2312 ALLOCATOR_PROPERTIES* pActual);
2313 void __RPC_STUB IMemAllocator_SetProperties_Stub(
2314 struct IRpcStubBuffer* This,
2315 struct IRpcChannelBuffer* pRpcChannelBuffer,
2316 PRPC_MESSAGE pRpcMessage,
2317 DWORD* pdwStubPhase);
2318 HRESULT CALLBACK IMemAllocator_GetProperties_Proxy(
2319 IMemAllocator* This,
2320 ALLOCATOR_PROPERTIES* pProps);
2321 void __RPC_STUB IMemAllocator_GetProperties_Stub(
2322 struct IRpcStubBuffer* This,
2323 struct IRpcChannelBuffer* pRpcChannelBuffer,
2324 PRPC_MESSAGE pRpcMessage,
2325 DWORD* pdwStubPhase);
2326 HRESULT CALLBACK IMemAllocator_Commit_Proxy(
2327 IMemAllocator* This);
2328 void __RPC_STUB IMemAllocator_Commit_Stub(
2329 struct IRpcStubBuffer* This,
2330 struct IRpcChannelBuffer* pRpcChannelBuffer,
2331 PRPC_MESSAGE pRpcMessage,
2332 DWORD* pdwStubPhase);
2333 HRESULT CALLBACK IMemAllocator_Decommit_Proxy(
2334 IMemAllocator* This);
2335 void __RPC_STUB IMemAllocator_Decommit_Stub(
2336 struct IRpcStubBuffer* This,
2337 struct IRpcChannelBuffer* pRpcChannelBuffer,
2338 PRPC_MESSAGE pRpcMessage,
2339 DWORD* pdwStubPhase);
2340 HRESULT CALLBACK IMemAllocator_GetBuffer_Proxy(
2341 IMemAllocator* This,
2342 IMediaSample** ppBuffer,
2343 REFERENCE_TIME* pStartTime,
2344 REFERENCE_TIME* pEndTime,
2345 DWORD dwFlags);
2346 void __RPC_STUB IMemAllocator_GetBuffer_Stub(
2347 struct IRpcStubBuffer* This,
2348 struct IRpcChannelBuffer* pRpcChannelBuffer,
2349 PRPC_MESSAGE pRpcMessage,
2350 DWORD* pdwStubPhase);
2351 HRESULT CALLBACK IMemAllocator_ReleaseBuffer_Proxy(
2352 IMemAllocator* This,
2353 IMediaSample* pBuffer);
2354 void __RPC_STUB IMemAllocator_ReleaseBuffer_Stub(
2355 struct IRpcStubBuffer* This,
2356 struct IRpcChannelBuffer* pRpcChannelBuffer,
2357 PRPC_MESSAGE pRpcMessage,
2358 DWORD* pdwStubPhase);
2359
2360 #endif /* __IMemAllocator_INTERFACE_DEFINED__ */
2361
2362 typedef IMemAllocator *PMEMALLOCATOR;
2363
2364 /*****************************************************************************
2365 * IMemAllocatorCallbackTemp interface
2366 */
2367 #ifndef __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__
2368 #define __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__
2369
2370 DEFINE_GUID(IID_IMemAllocatorCallbackTemp, 0x379a0cf0, 0xc1de, 0x11d2, 0xab,0xf5, 0x00,0xa0,0xc9,0x05,0xf3,0x75);
2371 #if defined(__cplusplus) && !defined(CINTERFACE)
2372 struct IMemAllocatorCallbackTemp : public IMemAllocator
2373 {
2374 virtual HRESULT STDMETHODCALLTYPE SetNotify(
2375 IMemAllocatorNotifyCallbackTemp* pNotify) = 0;
2376
2377 virtual HRESULT STDMETHODCALLTYPE GetFreeCount(
2378 LONG* plBuffersFree) = 0;
2379
2380 };
2381 #else
2382 typedef struct IMemAllocatorCallbackTempVtbl IMemAllocatorCallbackTempVtbl;
2383 struct IMemAllocatorCallbackTemp {
2384 const IMemAllocatorCallbackTempVtbl* lpVtbl;
2385 };
2386 struct IMemAllocatorCallbackTempVtbl {
2387 BEGIN_INTERFACE
2388
2389 /*** IUnknown methods ***/
2390 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
2391 IMemAllocatorCallbackTemp* This,
2392 REFIID riid,
2393 void** ppvObject);
2394
2395 ULONG (STDMETHODCALLTYPE *AddRef)(
2396 IMemAllocatorCallbackTemp* This);
2397
2398 ULONG (STDMETHODCALLTYPE *Release)(
2399 IMemAllocatorCallbackTemp* This);
2400
2401 /*** IMemAllocator methods ***/
2402 HRESULT (STDMETHODCALLTYPE *SetProperties)(
2403 IMemAllocatorCallbackTemp* This,
2404 ALLOCATOR_PROPERTIES* pRequest,
2405 ALLOCATOR_PROPERTIES* pActual);
2406
2407 HRESULT (STDMETHODCALLTYPE *GetProperties)(
2408 IMemAllocatorCallbackTemp* This,
2409 ALLOCATOR_PROPERTIES* pProps);
2410
2411 HRESULT (STDMETHODCALLTYPE *Commit)(
2412 IMemAllocatorCallbackTemp* This);
2413
2414 HRESULT (STDMETHODCALLTYPE *Decommit)(
2415 IMemAllocatorCallbackTemp* This);
2416
2417 HRESULT (STDMETHODCALLTYPE *GetBuffer)(
2418 IMemAllocatorCallbackTemp* This,
2419 IMediaSample** ppBuffer,
2420 REFERENCE_TIME* pStartTime,
2421 REFERENCE_TIME* pEndTime,
2422 DWORD dwFlags);
2423
2424 HRESULT (STDMETHODCALLTYPE *ReleaseBuffer)(
2425 IMemAllocatorCallbackTemp* This,
2426 IMediaSample* pBuffer);
2427
2428 /*** IMemAllocatorCallbackTemp methods ***/
2429 HRESULT (STDMETHODCALLTYPE *SetNotify)(
2430 IMemAllocatorCallbackTemp* This,
2431 IMemAllocatorNotifyCallbackTemp* pNotify);
2432
2433 HRESULT (STDMETHODCALLTYPE *GetFreeCount)(
2434 IMemAllocatorCallbackTemp* This,
2435 LONG* plBuffersFree);
2436
2437 END_INTERFACE
2438 };
2439
2440 #ifdef COBJMACROS
2441 /*** IUnknown methods ***/
2442 #define IMemAllocatorCallbackTemp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2443 #define IMemAllocatorCallbackTemp_AddRef(p) (p)->lpVtbl->AddRef(p)
2444 #define IMemAllocatorCallbackTemp_Release(p) (p)->lpVtbl->Release(p)
2445 /*** IMemAllocator methods ***/
2446 #define IMemAllocatorCallbackTemp_SetProperties(p,a,b) (p)->lpVtbl->SetProperties(p,a,b)
2447 #define IMemAllocatorCallbackTemp_GetProperties(p,a) (p)->lpVtbl->GetProperties(p,a)
2448 #define IMemAllocatorCallbackTemp_Commit(p) (p)->lpVtbl->Commit(p)
2449 #define IMemAllocatorCallbackTemp_Decommit(p) (p)->lpVtbl->Decommit(p)
2450 #define IMemAllocatorCallbackTemp_GetBuffer(p,a,b,c,d) (p)->lpVtbl->GetBuffer(p,a,b,c,d)
2451 #define IMemAllocatorCallbackTemp_ReleaseBuffer(p,a) (p)->lpVtbl->ReleaseBuffer(p,a)
2452 /*** IMemAllocatorCallbackTemp methods ***/
2453 #define IMemAllocatorCallbackTemp_SetNotify(p,a) (p)->lpVtbl->SetNotify(p,a)
2454 #define IMemAllocatorCallbackTemp_GetFreeCount(p,a) (p)->lpVtbl->GetFreeCount(p,a)
2455 #endif
2456
2457 #endif
2458
2459 #define IMemAllocatorCallbackTemp_METHODS \
2460 /*** IUnknown methods ***/ \
2461 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
2462 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
2463 STDMETHOD_(ULONG,Release)(THIS) PURE; \
2464 /*** IMemAllocator methods ***/ \
2465 STDMETHOD_(HRESULT,SetProperties)(THIS_ ALLOCATOR_PROPERTIES* pRequest, ALLOCATOR_PROPERTIES* pActual) PURE; \
2466 STDMETHOD_(HRESULT,GetProperties)(THIS_ ALLOCATOR_PROPERTIES* pProps) PURE; \
2467 STDMETHOD_(HRESULT,Commit)(THIS) PURE; \
2468 STDMETHOD_(HRESULT,Decommit)(THIS) PURE; \
2469 STDMETHOD_(HRESULT,GetBuffer)(THIS_ IMediaSample** ppBuffer, REFERENCE_TIME* pStartTime, REFERENCE_TIME* pEndTime, DWORD dwFlags) PURE; \
2470 STDMETHOD_(HRESULT,ReleaseBuffer)(THIS_ IMediaSample* pBuffer) PURE; \
2471 /*** IMemAllocatorCallbackTemp methods ***/ \
2472 STDMETHOD_(HRESULT,SetNotify)(THIS_ IMemAllocatorNotifyCallbackTemp* pNotify) PURE; \
2473 STDMETHOD_(HRESULT,GetFreeCount)(THIS_ LONG* plBuffersFree) PURE;
2474
2475 HRESULT CALLBACK IMemAllocatorCallbackTemp_SetNotify_Proxy(
2476 IMemAllocatorCallbackTemp* This,
2477 IMemAllocatorNotifyCallbackTemp* pNotify);
2478 void __RPC_STUB IMemAllocatorCallbackTemp_SetNotify_Stub(
2479 struct IRpcStubBuffer* This,
2480 struct IRpcChannelBuffer* pRpcChannelBuffer,
2481 PRPC_MESSAGE pRpcMessage,
2482 DWORD* pdwStubPhase);
2483 HRESULT CALLBACK IMemAllocatorCallbackTemp_GetFreeCount_Proxy(
2484 IMemAllocatorCallbackTemp* This,
2485 LONG* plBuffersFree);
2486 void __RPC_STUB IMemAllocatorCallbackTemp_GetFreeCount_Stub(
2487 struct IRpcStubBuffer* This,
2488 struct IRpcChannelBuffer* pRpcChannelBuffer,
2489 PRPC_MESSAGE pRpcMessage,
2490 DWORD* pdwStubPhase);
2491
2492 #endif /* __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__ */
2493
2494 /*****************************************************************************
2495 * IMemAllocatorNotifyCallbackTemp interface
2496 */
2497 #ifndef __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__
2498 #define __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__
2499
2500 DEFINE_GUID(IID_IMemAllocatorNotifyCallbackTemp, 0x92980b30, 0xc1de, 0x11d2, 0xab,0xf5, 0x00,0xa0,0xc9,0x05,0xf3,0x75);
2501 #if defined(__cplusplus) && !defined(CINTERFACE)
2502 struct IMemAllocatorNotifyCallbackTemp : public IUnknown
2503 {
2504 virtual HRESULT STDMETHODCALLTYPE NotifyRelease(
2505 ) = 0;
2506
2507 };
2508 #else
2509 typedef struct IMemAllocatorNotifyCallbackTempVtbl IMemAllocatorNotifyCallbackTempVtbl;
2510 struct IMemAllocatorNotifyCallbackTemp {
2511 const IMemAllocatorNotifyCallbackTempVtbl* lpVtbl;
2512 };
2513 struct IMemAllocatorNotifyCallbackTempVtbl {
2514 BEGIN_INTERFACE
2515
2516 /*** IUnknown methods ***/
2517 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
2518 IMemAllocatorNotifyCallbackTemp* This,
2519 REFIID riid,
2520 void** ppvObject);
2521
2522 ULONG (STDMETHODCALLTYPE *AddRef)(
2523 IMemAllocatorNotifyCallbackTemp* This);
2524
2525 ULONG (STDMETHODCALLTYPE *Release)(
2526 IMemAllocatorNotifyCallbackTemp* This);
2527
2528 /*** IMemAllocatorNotifyCallbackTemp methods ***/
2529 HRESULT (STDMETHODCALLTYPE *NotifyRelease)(
2530 IMemAllocatorNotifyCallbackTemp* This);
2531
2532 END_INTERFACE
2533 };
2534
2535 #ifdef COBJMACROS
2536 /*** IUnknown methods ***/
2537 #define IMemAllocatorNotifyCallbackTemp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2538 #define IMemAllocatorNotifyCallbackTemp_AddRef(p) (p)->lpVtbl->AddRef(p)
2539 #define IMemAllocatorNotifyCallbackTemp_Release(p) (p)->lpVtbl->Release(p)
2540 /*** IMemAllocatorNotifyCallbackTemp methods ***/
2541 #define IMemAllocatorNotifyCallbackTemp_NotifyRelease(p) (p)->lpVtbl->NotifyRelease(p)
2542 #endif
2543
2544 #endif
2545
2546 #define IMemAllocatorNotifyCallbackTemp_METHODS \
2547 /*** IUnknown methods ***/ \
2548 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
2549 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
2550 STDMETHOD_(ULONG,Release)(THIS) PURE; \
2551 /*** IMemAllocatorNotifyCallbackTemp methods ***/ \
2552 STDMETHOD_(HRESULT,NotifyRelease)(THIS) PURE;
2553
2554 HRESULT CALLBACK IMemAllocatorNotifyCallbackTemp_NotifyRelease_Proxy(
2555 IMemAllocatorNotifyCallbackTemp* This);
2556 void __RPC_STUB IMemAllocatorNotifyCallbackTemp_NotifyRelease_Stub(
2557 struct IRpcStubBuffer* This,
2558 struct IRpcChannelBuffer* pRpcChannelBuffer,
2559 PRPC_MESSAGE pRpcMessage,
2560 DWORD* pdwStubPhase);
2561
2562 #endif /* __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__ */
2563
2564 /*****************************************************************************
2565 * IMemInputPin interface
2566 */
2567 #ifndef __IMemInputPin_INTERFACE_DEFINED__
2568 #define __IMemInputPin_INTERFACE_DEFINED__
2569
2570 DEFINE_GUID(IID_IMemInputPin, 0x56a8689d, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
2571 #if defined(__cplusplus) && !defined(CINTERFACE)
2572 struct IMemInputPin : public IUnknown
2573 {
2574 virtual HRESULT STDMETHODCALLTYPE GetAllocator(
2575 IMemAllocator** ppAllocator) = 0;
2576
2577 virtual HRESULT STDMETHODCALLTYPE NotifyAllocator(
2578 IMemAllocator* pAllocator,
2579 BOOL bReadOnly) = 0;
2580
2581 virtual HRESULT STDMETHODCALLTYPE GetAllocatorRequirements(
2582 ALLOCATOR_PROPERTIES* pProps) = 0;
2583
2584 virtual HRESULT STDMETHODCALLTYPE Receive(
2585 IMediaSample* pSample) = 0;
2586
2587 virtual HRESULT STDMETHODCALLTYPE ReceiveMultiple(
2588 IMediaSample** pSamples,
2589 long nSamples,
2590 long* nSamplesProcessed) = 0;
2591
2592 virtual HRESULT STDMETHODCALLTYPE ReceiveCanBlock(
2593 ) = 0;
2594
2595 };
2596 #else
2597 typedef struct IMemInputPinVtbl IMemInputPinVtbl;
2598 struct IMemInputPin {
2599 const IMemInputPinVtbl* lpVtbl;
2600 };
2601 struct IMemInputPinVtbl {
2602 BEGIN_INTERFACE
2603
2604 /*** IUnknown methods ***/
2605 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
2606 IMemInputPin* This,
2607 REFIID riid,
2608 void** ppvObject);
2609
2610 ULONG (STDMETHODCALLTYPE *AddRef)(
2611 IMemInputPin* This);
2612
2613 ULONG (STDMETHODCALLTYPE *Release)(
2614 IMemInputPin* This);
2615
2616 /*** IMemInputPin methods ***/
2617 HRESULT (STDMETHODCALLTYPE *GetAllocator)(
2618 IMemInputPin* This,
2619 IMemAllocator** ppAllocator);
2620
2621 HRESULT (STDMETHODCALLTYPE *NotifyAllocator)(
2622 IMemInputPin* This,
2623 IMemAllocator* pAllocator,
2624 BOOL bReadOnly);
2625
2626 HRESULT (STDMETHODCALLTYPE *GetAllocatorRequirements)(
2627 IMemInputPin* This,
2628 ALLOCATOR_PROPERTIES* pProps);
2629
2630 HRESULT (STDMETHODCALLTYPE *Receive)(
2631 IMemInputPin* This,
2632 IMediaSample* pSample);
2633
2634 HRESULT (STDMETHODCALLTYPE *ReceiveMultiple)(
2635 IMemInputPin* This,
2636 IMediaSample** pSamples,
2637 long nSamples,
2638 long* nSamplesProcessed);
2639
2640 HRESULT (STDMETHODCALLTYPE *ReceiveCanBlock)(
2641 IMemInputPin* This);
2642
2643 END_INTERFACE
2644 };
2645
2646 #ifdef COBJMACROS
2647 /*** IUnknown methods ***/
2648 #define IMemInputPin_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2649 #define IMemInputPin_AddRef(p) (p)->lpVtbl->AddRef(p)
2650 #define IMemInputPin_Release(p) (p)->lpVtbl->Release(p)
2651 /*** IMemInputPin methods ***/
2652 #define IMemInputPin_GetAllocator(p,a) (p)->lpVtbl->GetAllocator(p,a)
2653 #define IMemInputPin_NotifyAllocator(p,a,b) (p)->lpVtbl->NotifyAllocator(p,a,b)
2654 #define IMemInputPin_GetAllocatorRequirements(p,a) (p)->lpVtbl->GetAllocatorRequirements(p,a)
2655 #define IMemInputPin_Receive(p,a) (p)->lpVtbl->Receive(p,a)
2656 #define IMemInputPin_ReceiveMultiple(p,a,b,c) (p)->lpVtbl->ReceiveMultiple(p,a,b,c)
2657 #define IMemInputPin_ReceiveCanBlock(p) (p)->lpVtbl->ReceiveCanBlock(p)
2658 #endif
2659
2660 #endif
2661
2662 #define IMemInputPin_METHODS \
2663 /*** IUnknown methods ***/ \
2664 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
2665 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
2666 STDMETHOD_(ULONG,Release)(THIS) PURE; \
2667 /*** IMemInputPin methods ***/ \
2668 STDMETHOD_(HRESULT,GetAllocator)(THIS_ IMemAllocator** ppAllocator) PURE; \
2669 STDMETHOD_(HRESULT,NotifyAllocator)(THIS_ IMemAllocator* pAllocator, BOOL bReadOnly) PURE; \
2670 STDMETHOD_(HRESULT,GetAllocatorRequirements)(THIS_ ALLOCATOR_PROPERTIES* pProps) PURE; \
2671 STDMETHOD_(HRESULT,Receive)(THIS_ IMediaSample* pSample) PURE; \
2672 STDMETHOD_(HRESULT,ReceiveMultiple)(THIS_ IMediaSample** pSamples, long nSamples, long* nSamplesProcessed) PURE; \
2673 STDMETHOD_(HRESULT,ReceiveCanBlock)(THIS) PURE;
2674
2675 HRESULT CALLBACK IMemInputPin_GetAllocator_Proxy(
2676 IMemInputPin* This,
2677 IMemAllocator** ppAllocator);
2678 void __RPC_STUB IMemInputPin_GetAllocator_Stub(
2679 struct IRpcStubBuffer* This,
2680 struct IRpcChannelBuffer* pRpcChannelBuffer,
2681 PRPC_MESSAGE pRpcMessage,
2682 DWORD* pdwStubPhase);
2683 HRESULT CALLBACK IMemInputPin_NotifyAllocator_Proxy(
2684 IMemInputPin* This,
2685 IMemAllocator* pAllocator,
2686 BOOL bReadOnly);
2687 void __RPC_STUB IMemInputPin_NotifyAllocator_Stub(
2688 struct IRpcStubBuffer* This,
2689 struct IRpcChannelBuffer* pRpcChannelBuffer,
2690 PRPC_MESSAGE pRpcMessage,
2691 DWORD* pdwStubPhase);
2692 HRESULT CALLBACK IMemInputPin_GetAllocatorRequirements_Proxy(
2693 IMemInputPin* This,
2694 ALLOCATOR_PROPERTIES* pProps);
2695 void __RPC_STUB IMemInputPin_GetAllocatorRequirements_Stub(
2696 struct IRpcStubBuffer* This,
2697 struct IRpcChannelBuffer* pRpcChannelBuffer,
2698 PRPC_MESSAGE pRpcMessage,
2699 DWORD* pdwStubPhase);
2700 HRESULT CALLBACK IMemInputPin_Receive_Proxy(
2701 IMemInputPin* This,
2702 IMediaSample* pSample);
2703 void __RPC_STUB IMemInputPin_Receive_Stub(
2704 struct IRpcStubBuffer* This,
2705 struct IRpcChannelBuffer* pRpcChannelBuffer,
2706 PRPC_MESSAGE pRpcMessage,
2707 DWORD* pdwStubPhase);
2708 HRESULT CALLBACK IMemInputPin_ReceiveMultiple_Proxy(
2709 IMemInputPin* This,
2710 IMediaSample** pSamples,
2711 long nSamples,
2712 long* nSamplesProcessed);
2713 void __RPC_STUB IMemInputPin_ReceiveMultiple_Stub(
2714 struct IRpcStubBuffer* This,
2715 struct IRpcChannelBuffer* pRpcChannelBuffer,
2716 PRPC_MESSAGE pRpcMessage,
2717 DWORD* pdwStubPhase);
2718 HRESULT CALLBACK IMemInputPin_ReceiveCanBlock_Proxy(
2719 IMemInputPin* This);
2720 void __RPC_STUB IMemInputPin_ReceiveCanBlock_Stub(
2721 struct IRpcStubBuffer* This,
2722 struct IRpcChannelBuffer* pRpcChannelBuffer,
2723 PRPC_MESSAGE pRpcMessage,
2724 DWORD* pdwStubPhase);
2725
2726 #endif /* __IMemInputPin_INTERFACE_DEFINED__ */
2727
2728 typedef IMemInputPin *PMEMINPUTPIN;
2729
2730 /*****************************************************************************
2731 * IAMovieSetup interface
2732 */
2733 #ifndef __IAMovieSetup_INTERFACE_DEFINED__
2734 #define __IAMovieSetup_INTERFACE_DEFINED__
2735
2736 DEFINE_GUID(IID_IAMovieSetup, 0xa3d8cec0, 0x7e5a, 0x11cf, 0xbb,0xc5, 0x00,0x80,0x5f,0x6c,0xef,0x20);
2737 #if defined(__cplusplus) && !defined(CINTERFACE)
2738 struct IAMovieSetup : public IUnknown
2739 {
2740 virtual HRESULT STDMETHODCALLTYPE Register(
2741 ) = 0;
2742
2743 virtual HRESULT STDMETHODCALLTYPE Unregister(
2744 ) = 0;
2745
2746 };
2747 #else
2748 typedef struct IAMovieSetupVtbl IAMovieSetupVtbl;
2749 struct IAMovieSetup {
2750 const IAMovieSetupVtbl* lpVtbl;
2751 };
2752 struct IAMovieSetupVtbl {
2753 BEGIN_INTERFACE
2754
2755 /*** IUnknown methods ***/
2756 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
2757 IAMovieSetup* This,
2758 REFIID riid,
2759 void** ppvObject);
2760
2761 ULONG (STDMETHODCALLTYPE *AddRef)(
2762 IAMovieSetup* This);
2763
2764 ULONG (STDMETHODCALLTYPE *Release)(
2765 IAMovieSetup* This);
2766
2767 /*** IAMovieSetup methods ***/
2768 HRESULT (STDMETHODCALLTYPE *Register)(
2769 IAMovieSetup* This);
2770
2771 HRESULT (STDMETHODCALLTYPE *Unregister)(
2772 IAMovieSetup* This);
2773
2774 END_INTERFACE
2775 };
2776
2777 #ifdef COBJMACROS
2778 /*** IUnknown methods ***/
2779 #define IAMovieSetup_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
2780 #define IAMovieSetup_AddRef(p) (p)->lpVtbl->AddRef(p)
2781 #define IAMovieSetup_Release(p) (p)->lpVtbl->Release(p)
2782 /*** IAMovieSetup methods ***/
2783 #define IAMovieSetup_Register(p) (p)->lpVtbl->Register(p)
2784 #define IAMovieSetup_Unregister(p) (p)->lpVtbl->Unregister(p)
2785 #endif
2786
2787 #endif
2788
2789 #define IAMovieSetup_METHODS \
2790 /*** IUnknown methods ***/ \
2791 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
2792 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
2793 STDMETHOD_(ULONG,Release)(THIS) PURE; \
2794 /*** IAMovieSetup methods ***/ \
2795 STDMETHOD_(HRESULT,Register)(THIS) PURE; \
2796 STDMETHOD_(HRESULT,Unregister)(THIS) PURE;
2797
2798 HRESULT CALLBACK IAMovieSetup_Register_Proxy(
2799 IAMovieSetup* This);
2800 void __RPC_STUB IAMovieSetup_Register_Stub(
2801 struct IRpcStubBuffer* This,
2802 struct IRpcChannelBuffer* pRpcChannelBuffer,
2803 PRPC_MESSAGE pRpcMessage,
2804 DWORD* pdwStubPhase);
2805 HRESULT CALLBACK IAMovieSetup_Unregister_Proxy(
2806 IAMovieSetup* This);
2807 void __RPC_STUB IAMovieSetup_Unregister_Stub(
2808 struct IRpcStubBuffer* This,
2809 struct IRpcChannelBuffer* pRpcChannelBuffer,
2810 PRPC_MESSAGE pRpcMessage,
2811 DWORD* pdwStubPhase);
2812
2813 #endif /* __IAMovieSetup_INTERFACE_DEFINED__ */
2814
2815 typedef IAMovieSetup *PAMOVIESETUP;
2816
2817 typedef enum AM_SEEKING_SeekingFlags {
2818 AM_SEEKING_NoPositioning = 0x0,
2819 AM_SEEKING_AbsolutePositioning = 0x1,
2820 AM_SEEKING_RelativePositioning = 0x2,
2821 AM_SEEKING_IncrementalPositioning = 0x3,
2822 AM_SEEKING_PositioningBitsMask = 0x3,
2823 AM_SEEKING_SeekToKeyFrame = 0x4,
2824 AM_SEEKING_ReturnTime = 0x8,
2825 AM_SEEKING_Segment = 0x10,
2826 AM_SEEKING_NoFlush = 0x20
2827 } AM_SEEKING_SEEKING_FLAGS;
2828
2829 typedef enum AM_SEEKING_SeekingCapabilities {
2830 AM_SEEKING_CanSeekAbsolute = 0x1,
2831 AM_SEEKING_CanSeekForwards = 0x2,
2832 AM_SEEKING_CanSeekBackwards = 0x4,
2833 AM_SEEKING_CanGetCurrentPos = 0x8,
2834 AM_SEEKING_CanGetStopPos = 0x10,
2835 AM_SEEKING_CanGetDuration = 0x20,
2836 AM_SEEKING_CanPlayBackwards = 0x40,
2837 AM_SEEKING_CanDoSegments = 0x80,
2838 AM_SEEKING_Source = 0x100
2839 } AM_SEEKING_SEEKING_CAPABILITIES;
2840
2841 #ifndef __IMediaSeeking_FWD_DEFINED__
2842 #define __IMediaSeeking_FWD_DEFINED__
2843 typedef struct IMediaSeeking IMediaSeeking;
2844 #endif
2845
2846 /*****************************************************************************
2847 * IMediaSeeking interface
2848 */
2849 #ifndef __IMediaSeeking_INTERFACE_DEFINED__
2850 #define __IMediaSeeking_INTERFACE_DEFINED__
2851
2852 DEFINE_GUID(IID_IMediaSeeking, 0x36b73880, 0xc2c8, 0x11cf, 0x8b,0x46, 0x00,0x80,0x5f,0x6c,0xef,0x60);
2853 #if defined(__cplusplus) && !defined(CINTERFACE)
2854 struct IMediaSeeking : public IUnknown
2855 {
2856 virtual HRESULT STDMETHODCALLTYPE GetCapabilities(
2857 DWORD* pCapabilities) = 0;
2858
2859 virtual HRESULT STDMETHODCALLTYPE CheckCapabilities(
2860 DWORD* pCapabilities) = 0;
2861
2862 virtual HRESULT STDMETHODCALLTYPE IsFormatSupported(
2863 const GUID* pFormat) = 0;
2864
2865 virtual HRESULT STDMETHODCALLTYPE QueryPreferredFormat(
2866 GUID* pFormat) = 0;
2867
2868 virtual HRESULT STDMETHODCALLTYPE GetTimeFormat(
2869 GUID* pFormat) = 0;
2870
2871 virtual HRESULT STDMETHODCALLTYPE IsUsingTimeFormat(
2872 const GUID* pFormat) = 0;
2873
2874 virtual HRESULT STDMETHODCALLTYPE SetTimeFormat(
2875 const GUID* pFormat) = 0;
2876
2877 virtual HRESULT STDMETHODCALLTYPE GetDuration(
2878 LONGLONG* pDuration) = 0;
2879
2880 virtual HRESULT STDMETHODCALLTYPE GetStopPosition(
2881 LONGLONG* pStop) = 0;
2882
2883 virtual HRESULT STDMETHODCALLTYPE GetCurrentPosition(
2884 LONGLONG* pCurrent) = 0;
2885
2886 virtual HRESULT STDMETHODCALLTYPE ConvertTimeFormat(
2887 LONGLONG* pTarget,
2888 const GUID* pTargetFormat,
2889 LONGLONG Source,
2890 const GUID* pSourceFormat) = 0;
2891
2892 virtual HRESULT STDMETHODCALLTYPE SetPositions(
2893 LONGLONG* pCurrent,
2894 DWORD dwCurrentFlags,
2895 LONGLONG* pStop,
2896 DWORD dwStopFlags) = 0;
2897
2898 virtual HRESULT STDMETHODCALLTYPE GetPositions(
2899 LONGLONG* pCurrent,
2900 LONGLONG* pStop) = 0;
2901
2902 virtual HRESULT STDMETHODCALLTYPE GetAvailable(
2903 LONGLONG* pEarliest,
2904 LONGLONG* pLatest) = 0;
2905
2906 virtual HRESULT STDMETHODCALLTYPE SetRate(
2907 double dRate) = 0;
2908
2909 virtual HRESULT STDMETHODCALLTYPE GetRate(
2910 double* pdRate) = 0;
2911
2912 virtual HRESULT STDMETHODCALLTYPE GetPreroll(
2913 LONGLONG* pllPreroll) = 0;
2914
2915 };
2916 #else
2917 typedef struct IMediaSeekingVtbl IMediaSeekingVtbl;
2918 struct IMediaSeeking {
2919 const IMediaSeekingVtbl* lpVtbl;
2920 };
2921 struct IMediaSeekingVtbl {
2922 BEGIN_INTERFACE
2923
2924 /*** IUnknown methods ***/
2925 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
2926 IMediaSeeking* This,
2927 REFIID riid,
2928 void** ppvObject);
2929
2930 ULONG (STDMETHODCALLTYPE *AddRef)(
2931 IMediaSeeking* This);
2932
2933 ULONG (STDMETHODCALLTYPE *Release)(
2934 IMediaSeeking* This);
2935
2936 /*** IMediaSeeking methods ***/
2937 HRESULT (STDMETHODCALLTYPE *GetCapabilities)(
2938 IMediaSeeking* This,
2939 DWORD* pCapabilities);
2940
2941 HRESULT (STDMETHODCALLTYPE *CheckCapabilities)(
2942 IMediaSeeking* This,
2943 DWORD* pCapabilities);
2944
2945 HRESULT (STDMETHODCALLTYPE *IsFormatSupported)(
2946 IMediaSeeking* This,
2947 const GUID* pFormat);
2948
2949 HRESULT (STDMETHODCALLTYPE *QueryPreferredFormat)(
2950 IMediaSeeking* This,
2951 GUID* pFormat);
2952
2953 HRESULT (STDMETHODCALLTYPE *GetTimeFormat)(
2954 IMediaSeeking* This,
2955 GUID* pFormat);
2956
2957 HRESULT (STDMETHODCALLTYPE *IsUsingTimeFormat)(
2958 IMediaSeeking* This,
2959 const GUID* pFormat);
2960
2961 HRESULT (STDMETHODCALLTYPE *SetTimeFormat)(
2962 IMediaSeeking* This,
2963 const GUID* pFormat);
2964
2965 HRESULT (STDMETHODCALLTYPE *GetDuration)(
2966 IMediaSeeking* This,
2967 LONGLONG* pDuration);
2968
2969 HRESULT (STDMETHODCALLTYPE *GetStopPosition)(
2970 IMediaSeeking* This,
2971 LONGLONG* pStop);
2972
2973 HRESULT (STDMETHODCALLTYPE *GetCurrentPosition)(
2974 IMediaSeeking* This,
2975 LONGLONG* pCurrent);
2976
2977 HRESULT (STDMETHODCALLTYPE *ConvertTimeFormat)(
2978 IMediaSeeking* This,
2979 LONGLONG* pTarget,
2980 const GUID* pTargetFormat,
2981 LONGLONG Source,
2982 const GUID* pSourceFormat);
2983
2984 HRESULT (STDMETHODCALLTYPE *SetPositions)(
2985 IMediaSeeking* This,
2986 LONGLONG* pCurrent,
2987 DWORD dwCurrentFlags,
2988 LONGLONG* pStop,
2989 DWORD dwStopFlags);
2990
2991 HRESULT (STDMETHODCALLTYPE *GetPositions)(
2992 IMediaSeeking* This,
2993 LONGLONG* pCurrent,
2994 LONGLONG* pStop);
2995
2996 HRESULT (STDMETHODCALLTYPE *GetAvailable)(
2997 IMediaSeeking* This,
2998 LONGLONG* pEarliest,
2999 LONGLONG* pLatest);
3000
3001 HRESULT (STDMETHODCALLTYPE *SetRate)(
3002 IMediaSeeking* This,
3003 double dRate);
3004
3005 HRESULT (STDMETHODCALLTYPE *GetRate)(
3006 IMediaSeeking* This,
3007 double* pdRate);
3008
3009 HRESULT (STDMETHODCALLTYPE *GetPreroll)(
3010 IMediaSeeking* This,
3011 LONGLONG* pllPreroll);
3012
3013 END_INTERFACE
3014 };
3015
3016 #ifdef COBJMACROS
3017 /*** IUnknown methods ***/
3018 #define IMediaSeeking_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3019 #define IMediaSeeking_AddRef(p) (p)->lpVtbl->AddRef(p)
3020 #define IMediaSeeking_Release(p) (p)->lpVtbl->Release(p)
3021 /*** IMediaSeeking methods ***/
3022 #define IMediaSeeking_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a)
3023 #define IMediaSeeking_CheckCapabilities(p,a) (p)->lpVtbl->CheckCapabilities(p,a)
3024 #define IMediaSeeking_IsFormatSupported(p,a) (p)->lpVtbl->IsFormatSupported(p,a)
3025 #define IMediaSeeking_QueryPreferredFormat(p,a) (p)->lpVtbl->QueryPreferredFormat(p,a)
3026 #define IMediaSeeking_GetTimeFormat(p,a) (p)->lpVtbl->GetTimeFormat(p,a)
3027 #define IMediaSeeking_IsUsingTimeFormat(p,a) (p)->lpVtbl->IsUsingTimeFormat(p,a)
3028 #define IMediaSeeking_SetTimeFormat(p,a) (p)->lpVtbl->SetTimeFormat(p,a)
3029 #define IMediaSeeking_GetDuration(p,a) (p)->lpVtbl->GetDuration(p,a)
3030 #define IMediaSeeking_GetStopPosition(p,a) (p)->lpVtbl->GetStopPosition(p,a)
3031 #define IMediaSeeking_GetCurrentPosition(p,a) (p)->lpVtbl->GetCurrentPosition(p,a)
3032 #define IMediaSeeking_ConvertTimeFormat(p,a,b,c,d) (p)->lpVtbl->ConvertTimeFormat(p,a,b,c,d)
3033 #define IMediaSeeking_SetPositions(p,a,b,c,d) (p)->lpVtbl->SetPositions(p,a,b,c,d)
3034 #define IMediaSeeking_GetPositions(p,a,b) (p)->lpVtbl->GetPositions(p,a,b)
3035 #define IMediaSeeking_GetAvailable(p,a,b) (p)->lpVtbl->GetAvailable(p,a,b)
3036 #define IMediaSeeking_SetRate(p,a) (p)->lpVtbl->SetRate(p,a)
3037 #define IMediaSeeking_GetRate(p,a) (p)->lpVtbl->GetRate(p,a)
3038 #define IMediaSeeking_GetPreroll(p,a) (p)->lpVtbl->GetPreroll(p,a)
3039 #endif
3040
3041 #endif
3042
3043 #define IMediaSeeking_METHODS \
3044 /*** IUnknown methods ***/ \
3045 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
3046 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
3047 STDMETHOD_(ULONG,Release)(THIS) PURE; \
3048 /*** IMediaSeeking methods ***/ \
3049 STDMETHOD_(HRESULT,GetCapabilities)(THIS_ DWORD* pCapabilities) PURE; \
3050 STDMETHOD_(HRESULT,CheckCapabilities)(THIS_ DWORD* pCapabilities) PURE; \
3051 STDMETHOD_(HRESULT,IsFormatSupported)(THIS_ const GUID* pFormat) PURE; \
3052 STDMETHOD_(HRESULT,QueryPreferredFormat)(THIS_ GUID* pFormat) PURE; \
3053 STDMETHOD_(HRESULT,GetTimeFormat)(THIS_ GUID* pFormat) PURE; \
3054 STDMETHOD_(HRESULT,IsUsingTimeFormat)(THIS_ const GUID* pFormat) PURE; \
3055 STDMETHOD_(HRESULT,SetTimeFormat)(THIS_ const GUID* pFormat) PURE; \
3056 STDMETHOD_(HRESULT,GetDuration)(THIS_ LONGLONG* pDuration) PURE; \
3057 STDMETHOD_(HRESULT,GetStopPosition)(THIS_ LONGLONG* pStop) PURE; \
3058 STDMETHOD_(HRESULT,GetCurrentPosition)(THIS_ LONGLONG* pCurrent) PURE; \
3059 STDMETHOD_(HRESULT,ConvertTimeFormat)(THIS_ LONGLONG* pTarget, const GUID* pTargetFormat, LONGLONG Source, const GUID* pSourceFormat) PURE; \
3060 STDMETHOD_(HRESULT,SetPositions)(THIS_ LONGLONG* pCurrent, DWORD dwCurrentFlags, LONGLONG* pStop, DWORD dwStopFlags) PURE; \
3061 STDMETHOD_(HRESULT,GetPositions)(THIS_ LONGLONG* pCurrent, LONGLONG* pStop) PURE; \
3062 STDMETHOD_(HRESULT,GetAvailable)(THIS_ LONGLONG* pEarliest, LONGLONG* pLatest) PURE; \
3063 STDMETHOD_(HRESULT,SetRate)(THIS_ double dRate) PURE; \
3064 STDMETHOD_(HRESULT,GetRate)(THIS_ double* pdRate) PURE; \
3065 STDMETHOD_(HRESULT,GetPreroll)(THIS_ LONGLONG* pllPreroll) PURE;
3066
3067 HRESULT CALLBACK IMediaSeeking_GetCapabilities_Proxy(
3068 IMediaSeeking* This,
3069 DWORD* pCapabilities);
3070 void __RPC_STUB IMediaSeeking_GetCapabilities_Stub(
3071 struct IRpcStubBuffer* This,
3072 struct IRpcChannelBuffer* pRpcChannelBuffer,
3073 PRPC_MESSAGE pRpcMessage,
3074 DWORD* pdwStubPhase);
3075 HRESULT CALLBACK IMediaSeeking_CheckCapabilities_Proxy(
3076 IMediaSeeking* This,
3077 DWORD* pCapabilities);
3078 void __RPC_STUB IMediaSeeking_CheckCapabilities_Stub(
3079 struct IRpcStubBuffer* This,
3080 struct IRpcChannelBuffer* pRpcChannelBuffer,
3081 PRPC_MESSAGE pRpcMessage,
3082 DWORD* pdwStubPhase);
3083 HRESULT CALLBACK IMediaSeeking_IsFormatSupported_Proxy(
3084 IMediaSeeking* This,
3085 const GUID* pFormat);
3086 void __RPC_STUB IMediaSeeking_IsFormatSupported_Stub(
3087 struct IRpcStubBuffer* This,
3088 struct IRpcChannelBuffer* pRpcChannelBuffer,
3089 PRPC_MESSAGE pRpcMessage,
3090 DWORD* pdwStubPhase);
3091 HRESULT CALLBACK IMediaSeeking_QueryPreferredFormat_Proxy(
3092 IMediaSeeking* This,
3093 GUID* pFormat);
3094 void __RPC_STUB IMediaSeeking_QueryPreferredFormat_Stub(
3095 struct IRpcStubBuffer* This,
3096 struct IRpcChannelBuffer* pRpcChannelBuffer,
3097 PRPC_MESSAGE pRpcMessage,
3098 DWORD* pdwStubPhase);
3099 HRESULT CALLBACK IMediaSeeking_GetTimeFormat_Proxy(
3100 IMediaSeeking* This,
3101 GUID* pFormat);
3102 void __RPC_STUB IMediaSeeking_GetTimeFormat_Stub(
3103 struct IRpcStubBuffer* This,
3104 struct IRpcChannelBuffer* pRpcChannelBuffer,
3105 PRPC_MESSAGE pRpcMessage,
3106 DWORD* pdwStubPhase);
3107 HRESULT CALLBACK IMediaSeeking_IsUsingTimeFormat_Proxy(
3108 IMediaSeeking* This,
3109 const GUID* pFormat);
3110 void __RPC_STUB IMediaSeeking_IsUsingTimeFormat_Stub(
3111 struct IRpcStubBuffer* This,
3112 struct IRpcChannelBuffer* pRpcChannelBuffer,
3113 PRPC_MESSAGE pRpcMessage,
3114 DWORD* pdwStubPhase);
3115 HRESULT CALLBACK IMediaSeeking_SetTimeFormat_Proxy(
3116 IMediaSeeking* This,
3117 const GUID* pFormat);
3118 void __RPC_STUB IMediaSeeking_SetTimeFormat_Stub(
3119 struct IRpcStubBuffer* This,
3120 struct IRpcChannelBuffer* pRpcChannelBuffer,
3121 PRPC_MESSAGE pRpcMessage,
3122 DWORD* pdwStubPhase);
3123 HRESULT CALLBACK IMediaSeeking_GetDuration_Proxy(
3124 IMediaSeeking* This,
3125 LONGLONG* pDuration);
3126 void __RPC_STUB IMediaSeeking_GetDuration_Stub(
3127 struct IRpcStubBuffer* This,
3128 struct IRpcChannelBuffer* pRpcChannelBuffer,
3129 PRPC_MESSAGE pRpcMessage,
3130 DWORD* pdwStubPhase);
3131 HRESULT CALLBACK IMediaSeeking_GetStopPosition_Proxy(
3132 IMediaSeeking* This,
3133 LONGLONG* pStop);
3134 void __RPC_STUB IMediaSeeking_GetStopPosition_Stub(
3135 struct IRpcStubBuffer* This,
3136 struct IRpcChannelBuffer* pRpcChannelBuffer,
3137 PRPC_MESSAGE pRpcMessage,
3138 DWORD* pdwStubPhase);
3139 HRESULT CALLBACK IMediaSeeking_GetCurrentPosition_Proxy(
3140 IMediaSeeking* This,
3141 LONGLONG* pCurrent);
3142 void __RPC_STUB IMediaSeeking_GetCurrentPosition_Stub(
3143 struct IRpcStubBuffer* This,
3144 struct IRpcChannelBuffer* pRpcChannelBuffer,
3145 PRPC_MESSAGE pRpcMessage,
3146 DWORD* pdwStubPhase);
3147 HRESULT CALLBACK IMediaSeeking_ConvertTimeFormat_Proxy(
3148 IMediaSeeking* This,
3149 LONGLONG* pTarget,
3150 const GUID* pTargetFormat,
3151 LONGLONG Source,
3152 const GUID* pSourceFormat);
3153 void __RPC_STUB IMediaSeeking_ConvertTimeFormat_Stub(
3154 struct IRpcStubBuffer* This,
3155 struct IRpcChannelBuffer* pRpcChannelBuffer,
3156 PRPC_MESSAGE pRpcMessage,
3157 DWORD* pdwStubPhase);
3158 HRESULT CALLBACK IMediaSeeking_SetPositions_Proxy(
3159 IMediaSeeking* This,
3160 LONGLONG* pCurrent,
3161 DWORD dwCurrentFlags,
3162 LONGLONG* pStop,
3163 DWORD dwStopFlags);
3164 void __RPC_STUB IMediaSeeking_SetPositions_Stub(
3165 struct IRpcStubBuffer* This,
3166 struct IRpcChannelBuffer* pRpcChannelBuffer,
3167 PRPC_MESSAGE pRpcMessage,
3168 DWORD* pdwStubPhase);
3169 HRESULT CALLBACK IMediaSeeking_GetPositions_Proxy(
3170 IMediaSeeking* This,
3171 LONGLONG* pCurrent,
3172 LONGLONG* pStop);
3173 void __RPC_STUB IMediaSeeking_GetPositions_Stub(
3174 struct IRpcStubBuffer* This,
3175 struct IRpcChannelBuffer* pRpcChannelBuffer,
3176 PRPC_MESSAGE pRpcMessage,
3177 DWORD* pdwStubPhase);
3178 HRESULT CALLBACK IMediaSeeking_GetAvailable_Proxy(
3179 IMediaSeeking* This,
3180 LONGLONG* pEarliest,
3181 LONGLONG* pLatest);
3182 void __RPC_STUB IMediaSeeking_GetAvailable_Stub(
3183 struct IRpcStubBuffer* This,
3184 struct IRpcChannelBuffer* pRpcChannelBuffer,
3185 PRPC_MESSAGE pRpcMessage,
3186 DWORD* pdwStubPhase);
3187 HRESULT CALLBACK IMediaSeeking_SetRate_Proxy(
3188 IMediaSeeking* This,
3189 double dRate);
3190 void __RPC_STUB IMediaSeeking_SetRate_Stub(
3191 struct IRpcStubBuffer* This,
3192 struct IRpcChannelBuffer* pRpcChannelBuffer,
3193 PRPC_MESSAGE pRpcMessage,
3194 DWORD* pdwStubPhase);
3195 HRESULT CALLBACK IMediaSeeking_GetRate_Proxy(
3196 IMediaSeeking* This,
3197 double* pdRate);
3198 void __RPC_STUB IMediaSeeking_GetRate_Stub(
3199 struct IRpcStubBuffer* This,
3200 struct IRpcChannelBuffer* pRpcChannelBuffer,
3201 PRPC_MESSAGE pRpcMessage,
3202 DWORD* pdwStubPhase);
3203 HRESULT CALLBACK IMediaSeeking_GetPreroll_Proxy(
3204 IMediaSeeking* This,
3205 LONGLONG* pllPreroll);
3206 void __RPC_STUB IMediaSeeking_GetPreroll_Stub(
3207 struct IRpcStubBuffer* This,
3208 struct IRpcChannelBuffer* pRpcChannelBuffer,
3209 PRPC_MESSAGE pRpcMessage,
3210 DWORD* pdwStubPhase);
3211
3212 #endif /* __IMediaSeeking_INTERFACE_DEFINED__ */
3213
3214 typedef IMediaSeeking *PMEDIASEEKING;
3215
3216 enum tagAM_MEDIAEVENT_FLAGS {
3217 AM_MEDIAEVENT_NONOTIFY = 0x1
3218 };
3219
3220 #ifndef __IAMAnalogVideoDecoder_FWD_DEFINED__
3221 #define __IAMAnalogVideoDecoder_FWD_DEFINED__
3222 typedef struct IAMAnalogVideoDecoder IAMAnalogVideoDecoder;
3223 #endif
3224
3225 #ifndef __IAMAnalogVideoEncoder_FWD_DEFINED__
3226 #define __IAMAnalogVideoEncoder_FWD_DEFINED__
3227 typedef struct IAMAnalogVideoEncoder IAMAnalogVideoEncoder;
3228 #endif
3229
3230 #ifndef __IAMAudioInputMixer_FWD_DEFINED__
3231 #define __IAMAudioInputMixer_FWD_DEFINED__
3232 typedef struct IAMAudioInputMixer IAMAudioInputMixer;
3233 #endif
3234
3235 #ifndef __IAMAudioRendererStats_FWD_DEFINED__
3236 #define __IAMAudioRendererStats_FWD_DEFINED__
3237 typedef struct IAMAudioRendererStats IAMAudioRendererStats;
3238 #endif
3239
3240 #ifndef __IAMBufferNegotiation_FWD_DEFINED__
3241 #define __IAMBufferNegotiation_FWD_DEFINED__
3242 typedef struct IAMBufferNegotiation IAMBufferNegotiation;
3243 #endif
3244
3245 #ifndef __IAMCameraControl_FWD_DEFINED__
3246 #define __IAMCameraControl_FWD_DEFINED__
3247 typedef struct IAMCameraControl IAMCameraControl;
3248 #endif
3249
3250 #ifndef __IAMCopyCaptureFileProgress_FWD_DEFINED__
3251 #define __IAMCopyCaptureFileProgress_FWD_DEFINED__
3252 typedef struct IAMCopyCaptureFileProgress IAMCopyCaptureFileProgress;
3253 #endif
3254
3255 #ifndef __IAMCrossbar_FWD_DEFINED__
3256 #define __IAMCrossbar_FWD_DEFINED__
3257 typedef struct IAMCrossbar IAMCrossbar;
3258 #endif
3259
3260 #ifndef __IAMDevMemoryAllocator_FWD_DEFINED__
3261 #define __IAMDevMemoryAllocator_FWD_DEFINED__
3262 typedef struct IAMDevMemoryAllocator IAMDevMemoryAllocator;
3263 #endif
3264
3265 #ifndef __IAMDevMemoryControl_FWD_DEFINED__
3266 #define __IAMDevMemoryControl_FWD_DEFINED__
3267 typedef struct IAMDevMemoryControl IAMDevMemoryControl;
3268 #endif
3269
3270 #ifndef __IAMDroppedFrames_FWD_DEFINED__
3271 #define __IAMDroppedFrames_FWD_DEFINED__
3272 typedef struct IAMDroppedFrames IAMDroppedFrames;
3273 #endif
3274
3275 #ifndef __IAMExtDevice_FWD_DEFINED__
3276 #define __IAMExtDevice_FWD_DEFINED__
3277 typedef struct IAMExtDevice IAMExtDevice;
3278 #endif
3279
3280 #ifndef __IAMExtTransport_FWD_DEFINED__
3281 #define __IAMExtTransport_FWD_DEFINED__
3282 typedef struct IAMExtTransport IAMExtTransport;
3283 #endif
3284
3285 #ifndef __IAMGraphStreams_FWD_DEFINED__
3286 #define __IAMGraphStreams_FWD_DEFINED__
3287 typedef struct IAMGraphStreams IAMGraphStreams;
3288 #endif
3289
3290 #ifndef __IAMLatency_FWD_DEFINED__
3291 #define __IAMLatency_FWD_DEFINED__
3292 typedef struct IAMLatency IAMLatency;
3293 #endif
3294
3295 #ifndef __IAMOpenProgress_FWD_DEFINED__
3296 #define __IAMOpenProgress_FWD_DEFINED__
3297 typedef struct IAMOpenProgress IAMOpenProgress;
3298 #endif
3299
3300 #ifndef __IAMOverlayFX_FWD_DEFINED__
3301 #define __IAMOverlayFX_FWD_DEFINED__
3302 typedef struct IAMOverlayFX IAMOverlayFX;
3303 #endif
3304
3305 #ifndef __IAMPhysicalPinInfo_FWD_DEFINED__
3306 #define __IAMPhysicalPinInfo_FWD_DEFINED__
3307 typedef struct IAMPhysicalPinInfo IAMPhysicalPinInfo;
3308 #endif
3309
3310 #ifndef __IAMPushSource_FWD_DEFINED__
3311 #define __IAMPushSource_FWD_DEFINED__
3312 typedef struct IAMPushSource IAMPushSource;
3313 #endif
3314
3315 #ifndef __IAMStreamConfig_FWD_DEFINED__
3316 #define __IAMStreamConfig_FWD_DEFINED__
3317 typedef struct IAMStreamConfig IAMStreamConfig;
3318 #endif
3319
3320 #ifndef __IAMTimecodeDisplay_FWD_DEFINED__
3321 #define __IAMTimecodeDisplay_FWD_DEFINED__
3322 typedef struct IAMTimecodeDisplay IAMTimecodeDisplay;
3323 #endif
3324
3325 #ifndef __IAMTimecodeGenerator_FWD_DEFINED__
3326 #define __IAMTimecodeGenerator_FWD_DEFINED__
3327 typedef struct IAMTimecodeGenerator IAMTimecodeGenerator;
3328 #endif
3329
3330 #ifndef __IAMTimecodeReader_FWD_DEFINED__
3331 #define __IAMTimecodeReader_FWD_DEFINED__
3332 typedef struct IAMTimecodeReader IAMTimecodeReader;
3333 #endif
3334
3335 #ifndef __IAMTVTuner_FWD_DEFINED__
3336 #define __IAMTVTuner_FWD_DEFINED__
3337 typedef struct IAMTVTuner IAMTVTuner;
3338 #endif
3339
3340 #ifndef __IAMVfwCaptureDialogs_FWD_DEFINED__
3341 #define __IAMVfwCaptureDialogs_FWD_DEFINED__
3342 typedef struct IAMVfwCaptureDialogs IAMVfwCaptureDialogs;
3343 #endif
3344
3345 #ifndef __IAMVfwCompressDialogs_FWD_DEFINED__
3346 #define __IAMVfwCompressDialogs_FWD_DEFINED__
3347 typedef struct IAMVfwCompressDialogs IAMVfwCompressDialogs;
3348 #endif
3349
3350 #ifndef __IAMVideoCompression_FWD_DEFINED__
3351 #define __IAMVideoCompression_FWD_DEFINED__
3352 typedef struct IAMVideoCompression IAMVideoCompression;
3353 #endif
3354
3355 #ifndef __IAMVideoDecimationProperties_FWD_DEFINED__
3356 #define __IAMVideoDecimationProperties_FWD_DEFINED__
3357 typedef struct IAMVideoDecimationProperties IAMVideoDecimationProperties;
3358 #endif
3359
3360 #ifndef __IAMVideoProcAmp_FWD_DEFINED__
3361 #define __IAMVideoProcAmp_FWD_DEFINED__
3362 typedef struct IAMVideoProcAmp IAMVideoProcAmp;
3363 #endif
3364
3365 #ifndef __ICaptureGraphBuilder_FWD_DEFINED__
3366 #define __ICaptureGraphBuilder_FWD_DEFINED__
3367 typedef struct ICaptureGraphBuilder ICaptureGraphBuilder;
3368 #endif
3369
3370 #ifndef __ICaptureGraphBuilder2_FWD_DEFINED__
3371 #define __ICaptureGraphBuilder2_FWD_DEFINED__
3372 typedef struct ICaptureGraphBuilder2 ICaptureGraphBuilder2;
3373 #endif
3374
3375 #ifndef __IConfigAviMux_FWD_DEFINED__
3376 #define __IConfigAviMux_FWD_DEFINED__
3377 typedef struct IConfigAviMux IConfigAviMux;
3378 #endif
3379
3380 #ifndef __IConfigInterleaving_FWD_DEFINED__
3381 #define __IConfigInterleaving_FWD_DEFINED__
3382 typedef struct IConfigInterleaving IConfigInterleaving;
3383 #endif
3384
3385 #ifndef __IDecimateVideoImage_FWD_DEFINED__
3386 #define __IDecimateVideoImage_FWD_DEFINED__
3387 typedef struct IDecimateVideoImage IDecimateVideoImage;
3388 #endif
3389
3390 #ifndef __IDrawVideoImage_FWD_DEFINED__
3391 #define __IDrawVideoImage_FWD_DEFINED__
3392 typedef struct IDrawVideoImage IDrawVideoImage;
3393 #endif
3394
3395 #ifndef __IEnumRegFilters_FWD_DEFINED__
3396 #define __IEnumRegFilters_FWD_DEFINED__
3397 typedef struct IEnumRegFilters IEnumRegFilters;
3398 #endif
3399
3400 #ifndef __IEnumStreamIdMap_FWD_DEFINED__
3401 #define __IEnumStreamIdMap_FWD_DEFINED__
3402 typedef struct IEnumStreamIdMap IEnumStreamIdMap;
3403 #endif
3404
3405 #ifndef __IFileSourceFilter_FWD_DEFINED__
3406 #define __IFileSourceFilter_FWD_DEFINED__
3407 typedef struct IFileSourceFilter IFileSourceFilter;
3408 #endif
3409
3410 #ifndef __IFileSinkFilter_FWD_DEFINED__
3411 #define __IFileSinkFilter_FWD_DEFINED__
3412 typedef struct IFileSinkFilter IFileSinkFilter;
3413 #endif
3414
3415 #ifndef __IFileSinkFilter2_FWD_DEFINED__
3416 #define __IFileSinkFilter2_FWD_DEFINED__
3417 typedef struct IFileSinkFilter2 IFileSinkFilter2;
3418 #endif
3419
3420 #ifndef __IFilterMapper_FWD_DEFINED__
3421 #define __IFilterMapper_FWD_DEFINED__
3422 typedef struct IFilterMapper IFilterMapper;
3423 #endif
3424
3425 #ifndef __IFilterMapper2_FWD_DEFINED__
3426 #define __IFilterMapper2_FWD_DEFINED__
3427 typedef struct IFilterMapper2 IFilterMapper2;
3428 #endif
3429
3430 #ifndef __IGraphBuilder_FWD_DEFINED__
3431 #define __IGraphBuilder_FWD_DEFINED__
3432 typedef struct IGraphBuilder IGraphBuilder;
3433 #endif
3434
3435 #ifndef __IKsPropertySet_FWD_DEFINED__
3436 #define __IKsPropertySet_FWD_DEFINED__
3437 typedef struct IKsPropertySet IKsPropertySet;
3438 #endif
3439
3440 #ifndef __IMediaEventSink_FWD_DEFINED__
3441 #define __IMediaEventSink_FWD_DEFINED__
3442 typedef struct IMediaEventSink IMediaEventSink;
3443 #endif
3444
3445 #ifndef __IMpeg2Demultiplexer_FWD_DEFINED__
3446 #define __IMpeg2Demultiplexer_FWD_DEFINED__
3447 typedef struct IMpeg2Demultiplexer IMpeg2Demultiplexer;
3448 #endif
3449
3450 #ifndef __IMPEG2StreamIdMap_FWD_DEFINED__
3451 #define __IMPEG2StreamIdMap_FWD_DEFINED__
3452 typedef struct IMPEG2StreamIdMap IMPEG2StreamIdMap;
3453 #endif
3454
3455 #ifndef __IOverlay_FWD_DEFINED__
3456 #define __IOverlay_FWD_DEFINED__
3457 typedef struct IOverlay IOverlay;
3458 #endif
3459
3460 #ifndef __IOverlayNotify_FWD_DEFINED__
3461 #define __IOverlayNotify_FWD_DEFINED__
3462 typedef struct IOverlayNotify IOverlayNotify;
3463 #endif
3464
3465 #ifndef __IOverlayNotify2_FWD_DEFINED__
3466 #define __IOverlayNotify2_FWD_DEFINED__
3467 typedef struct IOverlayNotify2 IOverlayNotify2;
3468 #endif
3469
3470 #ifndef __IQualityControl_FWD_DEFINED__
3471 #define __IQualityControl_FWD_DEFINED__
3472 typedef struct IQualityControl IQualityControl;
3473 #endif
3474
3475 #ifndef __ISeekingPassThru_FWD_DEFINED__
3476 #define __ISeekingPassThru_FWD_DEFINED__
3477 typedef struct ISeekingPassThru ISeekingPassThru;
3478 #endif
3479
3480 typedef struct {
3481 CLSID Clsid;
3482 LPWSTR Name;
3483 } REGFILTER;
3484
3485 /*****************************************************************************
3486 * IEnumRegFilters interface
3487 */
3488 #ifndef __IEnumRegFilters_INTERFACE_DEFINED__
3489 #define __IEnumRegFilters_INTERFACE_DEFINED__
3490
3491 DEFINE_GUID(IID_IEnumRegFilters, 0x56a868a4, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
3492 #if defined(__cplusplus) && !defined(CINTERFACE)
3493 struct IEnumRegFilters : public IUnknown
3494 {
3495 virtual HRESULT STDMETHODCALLTYPE Next(
3496 ULONG cFilters,
3497 REGFILTER** apRegFilter,
3498 ULONG* pcFetched) = 0;
3499
3500 virtual HRESULT STDMETHODCALLTYPE Skip(
3501 ULONG cFilters) = 0;
3502
3503 virtual HRESULT STDMETHODCALLTYPE Reset(
3504 ) = 0;
3505
3506 virtual HRESULT STDMETHODCALLTYPE Clone(
3507 IEnumRegFilters** ppEnum) = 0;
3508
3509 };
3510 #else
3511 typedef struct IEnumRegFiltersVtbl IEnumRegFiltersVtbl;
3512 struct IEnumRegFilters {
3513 const IEnumRegFiltersVtbl* lpVtbl;
3514 };
3515 struct IEnumRegFiltersVtbl {
3516 BEGIN_INTERFACE
3517
3518 /*** IUnknown methods ***/
3519 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
3520 IEnumRegFilters* This,
3521 REFIID riid,
3522 void** ppvObject);
3523
3524 ULONG (STDMETHODCALLTYPE *AddRef)(
3525 IEnumRegFilters* This);
3526
3527 ULONG (STDMETHODCALLTYPE *Release)(
3528 IEnumRegFilters* This);
3529
3530 /*** IEnumRegFilters methods ***/
3531 HRESULT (STDMETHODCALLTYPE *Next)(
3532 IEnumRegFilters* This,
3533 ULONG cFilters,
3534 REGFILTER** apRegFilter,
3535 ULONG* pcFetched);
3536
3537 HRESULT (STDMETHODCALLTYPE *Skip)(
3538 IEnumRegFilters* This,
3539 ULONG cFilters);
3540
3541 HRESULT (STDMETHODCALLTYPE *Reset)(
3542 IEnumRegFilters* This);
3543
3544 HRESULT (STDMETHODCALLTYPE *Clone)(
3545 IEnumRegFilters* This,
3546 IEnumRegFilters** ppEnum);
3547
3548 END_INTERFACE
3549 };
3550
3551 #ifdef COBJMACROS
3552 /*** IUnknown methods ***/
3553 #define IEnumRegFilters_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3554 #define IEnumRegFilters_AddRef(p) (p)->lpVtbl->AddRef(p)
3555 #define IEnumRegFilters_Release(p) (p)->lpVtbl->Release(p)
3556 /*** IEnumRegFilters methods ***/
3557 #define IEnumRegFilters_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
3558 #define IEnumRegFilters_Skip(p,a) (p)->lpVtbl->Skip(p,a)
3559 #define IEnumRegFilters_Reset(p) (p)->lpVtbl->Reset(p)
3560 #define IEnumRegFilters_Clone(p,a) (p)->lpVtbl->Clone(p,a)
3561 #endif
3562
3563 #endif
3564
3565 #define IEnumRegFilters_METHODS \
3566 /*** IUnknown methods ***/ \
3567 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
3568 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
3569 STDMETHOD_(ULONG,Release)(THIS) PURE; \
3570 /*** IEnumRegFilters methods ***/ \
3571 STDMETHOD_(HRESULT,Next)(THIS_ ULONG cFilters, REGFILTER** apRegFilter, ULONG* pcFetched) PURE; \
3572 STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cFilters) PURE; \
3573 STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
3574 STDMETHOD_(HRESULT,Clone)(THIS_ IEnumRegFilters** ppEnum) PURE;
3575
3576 HRESULT CALLBACK IEnumRegFilters_Next_Proxy(
3577 IEnumRegFilters* This,
3578 ULONG cFilters,
3579 REGFILTER** apRegFilter,
3580 ULONG* pcFetched);
3581 void __RPC_STUB IEnumRegFilters_Next_Stub(
3582 struct IRpcStubBuffer* This,
3583 struct IRpcChannelBuffer* pRpcChannelBuffer,
3584 PRPC_MESSAGE pRpcMessage,
3585 DWORD* pdwStubPhase);
3586 HRESULT CALLBACK IEnumRegFilters_Skip_Proxy(
3587 IEnumRegFilters* This,
3588 ULONG cFilters);
3589 void __RPC_STUB IEnumRegFilters_Skip_Stub(
3590 struct IRpcStubBuffer* This,
3591 struct IRpcChannelBuffer* pRpcChannelBuffer,
3592 PRPC_MESSAGE pRpcMessage,
3593 DWORD* pdwStubPhase);
3594 HRESULT CALLBACK IEnumRegFilters_Reset_Proxy(
3595 IEnumRegFilters* This);
3596 void __RPC_STUB IEnumRegFilters_Reset_Stub(
3597 struct IRpcStubBuffer* This,
3598 struct IRpcChannelBuffer* pRpcChannelBuffer,
3599 PRPC_MESSAGE pRpcMessage,
3600 DWORD* pdwStubPhase);
3601 HRESULT CALLBACK IEnumRegFilters_Clone_Proxy(
3602 IEnumRegFilters* This,
3603 IEnumRegFilters** ppEnum);
3604 void __RPC_STUB IEnumRegFilters_Clone_Stub(
3605 struct IRpcStubBuffer* This,
3606 struct IRpcChannelBuffer* pRpcChannelBuffer,
3607 PRPC_MESSAGE pRpcMessage,
3608 DWORD* pdwStubPhase);
3609
3610 #endif /* __IEnumRegFilters_INTERFACE_DEFINED__ */
3611
3612 typedef IEnumRegFilters *PENUMREGFILTERS;
3613
3614 enum {
3615 MERIT_PREFERRED = 0x800000,
3616 MERIT_NORMAL = 0x600000,
3617 MERIT_UNLIKELY = 0x400000,
3618 MERIT_DO_NOT_USE = 0x200000,
3619 MERIT_SW_COMPRESSOR = 0x100000,
3620 MERIT_HW_COMPRESSOR = 0x100050
3621 };
3622
3623 /*****************************************************************************
3624 * IFilterMapper interface
3625 */
3626 #ifndef __IFilterMapper_INTERFACE_DEFINED__
3627 #define __IFilterMapper_INTERFACE_DEFINED__
3628
3629 DEFINE_GUID(IID_IFilterMapper, 0x56a868a3, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70);
3630 #if defined(__cplusplus) && !defined(CINTERFACE)
3631 struct IFilterMapper : public IUnknown
3632 {
3633 virtual HRESULT STDMETHODCALLTYPE RegisterFilter(
3634 CLSID clsid,
3635 LPCWSTR Name,
3636 DWORD dwMerit) = 0;
3637
3638 virtual HRESULT STDMETHODCALLTYPE RegisterFilterInstance(
3639 CLSID clsid,
3640 LPCWSTR Name,
3641 CLSID* MRId) = 0;
3642
3643 virtual HRESULT STDMETHODCALLTYPE RegisterPin(
3644 CLSID Filter,
3645 LPCWSTR Name,
3646 BOOL bRendered,
3647 BOOL bOutput,
3648 BOOL bZero,
3649 BOOL bMany,
3650 CLSID ConnectsToFilter,
3651 LPCWSTR ConnectsToPin) = 0;
3652
3653 virtual HRESULT STDMETHODCALLTYPE RegisterPinType(
3654 CLSID clsFilter,
3655 LPCWSTR strName,
3656 CLSID clsMajorType,
3657 CLSID clsSubType) = 0;
3658
3659 virtual HRESULT STDMETHODCALLTYPE UnregisterFilter(
3660 CLSID Filter) = 0;
3661
3662 virtual HRESULT STDMETHODCALLTYPE UnregisterFilterInstance(
3663 CLSID MRId) = 0;
3664
3665 virtual HRESULT STDMETHODCALLTYPE UnregisterPin(
3666 CLSID Filter,
3667 LPCWSTR Name) = 0;
3668
3669 virtual HRESULT STDMETHODCALLTYPE EnumMatchingFilters(
3670 IEnumRegFilters** ppEnum,
3671 DWORD dwMerit,
3672 BOOL bInputNeeded,
3673 CLSID clsInMaj,
3674 CLSID clsInSub,
3675 BOOL bRender,
3676 BOOL bOututNeeded,
3677 CLSID clsOutMaj,
3678 CLSID clsOutSub) = 0;
3679
3680 };
3681 #else
3682 typedef struct IFilterMapperVtbl IFilterMapperVtbl;
3683 struct IFilterMapper {
3684 const IFilterMapperVtbl* lpVtbl;
3685 };
3686 struct IFilterMapperVtbl {
3687 BEGIN_INTERFACE
3688
3689 /*** IUnknown methods ***/
3690 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
3691 IFilterMapper* This,
3692 REFIID riid,
3693 void** ppvObject);
3694
3695 ULONG (STDMETHODCALLTYPE *AddRef)(
3696 IFilterMapper* This);
3697
3698 ULONG (STDMETHODCALLTYPE *Release)(
3699 IFilterMapper* This);
3700
3701 /*** IFilterMapper methods ***/
3702 HRESULT (STDMETHODCALLTYPE *RegisterFilter)(
3703 IFilterMapper* This,
3704 CLSID clsid,
3705 LPCWSTR Name,
3706 DWORD dwMerit);
3707
3708 HRESULT (STDMETHODCALLTYPE *RegisterFilterInstance)(
3709 IFilterMapper* This,
3710 CLSID clsid,
3711 LPCWSTR Name,
3712 CLSID* MRId);
3713
3714 HRESULT (STDMETHODCALLTYPE *RegisterPin)(
3715 IFilterMapper* This,
3716 CLSID Filter,
3717 LPCWSTR Name,
3718 BOOL bRendered,
3719 BOOL bOutput,
3720 BOOL bZero,
3721 BOOL bMany,
3722 CLSID ConnectsToFilter,
3723 LPCWSTR ConnectsToPin);
3724
3725 HRESULT (STDMETHODCALLTYPE *RegisterPinType)(
3726 IFilterMapper* This,
3727 CLSID clsFilter,
3728 LPCWSTR strName,
3729 CLSID clsMajorType,
3730 CLSID clsSubType);
3731
3732 HRESULT (STDMETHODCALLTYPE *UnregisterFilter)(
3733 IFilterMapper* This,
3734 CLSID Filter);
3735
3736 HRESULT (STDMETHODCALLTYPE *UnregisterFilterInstance)(
3737 IFilterMapper* This,
3738 CLSID MRId);
3739
3740 HRESULT (STDMETHODCALLTYPE *UnregisterPin)(
3741 IFilterMapper* This,
3742 CLSID Filter,
3743 LPCWSTR Name);
3744
3745 HRESULT (STDMETHODCALLTYPE *EnumMatchingFilters)(
3746 IFilterMapper* This,
3747 IEnumRegFilters** ppEnum,
3748 DWORD dwMerit,
3749 BOOL bInputNeeded,
3750 CLSID clsInMaj,
3751 CLSID clsInSub,
3752 BOOL bRender,
3753 BOOL bOututNeeded,
3754 CLSID clsOutMaj,
3755 CLSID clsOutSub);
3756
3757 END_INTERFACE
3758 };
3759
3760 #ifdef COBJMACROS
3761 /*** IUnknown methods ***/
3762 #define IFilterMapper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
3763 #define IFilterMapper_AddRef(p) (p)->lpVtbl->AddRef(p)
3764 #define IFilterMapper_Release(p) (p)->lpVtbl->Release(p)
3765 /*** IFilterMapper methods ***/
3766 #define IFilterMapper_RegisterFilter(p,a,b,c) (p)->lpVtbl->RegisterFilter(p,a,b,c)
3767 #define IFilterMapper_RegisterFilterInstance(p,a,b,c) (p)->lpVtbl->RegisterFilterInstance(p,a,b,c)
3768 #define IFilterMapper_RegisterPin(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->RegisterPin(p,a,b,c,d,e,f,g,h)
3769 #define IFilterMapper_RegisterPinType(p,a,b,c,d) (p)->lpVtbl->RegisterPinType(p,a,b,c,d)
3770 #define IFilterMapper_UnregisterFilter(p,a) (p)->lpVtbl->UnregisterFilter(p,a)
3771 #define IFilterMapper_UnregisterFilterInstance(p,a) (p)->lpVtbl->UnregisterFilterInstance(p,a)
3772 #define IFilterMapper_UnregisterPin(p,a,b) (p)->lpVtbl->UnregisterPin(p,a,b)
3773 #define IFilterMapper_EnumMatchingFilters(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->EnumMatchingFilters(p,a,b,c,d,e,f,g,h,i)
3774 #endif
3775
3776 #endif
3777
3778 #define IFilterMapper_METHODS \
3779 /*** IUnknown methods ***/ \
3780 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
3781 STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
3782 STDMETHOD_(ULONG,Release)(THIS) PURE; \
3783 /*** IFilterMapper methods ***/ \
3784 STDMETHOD_(HRESULT,RegisterFilter)(THIS_ CLSID clsid, LPCWSTR Name, DWORD dwMerit) PURE; \
3785 STDMETHOD_(HRESULT,RegisterFilterInstance)(THIS_ CLSID clsid, LPCWSTR Name, CLSID* MRId) PURE; \
3786 STDMETHOD_(HRESULT,RegisterPin)(THIS_ CLSID Filter, LPCWSTR Name, BOOL bRendered, BOOL bOutput, BOOL bZero, BOOL bMany, CLSID ConnectsToFilter, LPCWSTR ConnectsToPin) PURE; \
3787 STDMETHOD_(HRESULT,RegisterPinType)(THIS_ CLSID clsFilter, LPCWSTR strName, CLSID clsMajorType, CLSID clsSubType) PURE; \
3788 STDMETHOD_(HRESULT,UnregisterFilter)(THIS_ CLSID Filter) PURE; \
3789 STDMETHOD_(HRESULT,UnregisterFilterInstance)(THIS_ CLSID MRId) PURE; \
3790 STDMETHOD_(HRESULT,UnregisterPin)(THIS_ CLSID Filter, LPCWSTR Name) PURE; \
3791 STDMETHOD_(HRESULT,EnumMatchingFilters)(THIS_ IEnumRegFilters** ppEnum, DWORD dwMerit, BOOL bInputNeeded, CLSID clsInMaj, CLSID clsInSub, BOOL bRender, BOOL bOututNeeded, CLSID clsOutMaj, CLSID clsOutSub) PURE;
3792
3793 HRESULT CALLBACK IFilterMapper_RegisterFilter_Proxy(
3794 IFilterMapper* This,
3795 CLSID clsid,
3796 LPCWSTR Name,
3797 DWORD dwMerit);
3798 void __RPC_STUB IFilterMapper_RegisterFilter_Stub(
3799 struct IRpcStubBuffer* This,
3800 struct IRpcChannelBuffer* pRpcChannelBuffer,
3801 PRPC_MESSAGE pRpcMessage,
3802 DWORD* pdwStubPhase);
3803 HRESULT CALLBACK IFilterMapper_RegisterFilterInstance_Proxy(
3804 IFilterMapper* This,
3805 CLSID clsid,
3806 LPCWSTR Name,
3807 CLSID* MRId);
3808 void __RPC_STUB IFilterMapper_RegisterFilterInstance_Stub(
3809 struct IRpcStubBuffer* This,
3810 struct IRpcChannelBuffer* pRpcChannelBuffer,
3811 PRPC_MESSAGE pRpcMessage,
3812 DWORD* pdwStubPhase);
3813 HRESULT CALLBACK IFilterMapper_RegisterPin_Proxy(
3814 IFilterMapper* This,
3815 CLSID Filter,
3816 LPCWSTR Name,
3817 BOOL bRendered,
3818 BOOL bOutput,
3819 BOOL bZero,
3820 BOOL bMany,
3821 CLSID ConnectsToFilter,
3822 LPCWSTR ConnectsToPin);
3823 void __RPC_STUB IFilterMapper_RegisterPin_Stub(
3824 struct IRpcStubBuffer* This,
3825 struct IRpcChannelBuffer* pRpcChannelBuffer,
3826 PRPC_MESSAGE pRpcMessage,
3827 DWORD* pdwStubPhase);
3828 HRESULT CALLBACK IFilterMapper_RegisterPinType_Proxy(
3829 IFilterMapper* This,
3830 CLSID clsFilter,
3831 LPCWSTR strName,
3832 CLSID clsMajorType,
3833 CLSID clsSubType);
3834 void __RPC_STUB IFilterMapper_RegisterPinType_Stub(
3835 struct IRpcStubBuffer* This,
3836 struct IRpcChannelBuffer* pRpcChannelBuffer,
3837 PRPC_MESSAGE pRpcMessage,
3838 DWORD* pdwStubPhase);
3839 HRESULT CALLBACK IFilterMapper_UnregisterFilter_Proxy(
3840 IFilterMapper* This,
3841 CLSID Filter);
3842 void __RPC_STUB IFilterMapper_UnregisterFilter_Stub(
3843 struct IRpcStubBuffer* This,
3844 struct IRpcChannelBuffer* pRpcChannelBuffer,
3845 PRPC_MESSAGE pRpcMessage,
3846 DWORD* pdwStubPhase);
3847 HRESULT CALLBACK IFilterMapper_UnregisterFilterInstance_Proxy(
3848 IFilterMapper* This,
3849 CLSID MRId);
3850 void __RPC_STUB IFilterMapper_UnregisterFilterInstance_Stub(
3851 struct IRpcStubBuffer* This,
3852 struct IRpcChannelBuffer* pRpcChannelBuffer,
3853 PRPC_MESSAGE pRpcMessage,
3854 DWORD* pdwStubPhase);
3855 HRESULT CALLBACK IFilterMapper_UnregisterPin_Proxy(
3856 IFilterMapper* This,
3857 CLSID Filter,
3858 LPCWSTR Name);
3859 void __RPC_STUB IFilterMapper_UnregisterPin_Stub(
3860 struct IRpcStubBuffer* This,
3861 struct IRpcChannelBuffer* pRpcChannelBuffer,
3862 PRPC_MESSAGE pRpcMessage,
3863 DWORD* pdwStubPhase);
3864 HRESULT CALLBACK IFilterMapper_EnumMatchingFilters_Proxy(
3865 IFilterMapper* This,
3866 IEnumRegFilters** ppEnum,
3867 DWORD dwMerit,
3868 BOOL bInputNeeded,
3869 CLSID clsInMaj,
3870 CLSID clsInSub,
3871 BOOL bRender,
3872 BOOL bOututNeeded,
3873 CLSID clsOutMaj,
3874 CLSID clsOutSub);
3875 void __RPC_STUB IFilterMapper_EnumMatchingFilters_Stub(
3876 struct IRpcStubBuffer* This,
3877 struct IRpcChannelBuffer* pRpcChannelBuffer,
3878 PRPC_MESSAGE pRpcMessage,
3879 DWORD* pdwStubPhase);
3880
3881 #endif /* __IFilterMapper_INTERFACE_DEFINED__ */
3882
3883 typedef struct {
3884 const CLSID *clsMajorType;
3885 const CLSID *clsMinorType;
3886 } REGPINTYPES;
3887
3888 typedef struct {
3889 LPWSTR strName;
3890 BOOL bRendered;
3891 BOOL bOutput;
3892 BOOL bZero;
3893 BOOL bMany;
3894 const CLSID *clsConnectsToFilter;
3895 const WCHAR *strConnectsToPin;
3896 UINT nMediaTypes;
3897 const REGPINTYPES *lpMediaType;
3898 } REGFILTERPINS;
3899
3900 typedef struct {
3901 CLSID clsMedium;
3902 DWORD dw1;
3903 DWORD dw2;
3904 } REGPINMEDIUM;
3905
3906 enum {
3907 REG_PINFLAG_B_ZERO = 0x1,
3908 REG_PINFLAG_B_RENDERER = 0x2,
3909 REG_PINFLAG_B_MANY = 0x4,
3910 REG_PINFLAG_B_OUTPUT = 0x8
3911 };
3912
3913 typedef struct {
3914 DWORD dwFlags;
3915 UINT cInstances;
3916 UINT nMediaTypes;
3917 const REGPINTYPES *lpMediaType;
3918 UINT nMediums;
3919 const REGPINMEDIUM *lpMedium;
3920 const CLSID *clsPinCategory;
3921 } REGFILTERPINS2;
3922
3923 typedef struct {
3924 DWORD dwVersion;
3925 DWORD dwMerit;
3926 union {
3927 struct {
3928 ULONG cPins;
3929 const REGFILTERPINS *rgPins;
3930 } DUMMYSTRUCTNAME;
3931 struct {
3932 ULONG cPins2;
3933 const REGFILTERPINS2 *rgPins2;
3934 } DUMMYSTRUCTNAME1;
3935 } DUMMYUNIONNAME;
3936 } REGFILTER2;
3937
3938 /*****************************************************************************
3939 * IFilterMapper2 interface
3940 */
3941 #ifndef __IFilterMapper2_INTERFACE_DEFINED__
3942 #define __IFilterMapper2_INTERFACE_DEFINED__
3943
3944 DEFINE_GUID(IID_IFilterMapper2, 0xb79bb0b0, 0x33c1, 0x11d1, 0xab,0xe1, 0x00,0xa0,0xc9,0x05,0xf3,0x75);
3945 #if defined(__cplusplus) && !defined(CINTERFACE)
3946 struct IFilterMapper2 : public IUnknown
3947 {
3948 virtual HRESULT STDMETHODCALLTYPE CreateCategory(
3949 REFCLSID clsidCategory,
3950 DWORD dwCategoryMerit,
3951 LPCWSTR Description) = 0;
3952
3953 virtual HRESULT STDMETHODCALLTYPE UnregisterFilter(
3954 const CLSID* pclsidCategory,
3955 const OLECHAR* szInstance,
3956 REFCLSID Filter) = 0;
3957
3958 virtual HRESULT STDMETHODCALLTYPE RegisterFilter(
3959 REFCLSID clsidFilter,
3960 LPCWSTR Name,
3961 IMoniker** ppMoniker,
3962 const CLSID* pclsidCategory,
3963 const OLECHAR* szInstance,
3964 const REGFILTER2* prf2) = 0;
3965
3966 virtual HRESULT STDMETHODCALLTYPE EnumMatchingFilters(
3967 IEnumMoniker** ppEnum,
3968 DWORD dwFlags,
3969 BOOL bExactMatch,
3970 DWORD dwMerit,
3971 BOOL bInputNeeded,
3972 DWORD cInputTypes,
3973 const GUID* pInputTypes,
3974 const REGPINMEDIUM* pMedIn,
3975 const CLSID* pPinCategoryIn,
3976 BOOL bRender,
3977 BOOL bOutputNeeded,
3978 DWORD cOutputTypes,
3979 const GUID* pOutputTypes,
3980 const REGPINMEDIUM* pMedOut,
3981 const CLSID* pPinCategoryOut) = 0;
3982
3983 };
3984 #else
3985 typedef struct IFilterMapper2Vtbl IFilterMapper2Vtbl;
3986 struct IFilterMapper2 {
3987 const IFilterMapper2Vtbl* lpVtbl;
3988 };
3989 struct IFilterMapper2Vtbl {
3990 BEGIN_INTERFACE
3991
3992 /*** IUnknown methods ***/
3993 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
3994 IFilterMapper2* This,
3995 REFIID riid,
3996 void** ppvObject);
3997
3998 ULONG (STDMETHODCALLTYPE *AddRef)(
3999 IFilterMapper2* This);
4000
4001 ULONG (STDMETHODCALLTYPE *Release)(
4002 IFilterMapper2* This);
4003
4004 /*** IFilterMapper2 methods ***/
4005 HRESULT (STDMETHODCALLTYPE *CreateCategory)(
4006 IFilterMapper2* This,
4007 REFCLSID clsidCategory,
4008 DWORD dwCategoryMerit,
4009 LPCWSTR Description);
4010
4011 HRESULT (STDMETHODCALLTYPE *UnregisterFilter)(
4012 IFilterMapper2* This,
4013 const CLSID* pclsidCategory,
4014 const OLECHAR* szInstance,
4015 REFCLSID Filter);
4016
4017 HRESULT (STDMETHODCALLTYPE *RegisterFilter)(
4018 IFilterMapper2* This,
4019 REFCLSID clsidFilter,
4020 LPCWSTR Name,
4021 IMoniker** ppMoniker,
4022 const CLSID* pclsidCategory,
4023 const OLECHAR* szInstance,
4024 const REGFILTER2* prf2);
4025
4026 HRESULT (STDMETHODCALLTYPE *EnumMatchingFilters)(
4027 IFilterMapper2* This,
4028 IEnumMoniker** ppEnum,
4029 DWORD dwFlags,
4030 BOOL bExactMatch,
4031 DWORD dwMerit,
4032 BOOL bInputNeeded,
4033 DWORD cInputTypes,
4034 const GUID* pInputTypes,
4035 const REGPINMEDIUM* pMedIn,
4036 const CLSID* pPinCategoryIn,
4037 BOOL bRender,
4038 BOOL bOutputNeeded,
4039 DWORD cOutputTypes,
4040 const GUID* pOutputTypes,
4041 const REGPINMEDIUM* pMedOut,
4042 const CLSID* pPinCategoryOut);
4043
4044 END_INTERFACE
4045 };
4046
4047 #ifdef COBJMACROS
4048 /*** IUnknown methods ***/
4049 #define IFilterMapper2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)