1 /*** Autogenerated by WIDL 0.1 from strmif.idl - Do not edit ***/
5 #ifndef __WIDL_STRMIF_H
6 #define __WIDL_STRMIF_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
;
21 /*****************************************************************************
22 * ICreateDevEnum interface
24 #ifndef __ICreateDevEnum_INTERFACE_DEFINED__
25 #define __ICreateDevEnum_INTERFACE_DEFINED__
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
31 virtual HRESULT STDMETHODCALLTYPE
CreateClassEnumerator(
32 REFCLSID clsidDeviceClass
,
33 IEnumMoniker
** ppEnumMoniker
,
38 typedef struct ICreateDevEnumVtbl ICreateDevEnumVtbl
;
39 struct ICreateDevEnum
{
40 const ICreateDevEnumVtbl
* lpVtbl
;
42 struct ICreateDevEnumVtbl
{
45 /*** IUnknown methods ***/
46 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
51 ULONG (STDMETHODCALLTYPE
*AddRef
)(
52 ICreateDevEnum
* This
);
54 ULONG (STDMETHODCALLTYPE
*Release
)(
55 ICreateDevEnum
* This
);
57 /*** ICreateDevEnum methods ***/
58 HRESULT (STDMETHODCALLTYPE
*CreateClassEnumerator
)(
60 REFCLSID clsidDeviceClass
,
61 IEnumMoniker
** ppEnumMoniker
,
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)
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;
86 HRESULT CALLBACK
ICreateDevEnum_CreateClassEnumerator_Proxy(
88 REFCLSID clsidDeviceClass
,
89 IEnumMoniker
** ppEnumMoniker
,
91 void __RPC_STUB
ICreateDevEnum_CreateClassEnumerator_Stub(
92 struct IRpcStubBuffer
* This
,
93 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
94 PRPC_MESSAGE pRpcMessage
,
97 #endif /* __ICreateDevEnum_INTERFACE_DEFINED__ */
99 #define CHARS_IN_GUID 39
101 typedef struct _AMMediaType
{
104 BOOL bFixedSizeSamples
;
105 BOOL bTemporalCompression
;
113 typedef enum _PinDirection
{
118 #define MAX_PIN_NAME 128
119 #define MAX_FILTER_NAME 128
120 typedef LONGLONG REFERENCE_TIME
;
122 typedef DOUBLE REFTIME
;
124 typedef DWORD_PTR HSEMAPHORE
;
126 typedef DWORD_PTR HEVENT
;
128 typedef struct _AllocatorProperties
{
133 } ALLOCATOR_PROPERTIES
;
135 #ifndef __IAMovieSetup_FWD_DEFINED__
136 #define __IAMovieSetup_FWD_DEFINED__
137 typedef struct IAMovieSetup IAMovieSetup
;
140 #ifndef __IEnumFilters_FWD_DEFINED__
141 #define __IEnumFilters_FWD_DEFINED__
142 typedef struct IEnumFilters IEnumFilters
;
145 #ifndef __IEnumMediaTypes_FWD_DEFINED__
146 #define __IEnumMediaTypes_FWD_DEFINED__
147 typedef struct IEnumMediaTypes IEnumMediaTypes
;
150 #ifndef __IEnumPins_FWD_DEFINED__
151 #define __IEnumPins_FWD_DEFINED__
152 typedef struct IEnumPins IEnumPins
;
155 #ifndef __IBaseFilter_FWD_DEFINED__
156 #define __IBaseFilter_FWD_DEFINED__
157 typedef struct IBaseFilter IBaseFilter
;
160 #ifndef __IFilterGraph_FWD_DEFINED__
161 #define __IFilterGraph_FWD_DEFINED__
162 typedef struct IFilterGraph IFilterGraph
;
165 #ifndef __IMediaFilter_FWD_DEFINED__
166 #define __IMediaFilter_FWD_DEFINED__
167 typedef struct IMediaFilter IMediaFilter
;
170 #ifndef __IMediaSample_FWD_DEFINED__
171 #define __IMediaSample_FWD_DEFINED__
172 typedef struct IMediaSample IMediaSample
;
175 #ifndef __IMemAllocator_FWD_DEFINED__
176 #define __IMemAllocator_FWD_DEFINED__
177 typedef struct IMemAllocator IMemAllocator
;
180 #ifndef __IMemAllocatorCallbackTemp_FWD_DEFINED__
181 #define __IMemAllocatorCallbackTemp_FWD_DEFINED__
182 typedef struct IMemAllocatorCallbackTemp IMemAllocatorCallbackTemp
;
185 #ifndef __IMemAllocatorNotifyCallbackTemp_FWD_DEFINED__
186 #define __IMemAllocatorNotifyCallbackTemp_FWD_DEFINED__
187 typedef struct IMemAllocatorNotifyCallbackTemp IMemAllocatorNotifyCallbackTemp
;
190 #ifndef __IMemInputPin_FWD_DEFINED__
191 #define __IMemInputPin_FWD_DEFINED__
192 typedef struct IMemInputPin IMemInputPin
;
195 #ifndef __IPin_FWD_DEFINED__
196 #define __IPin_FWD_DEFINED__
197 typedef struct IPin IPin
;
200 #ifndef __IReferenceClock_FWD_DEFINED__
201 #define __IReferenceClock_FWD_DEFINED__
202 typedef struct IReferenceClock IReferenceClock
;
205 typedef struct _PinInfo
{
206 IBaseFilter
*pFilter
;
211 /*****************************************************************************
214 #ifndef __IPin_INTERFACE_DEFINED__
215 #define __IPin_INTERFACE_DEFINED__
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
221 virtual HRESULT STDMETHODCALLTYPE
Connect(
223 const AM_MEDIA_TYPE
* pmt
) = 0;
225 virtual HRESULT STDMETHODCALLTYPE
ReceiveConnection(
227 const AM_MEDIA_TYPE
* pmt
) = 0;
229 virtual HRESULT STDMETHODCALLTYPE
Disconnect(
232 virtual HRESULT STDMETHODCALLTYPE
ConnectedTo(
235 virtual HRESULT STDMETHODCALLTYPE
ConnectionMediaType(
236 AM_MEDIA_TYPE
* pmt
) = 0;
238 virtual HRESULT STDMETHODCALLTYPE
QueryPinInfo(
239 PIN_INFO
* pInfo
) = 0;
241 virtual HRESULT STDMETHODCALLTYPE
QueryDirection(
242 PIN_DIRECTION
* pPinDir
) = 0;
244 virtual HRESULT STDMETHODCALLTYPE
QueryId(
247 virtual HRESULT STDMETHODCALLTYPE
QueryAccept(
248 const AM_MEDIA_TYPE
* pmt
) = 0;
250 virtual HRESULT STDMETHODCALLTYPE
EnumMediaTypes(
251 IEnumMediaTypes
** ppEnum
) = 0;
253 virtual HRESULT STDMETHODCALLTYPE
QueryInternalConnections(
257 virtual HRESULT STDMETHODCALLTYPE
EndOfStream(
260 virtual HRESULT STDMETHODCALLTYPE
BeginFlush(
263 virtual HRESULT STDMETHODCALLTYPE
EndFlush(
266 virtual HRESULT STDMETHODCALLTYPE
NewSegment(
267 REFERENCE_TIME tStart
,
268 REFERENCE_TIME tStop
,
273 typedef struct IPinVtbl IPinVtbl
;
275 const IPinVtbl
* lpVtbl
;
280 /*** IUnknown methods ***/
281 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
286 ULONG (STDMETHODCALLTYPE
*AddRef
)(
289 ULONG (STDMETHODCALLTYPE
*Release
)(
292 /*** IPin methods ***/
293 HRESULT (STDMETHODCALLTYPE
*Connect
)(
296 const AM_MEDIA_TYPE
* pmt
);
298 HRESULT (STDMETHODCALLTYPE
*ReceiveConnection
)(
301 const AM_MEDIA_TYPE
* pmt
);
303 HRESULT (STDMETHODCALLTYPE
*Disconnect
)(
306 HRESULT (STDMETHODCALLTYPE
*ConnectedTo
)(
310 HRESULT (STDMETHODCALLTYPE
*ConnectionMediaType
)(
314 HRESULT (STDMETHODCALLTYPE
*QueryPinInfo
)(
318 HRESULT (STDMETHODCALLTYPE
*QueryDirection
)(
320 PIN_DIRECTION
* pPinDir
);
322 HRESULT (STDMETHODCALLTYPE
*QueryId
)(
326 HRESULT (STDMETHODCALLTYPE
*QueryAccept
)(
328 const AM_MEDIA_TYPE
* pmt
);
330 HRESULT (STDMETHODCALLTYPE
*EnumMediaTypes
)(
332 IEnumMediaTypes
** ppEnum
);
334 HRESULT (STDMETHODCALLTYPE
*QueryInternalConnections
)(
339 HRESULT (STDMETHODCALLTYPE
*EndOfStream
)(
342 HRESULT (STDMETHODCALLTYPE
*BeginFlush
)(
345 HRESULT (STDMETHODCALLTYPE
*EndFlush
)(
348 HRESULT (STDMETHODCALLTYPE
*NewSegment
)(
350 REFERENCE_TIME tStart
,
351 REFERENCE_TIME tStop
,
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)
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;
404 HRESULT CALLBACK
IPin_Connect_Proxy(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
517 REFERENCE_TIME tStart
,
518 REFERENCE_TIME tStop
,
520 void __RPC_STUB
IPin_NewSegment_Stub(
521 struct IRpcStubBuffer
* This
,
522 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
523 PRPC_MESSAGE pRpcMessage
,
524 DWORD
* pdwStubPhase
);
526 #endif /* __IPin_INTERFACE_DEFINED__ */
530 /*****************************************************************************
531 * IEnumPins interface
533 #ifndef __IEnumPins_INTERFACE_DEFINED__
534 #define __IEnumPins_INTERFACE_DEFINED__
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
540 virtual HRESULT STDMETHODCALLTYPE
Next(
543 ULONG
* pcFetched
) = 0;
545 virtual HRESULT STDMETHODCALLTYPE
Skip(
548 virtual HRESULT STDMETHODCALLTYPE
Reset(
551 virtual HRESULT STDMETHODCALLTYPE
Clone(
552 IEnumPins
** ppEnum
) = 0;
556 typedef struct IEnumPinsVtbl IEnumPinsVtbl
;
558 const IEnumPinsVtbl
* lpVtbl
;
560 struct IEnumPinsVtbl
{
563 /*** IUnknown methods ***/
564 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
569 ULONG (STDMETHODCALLTYPE
*AddRef
)(
572 ULONG (STDMETHODCALLTYPE
*Release
)(
575 /*** IEnumPins methods ***/
576 HRESULT (STDMETHODCALLTYPE
*Next
)(
582 HRESULT (STDMETHODCALLTYPE
*Skip
)(
586 HRESULT (STDMETHODCALLTYPE
*Reset
)(
589 HRESULT (STDMETHODCALLTYPE
*Clone
)(
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)
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;
621 HRESULT CALLBACK
IEnumPins_Next_Proxy(
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(
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(
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(
649 void __RPC_STUB
IEnumPins_Clone_Stub(
650 struct IRpcStubBuffer
* This
,
651 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
652 PRPC_MESSAGE pRpcMessage
,
653 DWORD
* pdwStubPhase
);
655 #endif /* __IEnumPins_INTERFACE_DEFINED__ */
657 typedef IEnumPins
*PENUMPINS
;
659 /*****************************************************************************
660 * IEnumMediaTypes interface
662 #ifndef __IEnumMediaTypes_INTERFACE_DEFINED__
663 #define __IEnumMediaTypes_INTERFACE_DEFINED__
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
669 virtual HRESULT STDMETHODCALLTYPE
Next(
671 AM_MEDIA_TYPE
** ppMediaTypes
,
672 ULONG
* pcFetched
) = 0;
674 virtual HRESULT STDMETHODCALLTYPE
Skip(
675 ULONG cMediaTypes
) = 0;
677 virtual HRESULT STDMETHODCALLTYPE
Reset(
680 virtual HRESULT STDMETHODCALLTYPE
Clone(
681 IEnumMediaTypes
** ppEnum
) = 0;
685 typedef struct IEnumMediaTypesVtbl IEnumMediaTypesVtbl
;
686 struct IEnumMediaTypes
{
687 const IEnumMediaTypesVtbl
* lpVtbl
;
689 struct IEnumMediaTypesVtbl
{
692 /*** IUnknown methods ***/
693 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
694 IEnumMediaTypes
* This
,
698 ULONG (STDMETHODCALLTYPE
*AddRef
)(
699 IEnumMediaTypes
* This
);
701 ULONG (STDMETHODCALLTYPE
*Release
)(
702 IEnumMediaTypes
* This
);
704 /*** IEnumMediaTypes methods ***/
705 HRESULT (STDMETHODCALLTYPE
*Next
)(
706 IEnumMediaTypes
* This
,
708 AM_MEDIA_TYPE
** ppMediaTypes
,
711 HRESULT (STDMETHODCALLTYPE
*Skip
)(
712 IEnumMediaTypes
* This
,
715 HRESULT (STDMETHODCALLTYPE
*Reset
)(
716 IEnumMediaTypes
* This
);
718 HRESULT (STDMETHODCALLTYPE
*Clone
)(
719 IEnumMediaTypes
* This
,
720 IEnumMediaTypes
** ppEnum
);
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)
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;
750 HRESULT CALLBACK
IEnumMediaTypes_Next_Proxy(
751 IEnumMediaTypes
* This
,
753 AM_MEDIA_TYPE
** ppMediaTypes
,
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
,
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
);
784 #endif /* __IEnumMediaTypes_INTERFACE_DEFINED__ */
786 typedef IEnumMediaTypes
*PENUMMEDIATYPES
;
788 /*****************************************************************************
789 * IFilterGraph interface
791 #ifndef __IFilterGraph_INTERFACE_DEFINED__
792 #define __IFilterGraph_INTERFACE_DEFINED__
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
798 virtual HRESULT STDMETHODCALLTYPE
AddFilter(
799 IBaseFilter
* pFilter
,
802 virtual HRESULT STDMETHODCALLTYPE
RemoveFilter(
803 IBaseFilter
* pFilter
) = 0;
805 virtual HRESULT STDMETHODCALLTYPE
EnumFilters(
806 IEnumFilters
** ppEnum
) = 0;
808 virtual HRESULT STDMETHODCALLTYPE
FindFilterByName(
810 IBaseFilter
** ppFilter
) = 0;
812 virtual HRESULT STDMETHODCALLTYPE
ConnectDirect(
815 const AM_MEDIA_TYPE
* pmt
) = 0;
817 virtual HRESULT STDMETHODCALLTYPE
Reconnect(
820 virtual HRESULT STDMETHODCALLTYPE
Disconnect(
823 virtual HRESULT STDMETHODCALLTYPE
SetDefaultSyncSource(
828 typedef struct IFilterGraphVtbl IFilterGraphVtbl
;
829 struct IFilterGraph
{
830 const IFilterGraphVtbl
* lpVtbl
;
832 struct IFilterGraphVtbl
{
835 /*** IUnknown methods ***/
836 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
841 ULONG (STDMETHODCALLTYPE
*AddRef
)(
844 ULONG (STDMETHODCALLTYPE
*Release
)(
847 /*** IFilterGraph methods ***/
848 HRESULT (STDMETHODCALLTYPE
*AddFilter
)(
850 IBaseFilter
* pFilter
,
853 HRESULT (STDMETHODCALLTYPE
*RemoveFilter
)(
855 IBaseFilter
* pFilter
);
857 HRESULT (STDMETHODCALLTYPE
*EnumFilters
)(
859 IEnumFilters
** ppEnum
);
861 HRESULT (STDMETHODCALLTYPE
*FindFilterByName
)(
864 IBaseFilter
** ppFilter
);
866 HRESULT (STDMETHODCALLTYPE
*ConnectDirect
)(
870 const AM_MEDIA_TYPE
* pmt
);
872 HRESULT (STDMETHODCALLTYPE
*Reconnect
)(
876 HRESULT (STDMETHODCALLTYPE
*Disconnect
)(
880 HRESULT (STDMETHODCALLTYPE
*SetDefaultSyncSource
)(
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)
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;
919 HRESULT CALLBACK
IFilterGraph_AddFilter_Proxy(
921 IBaseFilter
* pFilter
,
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(
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(
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(
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(
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(
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(
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(
981 void __RPC_STUB
IFilterGraph_SetDefaultSyncSource_Stub(
982 struct IRpcStubBuffer
* This
,
983 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
984 PRPC_MESSAGE pRpcMessage
,
985 DWORD
* pdwStubPhase
);
987 #endif /* __IFilterGraph_INTERFACE_DEFINED__ */
989 typedef IFilterGraph
*PFILTERGRAPH
;
991 /*****************************************************************************
992 * IEnumFilters interface
994 #ifndef __IEnumFilters_INTERFACE_DEFINED__
995 #define __IEnumFilters_INTERFACE_DEFINED__
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
1001 virtual HRESULT STDMETHODCALLTYPE
Next(
1003 IBaseFilter
** ppFilter
,
1004 ULONG
* pcFetched
) = 0;
1006 virtual HRESULT STDMETHODCALLTYPE
Skip(
1007 ULONG cFilters
) = 0;
1009 virtual HRESULT STDMETHODCALLTYPE
Reset(
1012 virtual HRESULT STDMETHODCALLTYPE
Clone(
1013 IEnumFilters
** ppEnum
) = 0;
1017 typedef struct IEnumFiltersVtbl IEnumFiltersVtbl
;
1018 struct IEnumFilters
{
1019 const IEnumFiltersVtbl
* lpVtbl
;
1021 struct IEnumFiltersVtbl
{
1024 /*** IUnknown methods ***/
1025 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
1030 ULONG (STDMETHODCALLTYPE
*AddRef
)(
1031 IEnumFilters
* This
);
1033 ULONG (STDMETHODCALLTYPE
*Release
)(
1034 IEnumFilters
* This
);
1036 /*** IEnumFilters methods ***/
1037 HRESULT (STDMETHODCALLTYPE
*Next
)(
1040 IBaseFilter
** ppFilter
,
1043 HRESULT (STDMETHODCALLTYPE
*Skip
)(
1047 HRESULT (STDMETHODCALLTYPE
*Reset
)(
1048 IEnumFilters
* This
);
1050 HRESULT (STDMETHODCALLTYPE
*Clone
)(
1052 IEnumFilters
** ppEnum
);
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)
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;
1082 HRESULT CALLBACK
IEnumFilters_Next_Proxy(
1085 IBaseFilter
** ppFilter
,
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(
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(
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
);
1116 #endif /* __IEnumFilters_INTERFACE_DEFINED__ */
1118 typedef IEnumFilters
*PENUMFILTERS
;
1120 typedef enum _FilterState
{
1126 /*****************************************************************************
1127 * IMediaFilter interface
1129 #ifndef __IMediaFilter_INTERFACE_DEFINED__
1130 #define __IMediaFilter_INTERFACE_DEFINED__
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
1136 virtual HRESULT STDMETHODCALLTYPE
Stop(
1139 virtual HRESULT STDMETHODCALLTYPE
Pause(
1142 virtual HRESULT STDMETHODCALLTYPE
Run(
1143 REFERENCE_TIME tStart
) = 0;
1145 virtual HRESULT STDMETHODCALLTYPE
GetState(
1146 DWORD dwMilliSecsTimeout
,
1147 FILTER_STATE
* State
) = 0;
1149 virtual HRESULT STDMETHODCALLTYPE
SetSyncSource(
1150 IReferenceClock
* pClock
) = 0;
1152 virtual HRESULT STDMETHODCALLTYPE
GetSyncSource(
1153 IReferenceClock
** pClock
) = 0;
1157 typedef struct IMediaFilterVtbl IMediaFilterVtbl
;
1158 struct IMediaFilter
{
1159 const IMediaFilterVtbl
* lpVtbl
;
1161 struct IMediaFilterVtbl
{
1164 /*** IUnknown methods ***/
1165 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
1170 ULONG (STDMETHODCALLTYPE
*AddRef
)(
1171 IMediaFilter
* This
);
1173 ULONG (STDMETHODCALLTYPE
*Release
)(
1174 IMediaFilter
* This
);
1176 /*** IPersist methods ***/
1177 HRESULT (STDMETHODCALLTYPE
*GetClassID
)(
1181 /*** IMediaFilter methods ***/
1182 HRESULT (STDMETHODCALLTYPE
*Stop
)(
1183 IMediaFilter
* This
);
1185 HRESULT (STDMETHODCALLTYPE
*Pause
)(
1186 IMediaFilter
* This
);
1188 HRESULT (STDMETHODCALLTYPE
*Run
)(
1190 REFERENCE_TIME tStart
);
1192 HRESULT (STDMETHODCALLTYPE
*GetState
)(
1194 DWORD dwMilliSecsTimeout
,
1195 FILTER_STATE
* State
);
1197 HRESULT (STDMETHODCALLTYPE
*SetSyncSource
)(
1199 IReferenceClock
* pClock
);
1201 HRESULT (STDMETHODCALLTYPE
*GetSyncSource
)(
1203 IReferenceClock
** pClock
);
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)
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;
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(
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(
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(
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(
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
);
1289 #endif /* __IMediaFilter_INTERFACE_DEFINED__ */
1291 typedef IMediaFilter
*PMEDIAFILTER
;
1293 typedef struct _FilterInfo
{
1295 IFilterGraph
*pGraph
;
1298 /*****************************************************************************
1299 * IBaseFilter interface
1301 #ifndef __IBaseFilter_INTERFACE_DEFINED__
1302 #define __IBaseFilter_INTERFACE_DEFINED__
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
1308 virtual HRESULT STDMETHODCALLTYPE
EnumPins(
1309 IEnumPins
** ppEnum
) = 0;
1311 virtual HRESULT STDMETHODCALLTYPE
FindPin(
1315 virtual HRESULT STDMETHODCALLTYPE
QueryFilterInfo(
1316 FILTER_INFO
* pInfo
) = 0;
1318 virtual HRESULT STDMETHODCALLTYPE
JoinFilterGraph(
1319 IFilterGraph
* pGraph
,
1322 virtual HRESULT STDMETHODCALLTYPE
QueryVendorInfo(
1323 LPWSTR
* pVendorInfo
) = 0;
1327 typedef struct IBaseFilterVtbl IBaseFilterVtbl
;
1328 struct IBaseFilter
{
1329 const IBaseFilterVtbl
* lpVtbl
;
1331 struct IBaseFilterVtbl
{
1334 /*** IUnknown methods ***/
1335 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
1340 ULONG (STDMETHODCALLTYPE
*AddRef
)(
1343 ULONG (STDMETHODCALLTYPE
*Release
)(
1346 /*** IPersist methods ***/
1347 HRESULT (STDMETHODCALLTYPE
*GetClassID
)(
1351 /*** IMediaFilter methods ***/
1352 HRESULT (STDMETHODCALLTYPE
*Stop
)(
1355 HRESULT (STDMETHODCALLTYPE
*Pause
)(
1358 HRESULT (STDMETHODCALLTYPE
*Run
)(
1360 REFERENCE_TIME tStart
);
1362 HRESULT (STDMETHODCALLTYPE
*GetState
)(
1364 DWORD dwMilliSecsTimeout
,
1365 FILTER_STATE
* State
);
1367 HRESULT (STDMETHODCALLTYPE
*SetSyncSource
)(
1369 IReferenceClock
* pClock
);
1371 HRESULT (STDMETHODCALLTYPE
*GetSyncSource
)(
1373 IReferenceClock
** pClock
);
1375 /*** IBaseFilter methods ***/
1376 HRESULT (STDMETHODCALLTYPE
*EnumPins
)(
1378 IEnumPins
** ppEnum
);
1380 HRESULT (STDMETHODCALLTYPE
*FindPin
)(
1385 HRESULT (STDMETHODCALLTYPE
*QueryFilterInfo
)(
1387 FILTER_INFO
* pInfo
);
1389 HRESULT (STDMETHODCALLTYPE
*JoinFilterGraph
)(
1391 IFilterGraph
* pGraph
,
1394 HRESULT (STDMETHODCALLTYPE
*QueryVendorInfo
)(
1396 LPWSTR
* pVendorInfo
);
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)
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;
1446 HRESULT CALLBACK
IBaseFilter_EnumPins_Proxy(
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(
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(
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(
1473 IFilterGraph
* pGraph
,
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(
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
);
1489 #endif /* __IBaseFilter_INTERFACE_DEFINED__ */
1491 typedef IBaseFilter
*PFILTER
;
1493 /*****************************************************************************
1494 * IReferenceClock interface
1496 #ifndef __IReferenceClock_INTERFACE_DEFINED__
1497 #define __IReferenceClock_INTERFACE_DEFINED__
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
1503 virtual HRESULT STDMETHODCALLTYPE
GetTime(
1504 REFERENCE_TIME
* pTime
) = 0;
1506 virtual HRESULT STDMETHODCALLTYPE
AdviseTime(
1507 REFERENCE_TIME baseTime
,
1508 REFERENCE_TIME streamTime
,
1510 DWORD_PTR
* pdwAdviseCookie
) = 0;
1512 virtual HRESULT STDMETHODCALLTYPE
AdvisePeriodic(
1513 REFERENCE_TIME startTime
,
1514 REFERENCE_TIME periodTime
,
1515 HSEMAPHORE hSemaphore
,
1516 DWORD_PTR
* pdwAdviseCookie
) = 0;
1518 virtual HRESULT STDMETHODCALLTYPE
Unadvise(
1519 DWORD_PTR dwAdviseCookie
) = 0;
1523 typedef struct IReferenceClockVtbl IReferenceClockVtbl
;
1524 struct IReferenceClock
{
1525 const IReferenceClockVtbl
* lpVtbl
;
1527 struct IReferenceClockVtbl
{
1530 /*** IUnknown methods ***/
1531 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
1532 IReferenceClock
* This
,
1536 ULONG (STDMETHODCALLTYPE
*AddRef
)(
1537 IReferenceClock
* This
);
1539 ULONG (STDMETHODCALLTYPE
*Release
)(
1540 IReferenceClock
* This
);
1542 /*** IReferenceClock methods ***/
1543 HRESULT (STDMETHODCALLTYPE
*GetTime
)(
1544 IReferenceClock
* This
,
1545 REFERENCE_TIME
* pTime
);
1547 HRESULT (STDMETHODCALLTYPE
*AdviseTime
)(
1548 IReferenceClock
* This
,
1549 REFERENCE_TIME baseTime
,
1550 REFERENCE_TIME streamTime
,
1552 DWORD_PTR
* pdwAdviseCookie
);
1554 HRESULT (STDMETHODCALLTYPE
*AdvisePeriodic
)(
1555 IReferenceClock
* This
,
1556 REFERENCE_TIME startTime
,
1557 REFERENCE_TIME periodTime
,
1558 HSEMAPHORE hSemaphore
,
1559 DWORD_PTR
* pdwAdviseCookie
);
1561 HRESULT (STDMETHODCALLTYPE
*Unadvise
)(
1562 IReferenceClock
* This
,
1563 DWORD_PTR dwAdviseCookie
);
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)
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;
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
,
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
);
1632 #endif /* __IReferenceClock_INTERFACE_DEFINED__ */
1634 typedef IReferenceClock
*PREFERENCECLOCK
;
1636 /*****************************************************************************
1637 * IMediaSample interface
1639 #ifndef __IMediaSample_INTERFACE_DEFINED__
1640 #define __IMediaSample_INTERFACE_DEFINED__
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
1646 virtual HRESULT STDMETHODCALLTYPE
GetPointer(
1647 BYTE
** ppBuffer
) = 0;
1649 virtual long STDMETHODCALLTYPE
GetSize(
1652 virtual HRESULT STDMETHODCALLTYPE
GetTime(
1653 REFERENCE_TIME
* pTimeStart
,
1654 REFERENCE_TIME
* pTimeEnd
) = 0;
1656 virtual HRESULT STDMETHODCALLTYPE
SetTime(
1657 REFERENCE_TIME
* pTimeStart
,
1658 REFERENCE_TIME
* pTimeEnd
) = 0;
1660 virtual HRESULT STDMETHODCALLTYPE
IsSyncPoint(
1663 virtual HRESULT STDMETHODCALLTYPE
SetSyncPoint(
1664 BOOL bIsSyncPoint
) = 0;
1666 virtual HRESULT STDMETHODCALLTYPE
IsPreroll(
1669 virtual HRESULT STDMETHODCALLTYPE
SetPreroll(
1670 BOOL bIsPreroll
) = 0;
1672 virtual long STDMETHODCALLTYPE
GetActualDataLength(
1675 virtual HRESULT STDMETHODCALLTYPE
SetActualDataLength(
1678 virtual HRESULT STDMETHODCALLTYPE
GetMediaType(
1679 AM_MEDIA_TYPE
** ppMediaType
) = 0;
1681 virtual HRESULT STDMETHODCALLTYPE
SetMediaType(
1682 AM_MEDIA_TYPE
* pMediaType
) = 0;
1684 virtual HRESULT STDMETHODCALLTYPE
IsDiscontinuity(
1687 virtual HRESULT STDMETHODCALLTYPE
SetDiscontinuity(
1688 BOOL bDiscontinuity
) = 0;
1690 virtual HRESULT STDMETHODCALLTYPE
GetMediaTime(
1691 LONGLONG
* pTimeStart
,
1692 LONGLONG
* pTimeEnd
) = 0;
1694 virtual HRESULT STDMETHODCALLTYPE
SetMediaTime(
1695 LONGLONG
* pTimeStart
,
1696 LONGLONG
* pTimeEnd
) = 0;
1700 typedef struct IMediaSampleVtbl IMediaSampleVtbl
;
1701 struct IMediaSample
{
1702 const IMediaSampleVtbl
* lpVtbl
;
1704 struct IMediaSampleVtbl
{
1707 /*** IUnknown methods ***/
1708 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
1713 ULONG (STDMETHODCALLTYPE
*AddRef
)(
1714 IMediaSample
* This
);
1716 ULONG (STDMETHODCALLTYPE
*Release
)(
1717 IMediaSample
* This
);
1719 /*** IMediaSample methods ***/
1720 HRESULT (STDMETHODCALLTYPE
*GetPointer
)(
1724 long (STDMETHODCALLTYPE
*GetSize
)(
1725 IMediaSample
* This
);
1727 HRESULT (STDMETHODCALLTYPE
*GetTime
)(
1729 REFERENCE_TIME
* pTimeStart
,
1730 REFERENCE_TIME
* pTimeEnd
);
1732 HRESULT (STDMETHODCALLTYPE
*SetTime
)(
1734 REFERENCE_TIME
* pTimeStart
,
1735 REFERENCE_TIME
* pTimeEnd
);
1737 HRESULT (STDMETHODCALLTYPE
*IsSyncPoint
)(
1738 IMediaSample
* This
);
1740 HRESULT (STDMETHODCALLTYPE
*SetSyncPoint
)(
1744 HRESULT (STDMETHODCALLTYPE
*IsPreroll
)(
1745 IMediaSample
* This
);
1747 HRESULT (STDMETHODCALLTYPE
*SetPreroll
)(
1751 long (STDMETHODCALLTYPE
*GetActualDataLength
)(
1752 IMediaSample
* This
);
1754 HRESULT (STDMETHODCALLTYPE
*SetActualDataLength
)(
1758 HRESULT (STDMETHODCALLTYPE
*GetMediaType
)(
1760 AM_MEDIA_TYPE
** ppMediaType
);
1762 HRESULT (STDMETHODCALLTYPE
*SetMediaType
)(
1764 AM_MEDIA_TYPE
* pMediaType
);
1766 HRESULT (STDMETHODCALLTYPE
*IsDiscontinuity
)(
1767 IMediaSample
* This
);
1769 HRESULT (STDMETHODCALLTYPE
*SetDiscontinuity
)(
1771 BOOL bDiscontinuity
);
1773 HRESULT (STDMETHODCALLTYPE
*GetMediaTime
)(
1775 LONGLONG
* pTimeStart
,
1776 LONGLONG
* pTimeEnd
);
1778 HRESULT (STDMETHODCALLTYPE
*SetMediaTime
)(
1780 LONGLONG
* pTimeStart
,
1781 LONGLONG
* pTimeEnd
);
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)
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;
1835 HRESULT CALLBACK
IMediaSample_GetPointer_Proxy(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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(
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
);
1963 #endif /* __IMediaSample_INTERFACE_DEFINED__ */
1965 typedef IMediaSample
*PMEDIASAMPLE
;
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
1981 typedef struct tagAM_SAMPLE2_PROPERTIES
{
1983 DWORD dwTypeSpecificFlags
;
1984 DWORD dwSampleFlags
;
1986 REFERENCE_TIME tStart
;
1987 REFERENCE_TIME tStop
;
1989 AM_MEDIA_TYPE
*pMediaType
;
1992 } AM_SAMPLE2_PROPERTIES
;
1994 #ifndef __IMediaSample2_FWD_DEFINED__
1995 #define __IMediaSample2_FWD_DEFINED__
1996 typedef struct IMediaSample2 IMediaSample2
;
1999 /*****************************************************************************
2000 * IMediaSample2 interface
2002 #ifndef __IMediaSample2_INTERFACE_DEFINED__
2003 #define __IMediaSample2_INTERFACE_DEFINED__
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
2009 virtual HRESULT STDMETHODCALLTYPE
GetProperties(
2011 BYTE
* pbProperties
) = 0;
2013 virtual HRESULT STDMETHODCALLTYPE
SetProperties(
2015 const BYTE
* pbProperties
) = 0;
2019 typedef struct IMediaSample2Vtbl IMediaSample2Vtbl
;
2020 struct IMediaSample2
{
2021 const IMediaSample2Vtbl
* lpVtbl
;
2023 struct IMediaSample2Vtbl
{
2026 /*** IUnknown methods ***/
2027 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
2028 IMediaSample2
* This
,
2032 ULONG (STDMETHODCALLTYPE
*AddRef
)(
2033 IMediaSample2
* This
);
2035 ULONG (STDMETHODCALLTYPE
*Release
)(
2036 IMediaSample2
* This
);
2038 /*** IMediaSample methods ***/
2039 HRESULT (STDMETHODCALLTYPE
*GetPointer
)(
2040 IMediaSample2
* This
,
2043 long (STDMETHODCALLTYPE
*GetSize
)(
2044 IMediaSample2
* This
);
2046 HRESULT (STDMETHODCALLTYPE
*GetTime
)(
2047 IMediaSample2
* This
,
2048 REFERENCE_TIME
* pTimeStart
,
2049 REFERENCE_TIME
* pTimeEnd
);
2051 HRESULT (STDMETHODCALLTYPE
*SetTime
)(
2052 IMediaSample2
* This
,
2053 REFERENCE_TIME
* pTimeStart
,
2054 REFERENCE_TIME
* pTimeEnd
);
2056 HRESULT (STDMETHODCALLTYPE
*IsSyncPoint
)(
2057 IMediaSample2
* This
);
2059 HRESULT (STDMETHODCALLTYPE
*SetSyncPoint
)(
2060 IMediaSample2
* This
,
2063 HRESULT (STDMETHODCALLTYPE
*IsPreroll
)(
2064 IMediaSample2
* This
);
2066 HRESULT (STDMETHODCALLTYPE
*SetPreroll
)(
2067 IMediaSample2
* This
,
2070 long (STDMETHODCALLTYPE
*GetActualDataLength
)(
2071 IMediaSample2
* This
);
2073 HRESULT (STDMETHODCALLTYPE
*SetActualDataLength
)(
2074 IMediaSample2
* This
,
2077 HRESULT (STDMETHODCALLTYPE
*GetMediaType
)(
2078 IMediaSample2
* This
,
2079 AM_MEDIA_TYPE
** ppMediaType
);
2081 HRESULT (STDMETHODCALLTYPE
*SetMediaType
)(
2082 IMediaSample2
* This
,
2083 AM_MEDIA_TYPE
* pMediaType
);
2085 HRESULT (STDMETHODCALLTYPE
*IsDiscontinuity
)(
2086 IMediaSample2
* This
);
2088 HRESULT (STDMETHODCALLTYPE
*SetDiscontinuity
)(
2089 IMediaSample2
* This
,
2090 BOOL bDiscontinuity
);
2092 HRESULT (STDMETHODCALLTYPE
*GetMediaTime
)(
2093 IMediaSample2
* This
,
2094 LONGLONG
* pTimeStart
,
2095 LONGLONG
* pTimeEnd
);
2097 HRESULT (STDMETHODCALLTYPE
*SetMediaTime
)(
2098 IMediaSample2
* This
,
2099 LONGLONG
* pTimeStart
,
2100 LONGLONG
* pTimeEnd
);
2102 /*** IMediaSample2 methods ***/
2103 HRESULT (STDMETHODCALLTYPE
*GetProperties
)(
2104 IMediaSample2
* This
,
2106 BYTE
* pbProperties
);
2108 HRESULT (STDMETHODCALLTYPE
*SetProperties
)(
2109 IMediaSample2
* This
,
2111 const BYTE
* pbProperties
);
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)
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;
2171 HRESULT CALLBACK
IMediaSample2_GetProperties_Proxy(
2172 IMediaSample2
* This
,
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
,
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
);
2190 #endif /* __IMediaSample2_INTERFACE_DEFINED__ */
2192 typedef IMediaSample2
*PMEDIASAMPLE2
;
2194 #define AM_GBF_PREVFRAMESKIPPED 1
2195 #define AM_GBF_NOTASYNCPOINT 2
2196 #define AM_GBF_NOWAIT 4
2197 /*****************************************************************************
2198 * IMemAllocator interface
2200 #ifndef __IMemAllocator_INTERFACE_DEFINED__
2201 #define __IMemAllocator_INTERFACE_DEFINED__
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
2207 virtual HRESULT STDMETHODCALLTYPE
SetProperties(
2208 ALLOCATOR_PROPERTIES
* pRequest
,
2209 ALLOCATOR_PROPERTIES
* pActual
) = 0;
2211 virtual HRESULT STDMETHODCALLTYPE
GetProperties(
2212 ALLOCATOR_PROPERTIES
* pProps
) = 0;
2214 virtual HRESULT STDMETHODCALLTYPE
Commit(
2217 virtual HRESULT STDMETHODCALLTYPE
Decommit(
2220 virtual HRESULT STDMETHODCALLTYPE
GetBuffer(
2221 IMediaSample
** ppBuffer
,
2222 REFERENCE_TIME
* pStartTime
,
2223 REFERENCE_TIME
* pEndTime
,
2226 virtual HRESULT STDMETHODCALLTYPE
ReleaseBuffer(
2227 IMediaSample
* pBuffer
) = 0;
2231 typedef struct IMemAllocatorVtbl IMemAllocatorVtbl
;
2232 struct IMemAllocator
{
2233 const IMemAllocatorVtbl
* lpVtbl
;
2235 struct IMemAllocatorVtbl
{
2238 /*** IUnknown methods ***/
2239 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
2240 IMemAllocator
* This
,
2244 ULONG (STDMETHODCALLTYPE
*AddRef
)(
2245 IMemAllocator
* This
);
2247 ULONG (STDMETHODCALLTYPE
*Release
)(
2248 IMemAllocator
* This
);
2250 /*** IMemAllocator methods ***/
2251 HRESULT (STDMETHODCALLTYPE
*SetProperties
)(
2252 IMemAllocator
* This
,
2253 ALLOCATOR_PROPERTIES
* pRequest
,
2254 ALLOCATOR_PROPERTIES
* pActual
);
2256 HRESULT (STDMETHODCALLTYPE
*GetProperties
)(
2257 IMemAllocator
* This
,
2258 ALLOCATOR_PROPERTIES
* pProps
);
2260 HRESULT (STDMETHODCALLTYPE
*Commit
)(
2261 IMemAllocator
* This
);
2263 HRESULT (STDMETHODCALLTYPE
*Decommit
)(
2264 IMemAllocator
* This
);
2266 HRESULT (STDMETHODCALLTYPE
*GetBuffer
)(
2267 IMemAllocator
* This
,
2268 IMediaSample
** ppBuffer
,
2269 REFERENCE_TIME
* pStartTime
,
2270 REFERENCE_TIME
* pEndTime
,
2273 HRESULT (STDMETHODCALLTYPE
*ReleaseBuffer
)(
2274 IMemAllocator
* This
,
2275 IMediaSample
* pBuffer
);
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)
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;
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
,
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
);
2360 #endif /* __IMemAllocator_INTERFACE_DEFINED__ */
2362 typedef IMemAllocator
*PMEMALLOCATOR
;
2364 /*****************************************************************************
2365 * IMemAllocatorCallbackTemp interface
2367 #ifndef __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__
2368 #define __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__
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
2374 virtual HRESULT STDMETHODCALLTYPE
SetNotify(
2375 IMemAllocatorNotifyCallbackTemp
* pNotify
) = 0;
2377 virtual HRESULT STDMETHODCALLTYPE
GetFreeCount(
2378 LONG
* plBuffersFree
) = 0;
2382 typedef struct IMemAllocatorCallbackTempVtbl IMemAllocatorCallbackTempVtbl
;
2383 struct IMemAllocatorCallbackTemp
{
2384 const IMemAllocatorCallbackTempVtbl
* lpVtbl
;
2386 struct IMemAllocatorCallbackTempVtbl
{
2389 /*** IUnknown methods ***/
2390 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
2391 IMemAllocatorCallbackTemp
* This
,
2395 ULONG (STDMETHODCALLTYPE
*AddRef
)(
2396 IMemAllocatorCallbackTemp
* This
);
2398 ULONG (STDMETHODCALLTYPE
*Release
)(
2399 IMemAllocatorCallbackTemp
* This
);
2401 /*** IMemAllocator methods ***/
2402 HRESULT (STDMETHODCALLTYPE
*SetProperties
)(
2403 IMemAllocatorCallbackTemp
* This
,
2404 ALLOCATOR_PROPERTIES
* pRequest
,
2405 ALLOCATOR_PROPERTIES
* pActual
);
2407 HRESULT (STDMETHODCALLTYPE
*GetProperties
)(
2408 IMemAllocatorCallbackTemp
* This
,
2409 ALLOCATOR_PROPERTIES
* pProps
);
2411 HRESULT (STDMETHODCALLTYPE
*Commit
)(
2412 IMemAllocatorCallbackTemp
* This
);
2414 HRESULT (STDMETHODCALLTYPE
*Decommit
)(
2415 IMemAllocatorCallbackTemp
* This
);
2417 HRESULT (STDMETHODCALLTYPE
*GetBuffer
)(
2418 IMemAllocatorCallbackTemp
* This
,
2419 IMediaSample
** ppBuffer
,
2420 REFERENCE_TIME
* pStartTime
,
2421 REFERENCE_TIME
* pEndTime
,
2424 HRESULT (STDMETHODCALLTYPE
*ReleaseBuffer
)(
2425 IMemAllocatorCallbackTemp
* This
,
2426 IMediaSample
* pBuffer
);
2428 /*** IMemAllocatorCallbackTemp methods ***/
2429 HRESULT (STDMETHODCALLTYPE
*SetNotify
)(
2430 IMemAllocatorCallbackTemp
* This
,
2431 IMemAllocatorNotifyCallbackTemp
* pNotify
);
2433 HRESULT (STDMETHODCALLTYPE
*GetFreeCount
)(
2434 IMemAllocatorCallbackTemp
* This
,
2435 LONG
* plBuffersFree
);
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)
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;
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
);
2492 #endif /* __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__ */
2494 /*****************************************************************************
2495 * IMemAllocatorNotifyCallbackTemp interface
2497 #ifndef __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__
2498 #define __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__
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
2504 virtual HRESULT STDMETHODCALLTYPE
NotifyRelease(
2509 typedef struct IMemAllocatorNotifyCallbackTempVtbl IMemAllocatorNotifyCallbackTempVtbl
;
2510 struct IMemAllocatorNotifyCallbackTemp
{
2511 const IMemAllocatorNotifyCallbackTempVtbl
* lpVtbl
;
2513 struct IMemAllocatorNotifyCallbackTempVtbl
{
2516 /*** IUnknown methods ***/
2517 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
2518 IMemAllocatorNotifyCallbackTemp
* This
,
2522 ULONG (STDMETHODCALLTYPE
*AddRef
)(
2523 IMemAllocatorNotifyCallbackTemp
* This
);
2525 ULONG (STDMETHODCALLTYPE
*Release
)(
2526 IMemAllocatorNotifyCallbackTemp
* This
);
2528 /*** IMemAllocatorNotifyCallbackTemp methods ***/
2529 HRESULT (STDMETHODCALLTYPE
*NotifyRelease
)(
2530 IMemAllocatorNotifyCallbackTemp
* This
);
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)
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;
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
);
2562 #endif /* __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__ */
2564 /*****************************************************************************
2565 * IMemInputPin interface
2567 #ifndef __IMemInputPin_INTERFACE_DEFINED__
2568 #define __IMemInputPin_INTERFACE_DEFINED__
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
2574 virtual HRESULT STDMETHODCALLTYPE
GetAllocator(
2575 IMemAllocator
** ppAllocator
) = 0;
2577 virtual HRESULT STDMETHODCALLTYPE
NotifyAllocator(
2578 IMemAllocator
* pAllocator
,
2579 BOOL bReadOnly
) = 0;
2581 virtual HRESULT STDMETHODCALLTYPE
GetAllocatorRequirements(
2582 ALLOCATOR_PROPERTIES
* pProps
) = 0;
2584 virtual HRESULT STDMETHODCALLTYPE
Receive(
2585 IMediaSample
* pSample
) = 0;
2587 virtual HRESULT STDMETHODCALLTYPE
ReceiveMultiple(
2588 IMediaSample
** pSamples
,
2590 long* nSamplesProcessed
) = 0;
2592 virtual HRESULT STDMETHODCALLTYPE
ReceiveCanBlock(
2597 typedef struct IMemInputPinVtbl IMemInputPinVtbl
;
2598 struct IMemInputPin
{
2599 const IMemInputPinVtbl
* lpVtbl
;
2601 struct IMemInputPinVtbl
{
2604 /*** IUnknown methods ***/
2605 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
2610 ULONG (STDMETHODCALLTYPE
*AddRef
)(
2611 IMemInputPin
* This
);
2613 ULONG (STDMETHODCALLTYPE
*Release
)(
2614 IMemInputPin
* This
);
2616 /*** IMemInputPin methods ***/
2617 HRESULT (STDMETHODCALLTYPE
*GetAllocator
)(
2619 IMemAllocator
** ppAllocator
);
2621 HRESULT (STDMETHODCALLTYPE
*NotifyAllocator
)(
2623 IMemAllocator
* pAllocator
,
2626 HRESULT (STDMETHODCALLTYPE
*GetAllocatorRequirements
)(
2628 ALLOCATOR_PROPERTIES
* pProps
);
2630 HRESULT (STDMETHODCALLTYPE
*Receive
)(
2632 IMediaSample
* pSample
);
2634 HRESULT (STDMETHODCALLTYPE
*ReceiveMultiple
)(
2636 IMediaSample
** pSamples
,
2638 long* nSamplesProcessed
);
2640 HRESULT (STDMETHODCALLTYPE
*ReceiveCanBlock
)(
2641 IMemInputPin
* This
);
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)
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;
2675 HRESULT CALLBACK
IMemInputPin_GetAllocator_Proxy(
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(
2685 IMemAllocator
* pAllocator
,
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(
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(
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(
2710 IMediaSample
** pSamples
,
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
);
2726 #endif /* __IMemInputPin_INTERFACE_DEFINED__ */
2728 typedef IMemInputPin
*PMEMINPUTPIN
;
2730 /*****************************************************************************
2731 * IAMovieSetup interface
2733 #ifndef __IAMovieSetup_INTERFACE_DEFINED__
2734 #define __IAMovieSetup_INTERFACE_DEFINED__
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
2740 virtual HRESULT STDMETHODCALLTYPE
Register(
2743 virtual HRESULT STDMETHODCALLTYPE
Unregister(
2748 typedef struct IAMovieSetupVtbl IAMovieSetupVtbl
;
2749 struct IAMovieSetup
{
2750 const IAMovieSetupVtbl
* lpVtbl
;
2752 struct IAMovieSetupVtbl
{
2755 /*** IUnknown methods ***/
2756 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
2761 ULONG (STDMETHODCALLTYPE
*AddRef
)(
2762 IAMovieSetup
* This
);
2764 ULONG (STDMETHODCALLTYPE
*Release
)(
2765 IAMovieSetup
* This
);
2767 /*** IAMovieSetup methods ***/
2768 HRESULT (STDMETHODCALLTYPE
*Register
)(
2769 IAMovieSetup
* This
);
2771 HRESULT (STDMETHODCALLTYPE
*Unregister
)(
2772 IAMovieSetup
* This
);
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)
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;
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
);
2813 #endif /* __IAMovieSetup_INTERFACE_DEFINED__ */
2815 typedef IAMovieSetup
*PAMOVIESETUP
;
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
;
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
;
2841 #ifndef __IMediaSeeking_FWD_DEFINED__
2842 #define __IMediaSeeking_FWD_DEFINED__
2843 typedef struct IMediaSeeking IMediaSeeking
;
2846 /*****************************************************************************
2847 * IMediaSeeking interface
2849 #ifndef __IMediaSeeking_INTERFACE_DEFINED__
2850 #define __IMediaSeeking_INTERFACE_DEFINED__
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
2856 virtual HRESULT STDMETHODCALLTYPE
GetCapabilities(
2857 DWORD
* pCapabilities
) = 0;
2859 virtual HRESULT STDMETHODCALLTYPE
CheckCapabilities(
2860 DWORD
* pCapabilities
) = 0;
2862 virtual HRESULT STDMETHODCALLTYPE
IsFormatSupported(
2863 const GUID
* pFormat
) = 0;
2865 virtual HRESULT STDMETHODCALLTYPE
QueryPreferredFormat(
2868 virtual HRESULT STDMETHODCALLTYPE
GetTimeFormat(
2871 virtual HRESULT STDMETHODCALLTYPE
IsUsingTimeFormat(
2872 const GUID
* pFormat
) = 0;
2874 virtual HRESULT STDMETHODCALLTYPE
SetTimeFormat(
2875 const GUID
* pFormat
) = 0;
2877 virtual HRESULT STDMETHODCALLTYPE
GetDuration(
2878 LONGLONG
* pDuration
) = 0;
2880 virtual HRESULT STDMETHODCALLTYPE
GetStopPosition(
2881 LONGLONG
* pStop
) = 0;
2883 virtual HRESULT STDMETHODCALLTYPE
GetCurrentPosition(
2884 LONGLONG
* pCurrent
) = 0;
2886 virtual HRESULT STDMETHODCALLTYPE
ConvertTimeFormat(
2888 const GUID
* pTargetFormat
,
2890 const GUID
* pSourceFormat
) = 0;
2892 virtual HRESULT STDMETHODCALLTYPE
SetPositions(
2894 DWORD dwCurrentFlags
,
2896 DWORD dwStopFlags
) = 0;
2898 virtual HRESULT STDMETHODCALLTYPE
GetPositions(
2900 LONGLONG
* pStop
) = 0;
2902 virtual HRESULT STDMETHODCALLTYPE
GetAvailable(
2903 LONGLONG
* pEarliest
,
2904 LONGLONG
* pLatest
) = 0;
2906 virtual HRESULT STDMETHODCALLTYPE
SetRate(
2909 virtual HRESULT STDMETHODCALLTYPE
GetRate(
2910 double* pdRate
) = 0;
2912 virtual HRESULT STDMETHODCALLTYPE
GetPreroll(
2913 LONGLONG
* pllPreroll
) = 0;
2917 typedef struct IMediaSeekingVtbl IMediaSeekingVtbl
;
2918 struct IMediaSeeking
{
2919 const IMediaSeekingVtbl
* lpVtbl
;
2921 struct IMediaSeekingVtbl
{
2924 /*** IUnknown methods ***/
2925 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
2926 IMediaSeeking
* This
,
2930 ULONG (STDMETHODCALLTYPE
*AddRef
)(
2931 IMediaSeeking
* This
);
2933 ULONG (STDMETHODCALLTYPE
*Release
)(
2934 IMediaSeeking
* This
);
2936 /*** IMediaSeeking methods ***/
2937 HRESULT (STDMETHODCALLTYPE
*GetCapabilities
)(
2938 IMediaSeeking
* This
,
2939 DWORD
* pCapabilities
);
2941 HRESULT (STDMETHODCALLTYPE
*CheckCapabilities
)(
2942 IMediaSeeking
* This
,
2943 DWORD
* pCapabilities
);
2945 HRESULT (STDMETHODCALLTYPE
*IsFormatSupported
)(
2946 IMediaSeeking
* This
,
2947 const GUID
* pFormat
);
2949 HRESULT (STDMETHODCALLTYPE
*QueryPreferredFormat
)(
2950 IMediaSeeking
* This
,
2953 HRESULT (STDMETHODCALLTYPE
*GetTimeFormat
)(
2954 IMediaSeeking
* This
,
2957 HRESULT (STDMETHODCALLTYPE
*IsUsingTimeFormat
)(
2958 IMediaSeeking
* This
,
2959 const GUID
* pFormat
);
2961 HRESULT (STDMETHODCALLTYPE
*SetTimeFormat
)(
2962 IMediaSeeking
* This
,
2963 const GUID
* pFormat
);
2965 HRESULT (STDMETHODCALLTYPE
*GetDuration
)(
2966 IMediaSeeking
* This
,
2967 LONGLONG
* pDuration
);
2969 HRESULT (STDMETHODCALLTYPE
*GetStopPosition
)(
2970 IMediaSeeking
* This
,
2973 HRESULT (STDMETHODCALLTYPE
*GetCurrentPosition
)(
2974 IMediaSeeking
* This
,
2975 LONGLONG
* pCurrent
);
2977 HRESULT (STDMETHODCALLTYPE
*ConvertTimeFormat
)(
2978 IMediaSeeking
* This
,
2980 const GUID
* pTargetFormat
,
2982 const GUID
* pSourceFormat
);
2984 HRESULT (STDMETHODCALLTYPE
*SetPositions
)(
2985 IMediaSeeking
* This
,
2987 DWORD dwCurrentFlags
,
2991 HRESULT (STDMETHODCALLTYPE
*GetPositions
)(
2992 IMediaSeeking
* This
,
2996 HRESULT (STDMETHODCALLTYPE
*GetAvailable
)(
2997 IMediaSeeking
* This
,
2998 LONGLONG
* pEarliest
,
3001 HRESULT (STDMETHODCALLTYPE
*SetRate
)(
3002 IMediaSeeking
* This
,
3005 HRESULT (STDMETHODCALLTYPE
*GetRate
)(
3006 IMediaSeeking
* This
,
3009 HRESULT (STDMETHODCALLTYPE
*GetPreroll
)(
3010 IMediaSeeking
* This
,
3011 LONGLONG
* pllPreroll
);
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)
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;
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
,
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
,
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
,
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
,
3150 const GUID
* pTargetFormat
,
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
,
3161 DWORD dwCurrentFlags
,
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
,
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
,
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
,
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
,
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
);
3212 #endif /* __IMediaSeeking_INTERFACE_DEFINED__ */
3214 typedef IMediaSeeking
*PMEDIASEEKING
;
3216 enum tagAM_MEDIAEVENT_FLAGS
{
3217 AM_MEDIAEVENT_NONOTIFY
= 0x1
3220 #ifndef __IAMAnalogVideoDecoder_FWD_DEFINED__
3221 #define __IAMAnalogVideoDecoder_FWD_DEFINED__
3222 typedef struct IAMAnalogVideoDecoder IAMAnalogVideoDecoder
;
3225 #ifndef __IAMAnalogVideoEncoder_FWD_DEFINED__
3226 #define __IAMAnalogVideoEncoder_FWD_DEFINED__
3227 typedef struct IAMAnalogVideoEncoder IAMAnalogVideoEncoder
;
3230 #ifndef __IAMAudioInputMixer_FWD_DEFINED__
3231 #define __IAMAudioInputMixer_FWD_DEFINED__
3232 typedef struct IAMAudioInputMixer IAMAudioInputMixer
;
3235 #ifndef __IAMAudioRendererStats_FWD_DEFINED__
3236 #define __IAMAudioRendererStats_FWD_DEFINED__
3237 typedef struct IAMAudioRendererStats IAMAudioRendererStats
;
3240 #ifndef __IAMBufferNegotiation_FWD_DEFINED__
3241 #define __IAMBufferNegotiation_FWD_DEFINED__
3242 typedef struct IAMBufferNegotiation IAMBufferNegotiation
;
3245 #ifndef __IAMCameraControl_FWD_DEFINED__
3246 #define __IAMCameraControl_FWD_DEFINED__
3247 typedef struct IAMCameraControl IAMCameraControl
;
3250 #ifndef __IAMCopyCaptureFileProgress_FWD_DEFINED__
3251 #define __IAMCopyCaptureFileProgress_FWD_DEFINED__
3252 typedef struct IAMCopyCaptureFileProgress IAMCopyCaptureFileProgress
;
3255 #ifndef __IAMCrossbar_FWD_DEFINED__
3256 #define __IAMCrossbar_FWD_DEFINED__
3257 typedef struct IAMCrossbar IAMCrossbar
;
3260 #ifndef __IAMDevMemoryAllocator_FWD_DEFINED__
3261 #define __IAMDevMemoryAllocator_FWD_DEFINED__
3262 typedef struct IAMDevMemoryAllocator IAMDevMemoryAllocator
;
3265 #ifndef __IAMDevMemoryControl_FWD_DEFINED__
3266 #define __IAMDevMemoryControl_FWD_DEFINED__
3267 typedef struct IAMDevMemoryControl IAMDevMemoryControl
;
3270 #ifndef __IAMDroppedFrames_FWD_DEFINED__
3271 #define __IAMDroppedFrames_FWD_DEFINED__
3272 typedef struct IAMDroppedFrames IAMDroppedFrames
;
3275 #ifndef __IAMExtDevice_FWD_DEFINED__
3276 #define __IAMExtDevice_FWD_DEFINED__
3277 typedef struct IAMExtDevice IAMExtDevice
;
3280 #ifndef __IAMExtTransport_FWD_DEFINED__
3281 #define __IAMExtTransport_FWD_DEFINED__
3282 typedef struct IAMExtTransport IAMExtTransport
;
3285 #ifndef __IAMGraphStreams_FWD_DEFINED__
3286 #define __IAMGraphStreams_FWD_DEFINED__
3287 typedef struct IAMGraphStreams IAMGraphStreams
;
3290 #ifndef __IAMLatency_FWD_DEFINED__
3291 #define __IAMLatency_FWD_DEFINED__
3292 typedef struct IAMLatency IAMLatency
;
3295 #ifndef __IAMOpenProgress_FWD_DEFINED__
3296 #define __IAMOpenProgress_FWD_DEFINED__
3297 typedef struct IAMOpenProgress IAMOpenProgress
;
3300 #ifndef __IAMOverlayFX_FWD_DEFINED__
3301 #define __IAMOverlayFX_FWD_DEFINED__
3302 typedef struct IAMOverlayFX IAMOverlayFX
;
3305 #ifndef __IAMPhysicalPinInfo_FWD_DEFINED__
3306 #define __IAMPhysicalPinInfo_FWD_DEFINED__
3307 typedef struct IAMPhysicalPinInfo IAMPhysicalPinInfo
;
3310 #ifndef __IAMPushSource_FWD_DEFINED__
3311 #define __IAMPushSource_FWD_DEFINED__
3312 typedef struct IAMPushSource IAMPushSource
;
3315 #ifndef __IAMStreamConfig_FWD_DEFINED__
3316 #define __IAMStreamConfig_FWD_DEFINED__
3317 typedef struct IAMStreamConfig IAMStreamConfig
;
3320 #ifndef __IAMTimecodeDisplay_FWD_DEFINED__
3321 #define __IAMTimecodeDisplay_FWD_DEFINED__
3322 typedef struct IAMTimecodeDisplay IAMTimecodeDisplay
;
3325 #ifndef __IAMTimecodeGenerator_FWD_DEFINED__
3326 #define __IAMTimecodeGenerator_FWD_DEFINED__
3327 typedef struct IAMTimecodeGenerator IAMTimecodeGenerator
;
3330 #ifndef __IAMTimecodeReader_FWD_DEFINED__
3331 #define __IAMTimecodeReader_FWD_DEFINED__
3332 typedef struct IAMTimecodeReader IAMTimecodeReader
;
3335 #ifndef __IAMTVTuner_FWD_DEFINED__
3336 #define __IAMTVTuner_FWD_DEFINED__
3337 typedef struct IAMTVTuner IAMTVTuner
;
3340 #ifndef __IAMVfwCaptureDialogs_FWD_DEFINED__
3341 #define __IAMVfwCaptureDialogs_FWD_DEFINED__
3342 typedef struct IAMVfwCaptureDialogs IAMVfwCaptureDialogs
;
3345 #ifndef __IAMVfwCompressDialogs_FWD_DEFINED__
3346 #define __IAMVfwCompressDialogs_FWD_DEFINED__
3347 typedef struct IAMVfwCompressDialogs IAMVfwCompressDialogs
;
3350 #ifndef __IAMVideoCompression_FWD_DEFINED__
3351 #define __IAMVideoCompression_FWD_DEFINED__
3352 typedef struct IAMVideoCompression IAMVideoCompression
;
3355 #ifndef __IAMVideoDecimationProperties_FWD_DEFINED__
3356 #define __IAMVideoDecimationProperties_FWD_DEFINED__
3357 typedef struct IAMVideoDecimationProperties IAMVideoDecimationProperties
;
3360 #ifndef __IAMVideoProcAmp_FWD_DEFINED__
3361 #define __IAMVideoProcAmp_FWD_DEFINED__
3362 typedef struct IAMVideoProcAmp IAMVideoProcAmp
;
3365 #ifndef __ICaptureGraphBuilder_FWD_DEFINED__
3366 #define __ICaptureGraphBuilder_FWD_DEFINED__
3367 typedef struct ICaptureGraphBuilder ICaptureGraphBuilder
;
3370 #ifndef __ICaptureGraphBuilder2_FWD_DEFINED__
3371 #define __ICaptureGraphBuilder2_FWD_DEFINED__
3372 typedef struct ICaptureGraphBuilder2 ICaptureGraphBuilder2
;
3375 #ifndef __IConfigAviMux_FWD_DEFINED__
3376 #define __IConfigAviMux_FWD_DEFINED__
3377 typedef struct IConfigAviMux IConfigAviMux
;
3380 #ifndef __IConfigInterleaving_FWD_DEFINED__
3381 #define __IConfigInterleaving_FWD_DEFINED__
3382 typedef struct IConfigInterleaving IConfigInterleaving
;
3385 #ifndef __IDecimateVideoImage_FWD_DEFINED__
3386 #define __IDecimateVideoImage_FWD_DEFINED__
3387 typedef struct IDecimateVideoImage IDecimateVideoImage
;
3390 #ifndef __IDrawVideoImage_FWD_DEFINED__
3391 #define __IDrawVideoImage_FWD_DEFINED__
3392 typedef struct IDrawVideoImage IDrawVideoImage
;
3395 #ifndef __IEnumRegFilters_FWD_DEFINED__
3396 #define __IEnumRegFilters_FWD_DEFINED__
3397 typedef struct IEnumRegFilters IEnumRegFilters
;
3400 #ifndef __IEnumStreamIdMap_FWD_DEFINED__
3401 #define __IEnumStreamIdMap_FWD_DEFINED__
3402 typedef struct IEnumStreamIdMap IEnumStreamIdMap
;
3405 #ifndef __IFileSourceFilter_FWD_DEFINED__
3406 #define __IFileSourceFilter_FWD_DEFINED__
3407 typedef struct IFileSourceFilter IFileSourceFilter
;
3410 #ifndef __IFileSinkFilter_FWD_DEFINED__
3411 #define __IFileSinkFilter_FWD_DEFINED__
3412 typedef struct IFileSinkFilter IFileSinkFilter
;
3415 #ifndef __IFileSinkFilter2_FWD_DEFINED__
3416 #define __IFileSinkFilter2_FWD_DEFINED__
3417 typedef struct IFileSinkFilter2 IFileSinkFilter2
;
3420 #ifndef __IFilterMapper_FWD_DEFINED__
3421 #define __IFilterMapper_FWD_DEFINED__
3422 typedef struct IFilterMapper IFilterMapper
;
3425 #ifndef __IFilterMapper2_FWD_DEFINED__
3426 #define __IFilterMapper2_FWD_DEFINED__
3427 typedef struct IFilterMapper2 IFilterMapper2
;
3430 #ifndef __IGraphBuilder_FWD_DEFINED__
3431 #define __IGraphBuilder_FWD_DEFINED__
3432 typedef struct IGraphBuilder IGraphBuilder
;
3435 #ifndef __IKsPropertySet_FWD_DEFINED__
3436 #define __IKsPropertySet_FWD_DEFINED__
3437 typedef struct IKsPropertySet IKsPropertySet
;
3440 #ifndef __IMediaEventSink_FWD_DEFINED__
3441 #define __IMediaEventSink_FWD_DEFINED__
3442 typedef struct IMediaEventSink IMediaEventSink
;
3445 #ifndef __IMpeg2Demultiplexer_FWD_DEFINED__
3446 #define __IMpeg2Demultiplexer_FWD_DEFINED__
3447 typedef struct IMpeg2Demultiplexer IMpeg2Demultiplexer
;
3450 #ifndef __IMPEG2StreamIdMap_FWD_DEFINED__
3451 #define __IMPEG2StreamIdMap_FWD_DEFINED__
3452 typedef struct IMPEG2StreamIdMap IMPEG2StreamIdMap
;
3455 #ifndef __IOverlay_FWD_DEFINED__
3456 #define __IOverlay_FWD_DEFINED__
3457 typedef struct IOverlay IOverlay
;
3460 #ifndef __IOverlayNotify_FWD_DEFINED__
3461 #define __IOverlayNotify_FWD_DEFINED__
3462 typedef struct IOverlayNotify IOverlayNotify
;
3465 #ifndef __IOverlayNotify2_FWD_DEFINED__
3466 #define __IOverlayNotify2_FWD_DEFINED__
3467 typedef struct IOverlayNotify2 IOverlayNotify2
;
3470 #ifndef __IQualityControl_FWD_DEFINED__
3471 #define __IQualityControl_FWD_DEFINED__
3472 typedef struct IQualityControl IQualityControl
;
3475 #ifndef __ISeekingPassThru_FWD_DEFINED__
3476 #define __ISeekingPassThru_FWD_DEFINED__
3477 typedef struct ISeekingPassThru ISeekingPassThru
;
3485 /*****************************************************************************
3486 * IEnumRegFilters interface
3488 #ifndef __IEnumRegFilters_INTERFACE_DEFINED__
3489 #define __IEnumRegFilters_INTERFACE_DEFINED__
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
3495 virtual HRESULT STDMETHODCALLTYPE
Next(
3497 REGFILTER
** apRegFilter
,
3498 ULONG
* pcFetched
) = 0;
3500 virtual HRESULT STDMETHODCALLTYPE
Skip(
3501 ULONG cFilters
) = 0;
3503 virtual HRESULT STDMETHODCALLTYPE
Reset(
3506 virtual HRESULT STDMETHODCALLTYPE
Clone(
3507 IEnumRegFilters
** ppEnum
) = 0;
3511 typedef struct IEnumRegFiltersVtbl IEnumRegFiltersVtbl
;
3512 struct IEnumRegFilters
{
3513 const IEnumRegFiltersVtbl
* lpVtbl
;
3515 struct IEnumRegFiltersVtbl
{
3518 /*** IUnknown methods ***/
3519 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
3520 IEnumRegFilters
* This
,
3524 ULONG (STDMETHODCALLTYPE
*AddRef
)(
3525 IEnumRegFilters
* This
);
3527 ULONG (STDMETHODCALLTYPE
*Release
)(
3528 IEnumRegFilters
* This
);
3530 /*** IEnumRegFilters methods ***/
3531 HRESULT (STDMETHODCALLTYPE
*Next
)(
3532 IEnumRegFilters
* This
,
3534 REGFILTER
** apRegFilter
,
3537 HRESULT (STDMETHODCALLTYPE
*Skip
)(
3538 IEnumRegFilters
* This
,
3541 HRESULT (STDMETHODCALLTYPE
*Reset
)(
3542 IEnumRegFilters
* This
);
3544 HRESULT (STDMETHODCALLTYPE
*Clone
)(
3545 IEnumRegFilters
* This
,
3546 IEnumRegFilters
** ppEnum
);
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)
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;
3576 HRESULT CALLBACK
IEnumRegFilters_Next_Proxy(
3577 IEnumRegFilters
* This
,
3579 REGFILTER
** apRegFilter
,
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
,
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
);
3610 #endif /* __IEnumRegFilters_INTERFACE_DEFINED__ */
3612 typedef IEnumRegFilters
*PENUMREGFILTERS
;
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
3623 /*****************************************************************************
3624 * IFilterMapper interface
3626 #ifndef __IFilterMapper_INTERFACE_DEFINED__
3627 #define __IFilterMapper_INTERFACE_DEFINED__
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
3633 virtual HRESULT STDMETHODCALLTYPE
RegisterFilter(
3638 virtual HRESULT STDMETHODCALLTYPE
RegisterFilterInstance(
3643 virtual HRESULT STDMETHODCALLTYPE
RegisterPin(
3650 CLSID ConnectsToFilter
,
3651 LPCWSTR ConnectsToPin
) = 0;
3653 virtual HRESULT STDMETHODCALLTYPE
RegisterPinType(
3657 CLSID clsSubType
) = 0;
3659 virtual HRESULT STDMETHODCALLTYPE
UnregisterFilter(
3662 virtual HRESULT STDMETHODCALLTYPE
UnregisterFilterInstance(
3665 virtual HRESULT STDMETHODCALLTYPE
UnregisterPin(
3669 virtual HRESULT STDMETHODCALLTYPE
EnumMatchingFilters(
3670 IEnumRegFilters
** ppEnum
,
3678 CLSID clsOutSub
) = 0;
3682 typedef struct IFilterMapperVtbl IFilterMapperVtbl
;
3683 struct IFilterMapper
{
3684 const IFilterMapperVtbl
* lpVtbl
;
3686 struct IFilterMapperVtbl
{
3689 /*** IUnknown methods ***/
3690 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
3691 IFilterMapper
* This
,
3695 ULONG (STDMETHODCALLTYPE
*AddRef
)(
3696 IFilterMapper
* This
);
3698 ULONG (STDMETHODCALLTYPE
*Release
)(
3699 IFilterMapper
* This
);
3701 /*** IFilterMapper methods ***/
3702 HRESULT (STDMETHODCALLTYPE
*RegisterFilter
)(
3703 IFilterMapper
* This
,
3708 HRESULT (STDMETHODCALLTYPE
*RegisterFilterInstance
)(
3709 IFilterMapper
* This
,
3714 HRESULT (STDMETHODCALLTYPE
*RegisterPin
)(
3715 IFilterMapper
* This
,
3722 CLSID ConnectsToFilter
,
3723 LPCWSTR ConnectsToPin
);
3725 HRESULT (STDMETHODCALLTYPE
*RegisterPinType
)(
3726 IFilterMapper
* This
,
3732 HRESULT (STDMETHODCALLTYPE
*UnregisterFilter
)(
3733 IFilterMapper
* This
,
3736 HRESULT (STDMETHODCALLTYPE
*UnregisterFilterInstance
)(
3737 IFilterMapper
* This
,
3740 HRESULT (STDMETHODCALLTYPE
*UnregisterPin
)(
3741 IFilterMapper
* This
,
3745 HRESULT (STDMETHODCALLTYPE
*EnumMatchingFilters
)(
3746 IFilterMapper
* This
,
3747 IEnumRegFilters
** ppEnum
,
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)
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;
3793 HRESULT CALLBACK
IFilterMapper_RegisterFilter_Proxy(
3794 IFilterMapper
* This
,
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
,
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
,
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
,
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
,
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
,
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
,
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
,
3875 void __RPC_STUB
IFilterMapper_EnumMatchingFilters_Stub(
3876 struct IRpcStubBuffer
* This
,
3877 struct IRpcChannelBuffer
* pRpcChannelBuffer
,
3878 PRPC_MESSAGE pRpcMessage
,
3879 DWORD
* pdwStubPhase
);
3881 #endif /* __IFilterMapper_INTERFACE_DEFINED__ */
3884 const CLSID
*clsMajorType
;
3885 const CLSID
*clsMinorType
;
3894 const CLSID
*clsConnectsToFilter
;
3895 const WCHAR
*strConnectsToPin
;
3897 const REGPINTYPES
*lpMediaType
;
3907 REG_PINFLAG_B_ZERO
= 0x1,
3908 REG_PINFLAG_B_RENDERER
= 0x2,
3909 REG_PINFLAG_B_MANY
= 0x4,
3910 REG_PINFLAG_B_OUTPUT
= 0x8
3917 const REGPINTYPES
*lpMediaType
;
3919 const REGPINMEDIUM
*lpMedium
;
3920 const CLSID
*clsPinCategory
;
3929 const REGFILTERPINS
*rgPins
;
3933 const REGFILTERPINS2
*rgPins2
;
3938 /*****************************************************************************
3939 * IFilterMapper2 interface
3941 #ifndef __IFilterMapper2_INTERFACE_DEFINED__
3942 #define __IFilterMapper2_INTERFACE_DEFINED__
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
3948 virtual HRESULT STDMETHODCALLTYPE
CreateCategory(
3949 REFCLSID clsidCategory
,
3950 DWORD dwCategoryMerit
,
3951 LPCWSTR Description
) = 0;
3953 virtual HRESULT STDMETHODCALLTYPE
UnregisterFilter(
3954 const CLSID
* pclsidCategory
,
3955 const OLECHAR
* szInstance
,
3956 REFCLSID Filter
) = 0;
3958 virtual HRESULT STDMETHODCALLTYPE
RegisterFilter(
3959 REFCLSID clsidFilter
,
3961 IMoniker
** ppMoniker
,
3962 const CLSID
* pclsidCategory
,
3963 const OLECHAR
* szInstance
,
3964 const REGFILTER2
* prf2
) = 0;
3966 virtual HRESULT STDMETHODCALLTYPE
EnumMatchingFilters(
3967 IEnumMoniker
** ppEnum
,
3973 const GUID
* pInputTypes
,
3974 const REGPINMEDIUM
* pMedIn
,
3975 const CLSID
* pPinCategoryIn
,
3979 const GUID
* pOutputTypes
,
3980 const REGPINMEDIUM
* pMedOut
,
3981 const CLSID
* pPinCategoryOut
) = 0;
3985 typedef struct IFilterMapper2Vtbl IFilterMapper2Vtbl
;
3986 struct IFilterMapper2
{
3987 const IFilterMapper2Vtbl
* lpVtbl
;
3989 struct IFilterMapper2Vtbl
{
3992 /*** IUnknown methods ***/
3993 HRESULT (STDMETHODCALLTYPE
*QueryInterface
)(
3994 IFilterMapper2
* This
,
3998 ULONG (STDMETHODCALLTYPE
*AddRef
)(
3999 IFilterMapper2
* This
);
4001 ULONG (STDMETHODCALLTYPE
*Release
)(
4002 IFilterMapper2
* This
);
4004 /*** IFilterMapper2 methods ***/
4005 HRESULT (STDMETHODCALLTYPE
*CreateCategory
)(
4006 IFilterMapper2
* This
,
4007 REFCLSID clsidCategory
,
4008 DWORD dwCategoryMerit
,
4009 LPCWSTR Description
);
4011 HRESULT (STDMETHODCALLTYPE
*UnregisterFilter
)(
4012 IFilterMapper2
* This
,
4013 const CLSID
* pclsidCategory
,
4014 const OLECHAR
* szInstance
,
4017 HRESULT (STDMETHODCALLTYPE
*RegisterFilter
)(
4018 IFilterMapper2
* This
,
4019 REFCLSID clsidFilter
,
4021 IMoniker
** ppMoniker
,
4022 const CLSID
* pclsidCategory
,
4023 const OLECHAR
* szInstance
,
4024 const REGFILTER2
* prf2
);
4026 HRESULT (STDMETHODCALLTYPE
*EnumMatchingFilters
)(
4027 IFilterMapper2
* This
,
4028 IEnumMoniker
** ppEnum
,
4034 const GUID
* pInputTypes
,
4035 const REGPINMEDIUM
* pMedIn
,
4036 const CLSID
* pPinCategoryIn
,
4040 const GUID
* pOutputTypes
,
4041 const REGPINMEDIUM
* pMedOut
,
4042 const CLSID
* pPinCategoryOut
);
4048 /*** IUnknown methods ***/
4049 #define IFilterMapper2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)