2 * Header file for Wine's strmbase implementation
4 * Copyright 2003 Robert Shearman
5 * Copyright 2010 Aric Stewart, CodeWeavers
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/list.h"
24 HRESULT WINAPI
CopyMediaType(AM_MEDIA_TYPE
* pDest
, const AM_MEDIA_TYPE
*pSrc
);
25 void WINAPI
FreeMediaType(AM_MEDIA_TYPE
* pMediaType
);
26 AM_MEDIA_TYPE
* WINAPI
CreateMediaType(AM_MEDIA_TYPE
const * pSrc
);
27 void WINAPI
DeleteMediaType(AM_MEDIA_TYPE
* pMediaType
);
31 typedef struct BasePin
35 LPCRITICAL_SECTION pCritSec
;
38 AM_MEDIA_TYPE mtCurrent
;
39 REFERENCE_TIME tStart
;
43 const struct BasePinFuncTable
* pFuncsTable
;
46 typedef HRESULT (WINAPI
*BasePin_CheckMediaType
)(BasePin
*This
, const AM_MEDIA_TYPE
*pmt
);
47 typedef HRESULT (WINAPI
*BasePin_AttemptConnection
)(BasePin
*This
, IPin
*pReceivePin
, const AM_MEDIA_TYPE
*pmt
);
48 typedef LONG (WINAPI
*BasePin_GetMediaTypeVersion
)(BasePin
*This
);
49 typedef HRESULT (WINAPI
*BasePin_GetMediaType
)(BasePin
*This
, int iPosition
, AM_MEDIA_TYPE
*amt
);
51 typedef struct BasePinFuncTable
{
52 /* Required for Input Pins*/
53 BasePin_CheckMediaType pfnCheckMediaType
;
54 /* Required for Output Pins*/
55 BasePin_AttemptConnection pfnAttemptConnection
;
56 /* Required for BasePinImpl_EnumMediaTypes */
57 BasePin_GetMediaTypeVersion pfnGetMediaTypeVersion
;
58 BasePin_GetMediaType pfnGetMediaType
;
61 typedef struct BaseOutputPin
63 /* inheritance C style! */
65 IMemInputPin
* pMemInputPin
;
66 IMemAllocator
* pAllocator
;
68 const struct BaseOutputPinFuncTable
* pFuncsTable
;
71 typedef HRESULT (WINAPI
*BaseOutputPin_DecideBufferSize
)(BaseOutputPin
*This
, IMemAllocator
*pAlloc
, ALLOCATOR_PROPERTIES
*ppropInputRequest
);
72 typedef HRESULT (WINAPI
*BaseOutputPin_DecideAllocator
)(BaseOutputPin
*This
, IMemInputPin
*pPin
, IMemAllocator
**pAlloc
);
73 typedef HRESULT (WINAPI
*BaseOutputPin_BreakConnect
)(BaseOutputPin
* This
);
75 typedef struct BaseOutputPinFuncTable
{
76 BasePinFuncTable base
;
78 /* Required for BaseOutputPinImpl_DecideAllocator */
79 BaseOutputPin_DecideBufferSize pfnDecideBufferSize
;
80 /* Required for BaseOutputPinImpl_AttemptConnection */
81 BaseOutputPin_DecideAllocator pfnDecideAllocator
;
82 BaseOutputPin_BreakConnect pfnBreakConnect
;
83 } BaseOutputPinFuncTable
;
85 typedef struct BaseInputPin
87 /* inheritance C style! */
90 IMemInputPin IMemInputPin_iface
;
91 IMemAllocator
* pAllocator
;
92 BOOL flushing
, end_of_stream
;
93 IMemAllocator
*preferred_allocator
;
95 const struct BaseInputPinFuncTable
* pFuncsTable
;
98 typedef HRESULT (WINAPI
*BaseInputPin_Receive
)(BaseInputPin
*This
, IMediaSample
*pSample
);
100 typedef struct BaseInputPinFuncTable
{
101 BasePinFuncTable base
;
103 BaseInputPin_Receive pfnReceive
;
104 } BaseInputPinFuncTable
;
107 HRESULT WINAPI
BasePinImpl_GetMediaType(BasePin
*This
, int iPosition
, AM_MEDIA_TYPE
*pmt
);
108 LONG WINAPI
BasePinImpl_GetMediaTypeVersion(BasePin
*This
);
109 ULONG WINAPI
BasePinImpl_AddRef(IPin
* iface
);
110 HRESULT WINAPI
BasePinImpl_Disconnect(IPin
* iface
);
111 HRESULT WINAPI
BasePinImpl_ConnectedTo(IPin
* iface
, IPin
** ppPin
);
112 HRESULT WINAPI
BasePinImpl_ConnectionMediaType(IPin
* iface
, AM_MEDIA_TYPE
* pmt
);
113 HRESULT WINAPI
BasePinImpl_QueryPinInfo(IPin
* iface
, PIN_INFO
* pInfo
);
114 HRESULT WINAPI
BasePinImpl_QueryDirection(IPin
* iface
, PIN_DIRECTION
* pPinDir
);
115 HRESULT WINAPI
BasePinImpl_QueryId(IPin
* iface
, LPWSTR
* Id
);
116 HRESULT WINAPI
BasePinImpl_QueryAccept(IPin
* iface
, const AM_MEDIA_TYPE
* pmt
);
117 HRESULT WINAPI
BasePinImpl_EnumMediaTypes(IPin
* iface
, IEnumMediaTypes
** ppEnum
);
118 HRESULT WINAPI
BasePinImpl_QueryInternalConnections(IPin
* iface
, IPin
** apPin
, ULONG
* cPin
);
119 HRESULT WINAPI
BasePinImpl_NewSegment(IPin
* iface
, REFERENCE_TIME tStart
, REFERENCE_TIME tStop
, double dRate
);
121 /* Base Output Pin */
122 HRESULT WINAPI
BaseOutputPinImpl_QueryInterface(IPin
* iface
, REFIID riid
, LPVOID
* ppv
);
123 ULONG WINAPI
BaseOutputPinImpl_Release(IPin
* iface
);
124 HRESULT WINAPI
BaseOutputPinImpl_Connect(IPin
* iface
, IPin
* pReceivePin
, const AM_MEDIA_TYPE
* pmt
);
125 HRESULT WINAPI
BaseOutputPinImpl_ReceiveConnection(IPin
* iface
, IPin
* pReceivePin
, const AM_MEDIA_TYPE
* pmt
);
126 HRESULT WINAPI
BaseOutputPinImpl_Disconnect(IPin
* iface
);
127 HRESULT WINAPI
BaseOutputPinImpl_EndOfStream(IPin
* iface
);
128 HRESULT WINAPI
BaseOutputPinImpl_BeginFlush(IPin
* iface
);
129 HRESULT WINAPI
BaseOutputPinImpl_EndFlush(IPin
* iface
);
131 HRESULT WINAPI
BaseOutputPinImpl_GetDeliveryBuffer(BaseOutputPin
* This
, IMediaSample
** ppSample
, REFERENCE_TIME
* tStart
, REFERENCE_TIME
* tStop
, DWORD dwFlags
);
132 HRESULT WINAPI
BaseOutputPinImpl_Deliver(BaseOutputPin
* This
, IMediaSample
* pSample
);
133 HRESULT WINAPI
BaseOutputPinImpl_BreakConnect(BaseOutputPin
* This
);
134 HRESULT WINAPI
BaseOutputPinImpl_Active(BaseOutputPin
* This
);
135 HRESULT WINAPI
BaseOutputPinImpl_Inactive(BaseOutputPin
* This
);
136 HRESULT WINAPI
BaseOutputPinImpl_InitAllocator(BaseOutputPin
*This
, IMemAllocator
**pMemAlloc
);
137 HRESULT WINAPI
BaseOutputPinImpl_DecideAllocator(BaseOutputPin
*This
, IMemInputPin
*pPin
, IMemAllocator
**pAlloc
);
138 HRESULT WINAPI
BaseOutputPinImpl_AttemptConnection(BasePin
*This
, IPin
* pReceivePin
, const AM_MEDIA_TYPE
* pmt
);
140 HRESULT WINAPI
BaseOutputPin_Construct(const IPinVtbl
*OutputPin_Vtbl
, LONG outputpin_size
, const PIN_INFO
* pPinInfo
, const BaseOutputPinFuncTable
* pBaseOutputFuncsTable
, LPCRITICAL_SECTION pCritSec
, IPin
** ppPin
);
141 HRESULT WINAPI
BaseOutputPin_Destroy(BaseOutputPin
*This
);
144 HRESULT WINAPI
BaseInputPinImpl_QueryInterface(IPin
* iface
, REFIID riid
, LPVOID
* ppv
);
145 ULONG WINAPI
BaseInputPinImpl_Release(IPin
* iface
);
146 HRESULT WINAPI
BaseInputPinImpl_Connect(IPin
* iface
, IPin
* pConnector
, const AM_MEDIA_TYPE
* pmt
);
147 HRESULT WINAPI
BaseInputPinImpl_ReceiveConnection(IPin
* iface
, IPin
* pReceivePin
, const AM_MEDIA_TYPE
* pmt
);
148 HRESULT WINAPI
BaseInputPinImpl_QueryAccept(IPin
* iface
, const AM_MEDIA_TYPE
* pmt
);
149 HRESULT WINAPI
BaseInputPinImpl_EndOfStream(IPin
* iface
);
150 HRESULT WINAPI
BaseInputPinImpl_BeginFlush(IPin
* iface
);
151 HRESULT WINAPI
BaseInputPinImpl_EndFlush(IPin
* iface
);
152 HRESULT WINAPI
BaseInputPinImpl_NewSegment(IPin
* iface
, REFERENCE_TIME tStart
, REFERENCE_TIME tStop
, double dRate
);
154 HRESULT
BaseInputPin_Construct(const IPinVtbl
*InputPin_Vtbl
, LONG inputpin_size
, const PIN_INFO
* pPinInfo
,
155 const BaseInputPinFuncTable
* pBaseInputFuncsTable
,
156 LPCRITICAL_SECTION pCritSec
, IMemAllocator
*, IPin
** ppPin
);
157 HRESULT WINAPI
BaseInputPin_Destroy(BaseInputPin
*This
);
159 typedef struct BaseFilter
161 IBaseFilter IBaseFilter_iface
;
163 CRITICAL_SECTION csFilter
;
166 REFERENCE_TIME rtStreamStart
;
167 IReferenceClock
* pClock
;
168 FILTER_INFO filterInfo
;
172 const struct BaseFilterFuncTable
* pFuncsTable
;
175 typedef IPin
* (WINAPI
*BaseFilter_GetPin
)(BaseFilter
* iface
, int iPosition
);
176 typedef LONG (WINAPI
*BaseFilter_GetPinCount
)(BaseFilter
* iface
);
177 typedef LONG (WINAPI
*BaseFilter_GetPinVersion
)(BaseFilter
* iface
);
179 typedef struct BaseFilterFuncTable
{
181 BaseFilter_GetPin pfnGetPin
;
182 BaseFilter_GetPinCount pfnGetPinCount
;
183 } BaseFilterFuncTable
;
185 HRESULT WINAPI
BaseFilterImpl_QueryInterface(IBaseFilter
* iface
, REFIID riid
, LPVOID
* ppv
);
186 ULONG WINAPI
BaseFilterImpl_AddRef(IBaseFilter
* iface
);
187 ULONG WINAPI
BaseFilterImpl_Release(IBaseFilter
* iface
);
188 HRESULT WINAPI
BaseFilterImpl_GetClassID(IBaseFilter
* iface
, CLSID
* pClsid
);
189 HRESULT WINAPI
BaseFilterImpl_GetState(IBaseFilter
* iface
, DWORD dwMilliSecsTimeout
, FILTER_STATE
*pState
);
190 HRESULT WINAPI
BaseFilterImpl_SetSyncSource(IBaseFilter
* iface
, IReferenceClock
*pClock
);
191 HRESULT WINAPI
BaseFilterImpl_GetSyncSource(IBaseFilter
* iface
, IReferenceClock
**ppClock
);
192 HRESULT WINAPI
BaseFilterImpl_EnumPins(IBaseFilter
* iface
, IEnumPins
**ppEnum
);
193 HRESULT WINAPI
BaseFilterImpl_QueryFilterInfo(IBaseFilter
* iface
, FILTER_INFO
*pInfo
);
194 HRESULT WINAPI
BaseFilterImpl_JoinFilterGraph(IBaseFilter
* iface
, IFilterGraph
*pGraph
, LPCWSTR pName
);
195 HRESULT WINAPI
BaseFilterImpl_QueryVendorInfo(IBaseFilter
* iface
, LPWSTR
*pVendorInfo
);
197 LONG WINAPI
BaseFilterImpl_GetPinVersion(BaseFilter
* This
);
198 VOID WINAPI
BaseFilterImpl_IncrementPinVersion(BaseFilter
* This
);
200 HRESULT WINAPI
BaseFilter_Init(BaseFilter
* This
, const IBaseFilterVtbl
*Vtbl
, const CLSID
*pClsid
, DWORD_PTR DebugInfo
, const BaseFilterFuncTable
* pBaseFuncsTable
);
201 HRESULT WINAPI
BaseFilter_Destroy(BaseFilter
* This
);
204 HRESULT WINAPI
EnumMediaTypes_Construct(BasePin
*iface
, BasePin_GetMediaType enumFunc
, BasePin_GetMediaTypeVersion versionFunc
, IEnumMediaTypes
** ppEnum
);
206 HRESULT WINAPI
EnumPins_Construct(BaseFilter
*base
, BaseFilter_GetPin receive_pin
, BaseFilter_GetPinCount receive_pincount
, BaseFilter_GetPinVersion receive_version
, IEnumPins
** ppEnum
);
208 /* Transform Filter */
209 typedef struct TransformFilter
216 CRITICAL_SECTION csReceive
;
218 const struct TransformFilterFuncTable
* pFuncsTable
;
219 struct QualityControlImpl
*qcimpl
;
220 /* IMediaSeeking and IMediaPosition are implemented by ISeekingPassThru */
221 IUnknown
*seekthru_unk
;
224 typedef HRESULT (WINAPI
*TransformFilter_DecideBufferSize
) (TransformFilter
*iface
, IMemAllocator
*pAlloc
, ALLOCATOR_PROPERTIES
*ppropInputRequest
);
225 typedef HRESULT (WINAPI
*TransformFilter_StartStreaming
) (TransformFilter
*iface
);
226 typedef HRESULT (WINAPI
*TransformFilter_StopStreaming
) (TransformFilter
*iface
);
227 typedef HRESULT (WINAPI
*TransformFilter_Receive
) (TransformFilter
* iface
, IMediaSample
* pIn
);
228 typedef HRESULT (WINAPI
*TransformFilter_CompleteConnect
) (TransformFilter
*iface
, PIN_DIRECTION dir
, IPin
*pPin
);
229 typedef HRESULT (WINAPI
*TransformFilter_BreakConnect
) (TransformFilter
*iface
, PIN_DIRECTION dir
);
230 typedef HRESULT (WINAPI
*TransformFilter_SetMediaType
) (TransformFilter
*iface
, PIN_DIRECTION dir
, const AM_MEDIA_TYPE
*pMediaType
);
231 typedef HRESULT (WINAPI
*TransformFilter_CheckInputType
) (TransformFilter
*iface
, const AM_MEDIA_TYPE
*pMediaType
);
232 typedef HRESULT (WINAPI
*TransformFilter_EndOfStream
) (TransformFilter
*iface
);
233 typedef HRESULT (WINAPI
*TransformFilter_BeginFlush
) (TransformFilter
*iface
);
234 typedef HRESULT (WINAPI
*TransformFilter_EndFlush
) (TransformFilter
*iface
);
235 typedef HRESULT (WINAPI
*TransformFilter_NewSegment
) (TransformFilter
*iface
,
236 REFERENCE_TIME tStart
, REFERENCE_TIME tStop
, double dRate
);
237 typedef HRESULT (WINAPI
*TransformFilter_Notify
) (TransformFilter
*iface
, IBaseFilter
*sender
, Quality qm
);
239 typedef struct TransformFilterFuncTable
{
241 TransformFilter_DecideBufferSize pfnDecideBufferSize
;
243 TransformFilter_StartStreaming pfnStartStreaming
;
244 TransformFilter_Receive pfnReceive
;
245 TransformFilter_StopStreaming pfnStopStreaming
;
246 TransformFilter_CheckInputType pfnCheckInputType
;
247 TransformFilter_SetMediaType pfnSetMediaType
;
248 TransformFilter_CompleteConnect pfnCompleteConnect
;
249 TransformFilter_BreakConnect pfnBreakConnect
;
250 TransformFilter_EndOfStream pfnEndOfStream
;
251 TransformFilter_BeginFlush pfnBeginFlush
;
252 TransformFilter_EndFlush pfnEndFlush
;
253 TransformFilter_NewSegment pfnNewSegment
;
254 TransformFilter_Notify pfnNotify
;
255 } TransformFilterFuncTable
;
257 HRESULT WINAPI
TransformFilterImpl_QueryInterface(IBaseFilter
* iface
, REFIID riid
, LPVOID
* ppv
);
258 ULONG WINAPI
TransformFilterImpl_Release(IBaseFilter
* iface
);
259 HRESULT WINAPI
TransformFilterImpl_Stop(IBaseFilter
* iface
);
260 HRESULT WINAPI
TransformFilterImpl_Pause(IBaseFilter
* iface
);
261 HRESULT WINAPI
TransformFilterImpl_Run(IBaseFilter
* iface
, REFERENCE_TIME tStart
);
262 HRESULT WINAPI
TransformFilterImpl_FindPin(IBaseFilter
* iface
, LPCWSTR Id
, IPin
**ppPin
);
263 HRESULT WINAPI
TransformFilterImpl_Notify(TransformFilter
*iface
, IBaseFilter
*sender
, Quality qm
);
265 HRESULT
TransformFilter_Construct( const IBaseFilterVtbl
*filterVtbl
, LONG filter_size
, const CLSID
* pClsid
, const TransformFilterFuncTable
* pFuncsTable
, IBaseFilter
** ppTransformFilter
);
268 typedef HRESULT (WINAPI
*SourceSeeking_ChangeRate
)(IMediaSeeking
*iface
);
269 typedef HRESULT (WINAPI
*SourceSeeking_ChangeStart
)(IMediaSeeking
*iface
);
270 typedef HRESULT (WINAPI
*SourceSeeking_ChangeStop
)(IMediaSeeking
*iface
);
272 typedef struct SourceSeeking
274 IMediaSeeking IMediaSeeking_iface
;
277 SourceSeeking_ChangeStop fnChangeStop
;
278 SourceSeeking_ChangeStart fnChangeStart
;
279 SourceSeeking_ChangeRate fnChangeRate
;
280 DWORD dwCapabilities
;
282 LONGLONG llCurrent
, llStop
, llDuration
;
284 PCRITICAL_SECTION crst
;
287 HRESULT
SourceSeeking_Init(SourceSeeking
*pSeeking
, const IMediaSeekingVtbl
*Vtbl
, SourceSeeking_ChangeStop fnChangeStop
, SourceSeeking_ChangeStart fnChangeStart
, SourceSeeking_ChangeRate fnChangeRate
, PCRITICAL_SECTION crit_sect
);
289 HRESULT WINAPI
SourceSeekingImpl_GetCapabilities(IMediaSeeking
* iface
, DWORD
* pCapabilities
);
290 HRESULT WINAPI
SourceSeekingImpl_CheckCapabilities(IMediaSeeking
* iface
, DWORD
* pCapabilities
);
291 HRESULT WINAPI
SourceSeekingImpl_IsFormatSupported(IMediaSeeking
* iface
, const GUID
* pFormat
);
292 HRESULT WINAPI
SourceSeekingImpl_QueryPreferredFormat(IMediaSeeking
* iface
, GUID
* pFormat
);
293 HRESULT WINAPI
SourceSeekingImpl_GetTimeFormat(IMediaSeeking
* iface
, GUID
* pFormat
);
294 HRESULT WINAPI
SourceSeekingImpl_IsUsingTimeFormat(IMediaSeeking
* iface
, const GUID
* pFormat
);
295 HRESULT WINAPI
SourceSeekingImpl_SetTimeFormat(IMediaSeeking
* iface
, const GUID
* pFormat
);
296 HRESULT WINAPI
SourceSeekingImpl_GetDuration(IMediaSeeking
* iface
, LONGLONG
* pDuration
);
297 HRESULT WINAPI
SourceSeekingImpl_GetStopPosition(IMediaSeeking
* iface
, LONGLONG
* pStop
);
298 HRESULT WINAPI
SourceSeekingImpl_GetCurrentPosition(IMediaSeeking
* iface
, LONGLONG
* pCurrent
);
299 HRESULT WINAPI
SourceSeekingImpl_ConvertTimeFormat(IMediaSeeking
* iface
, LONGLONG
* pTarget
, const GUID
* pTargetFormat
, LONGLONG Source
, const GUID
* pSourceFormat
);
300 HRESULT WINAPI
SourceSeekingImpl_SetPositions(IMediaSeeking
* iface
, LONGLONG
* pCurrent
, DWORD dwCurrentFlags
, LONGLONG
* pStop
, DWORD dwStopFlags
);
301 HRESULT WINAPI
SourceSeekingImpl_GetPositions(IMediaSeeking
* iface
, LONGLONG
* pCurrent
, LONGLONG
* pStop
);
302 HRESULT WINAPI
SourceSeekingImpl_GetAvailable(IMediaSeeking
* iface
, LONGLONG
* pEarliest
, LONGLONG
* pLatest
);
303 HRESULT WINAPI
SourceSeekingImpl_SetRate(IMediaSeeking
* iface
, double dRate
);
304 HRESULT WINAPI
SourceSeekingImpl_GetRate(IMediaSeeking
* iface
, double * dRate
);
305 HRESULT WINAPI
SourceSeekingImpl_GetPreroll(IMediaSeeking
* iface
, LONGLONG
* pPreroll
);
308 HRESULT WINAPI
RendererPosPassThru_RegisterMediaTime(IUnknown
*iface
, REFERENCE_TIME start
);
309 HRESULT WINAPI
RendererPosPassThru_ResetMediaTime(IUnknown
*iface
);
310 HRESULT WINAPI
RendererPosPassThru_EOS(IUnknown
*iface
);
312 HRESULT WINAPI
CreatePosPassThru(IUnknown
* pUnkOuter
, BOOL bRenderer
, IPin
*pPin
, IUnknown
**ppPassThru
);
313 HRESULT WINAPI
PosPassThru_Construct(IUnknown
* pUnkOuter
, LPVOID
*ppPassThru
);
315 /* Filter Registration */
317 typedef REGPINTYPES AMOVIESETUP_MEDIATYPE
;
318 typedef REGFILTERPINS AMOVIESETUP_PIN
;
320 typedef struct AMOVIESETUP_FILTER
{
325 const AMOVIESETUP_PIN
*pPin
;
326 } AMOVIESETUP_FILTER
, *LPAMOVIESETUP_FILTER
;
328 typedef IUnknown
*(CALLBACK
*LPFNNewCOMObject
)(LPUNKNOWN pUnkOuter
, HRESULT
*phr
);
329 typedef void (CALLBACK
*LPFNInitRoutine
)(BOOL bLoading
, const CLSID
*rclsid
);
331 typedef struct tagFactoryTemplate
{
333 const CLSID
*m_ClsID
;
334 LPFNNewCOMObject m_lpfnNew
;
335 LPFNInitRoutine m_lpfnInit
;
336 const AMOVIESETUP_FILTER
*m_pAMovieSetup_Filter
;
339 HRESULT WINAPI
AMovieDllRegisterServer2(BOOL bRegister
);
340 HRESULT WINAPI
AMovieSetupRegisterFilter2(const AMOVIESETUP_FILTER
*pFilter
, IFilterMapper2
*pIFM2
, BOOL bRegister
);
343 typedef struct tagOutputQueue
{
344 CRITICAL_SECTION csQueue
;
346 BaseOutputPin
* pInputPin
;
349 HANDLE hProcessQueue
;
356 struct list SampleList
;
358 const struct OutputQueueFuncTable
* pFuncsTable
;
361 typedef DWORD (WINAPI
*OutputQueue_ThreadProc
)(OutputQueue
*This
);
363 typedef struct OutputQueueFuncTable
365 OutputQueue_ThreadProc pfnThreadProc
;
366 } OutputQueueFuncTable
;
368 HRESULT WINAPI
OutputQueue_Construct( BaseOutputPin
*pInputPin
, BOOL bAuto
,
369 BOOL bQueue
, LONG lBatchSize
, BOOL bBatchExact
, DWORD dwPriority
,
370 const OutputQueueFuncTable
* pFuncsTable
, OutputQueue
**ppOutputQueue
);
371 HRESULT WINAPI
OutputQueue_Destroy(OutputQueue
*pOutputQueue
);
372 HRESULT WINAPI
OutputQueue_ReceiveMultiple(OutputQueue
*pOutputQueue
, IMediaSample
**ppSamples
, LONG nSamples
, LONG
*nSamplesProcessed
);
373 HRESULT WINAPI
OutputQueue_Receive(OutputQueue
*pOutputQueue
, IMediaSample
*pSample
);
374 VOID WINAPI
OutputQueue_EOS(OutputQueue
*pOutputQueue
);
375 VOID WINAPI
OutputQueue_SendAnyway(OutputQueue
*pOutputQueue
);
376 DWORD WINAPI
OutputQueueImpl_ThreadProc(OutputQueue
*pOutputQueue
);
378 typedef struct tagBaseWindow
387 DWORD WindowStylesEx
;
390 const struct BaseWindowFuncTable
* pFuncsTable
;
393 typedef LPWSTR (WINAPI
*BaseWindow_GetClassWindowStyles
)(BaseWindow
*This
, DWORD
*pClassStyles
, DWORD
*pWindowStyles
, DWORD
*pWindowStylesEx
);
394 typedef RECT (WINAPI
*BaseWindow_GetDefaultRect
)(BaseWindow
*This
);
395 typedef BOOL (WINAPI
*BaseWindow_PossiblyEatMessage
)(BaseWindow
*This
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
396 typedef LRESULT (WINAPI
*BaseWindow_OnReceiveMessage
)(BaseWindow
*This
, HWND hwnd
, INT uMsg
, WPARAM wParam
, LPARAM lParam
);
397 typedef BOOL (WINAPI
*BaseWindow_OnSize
)(BaseWindow
*This
, LONG Height
, LONG Width
);
399 typedef struct BaseWindowFuncTable
402 BaseWindow_GetClassWindowStyles pfnGetClassWindowStyles
;
403 BaseWindow_GetDefaultRect pfnGetDefaultRect
;
404 /* Optional, WinProc Related */
405 BaseWindow_OnReceiveMessage pfnOnReceiveMessage
;
406 BaseWindow_PossiblyEatMessage pfnPossiblyEatMessage
;
407 BaseWindow_OnSize pfnOnSize
;
408 } BaseWindowFuncTable
;
410 HRESULT WINAPI
BaseWindow_Init(BaseWindow
*pBaseWindow
, const BaseWindowFuncTable
* pFuncsTable
);
411 HRESULT WINAPI
BaseWindow_Destroy(BaseWindow
*pBaseWindow
);
413 HRESULT WINAPI
BaseWindowImpl_PrepareWindow(BaseWindow
*This
);
414 HRESULT WINAPI
BaseWindowImpl_DoneWithWindow(BaseWindow
*This
);
415 RECT WINAPI
BaseWindowImpl_GetDefaultRect(BaseWindow
*This
);
416 LRESULT WINAPI
BaseWindowImpl_OnReceiveMessage(BaseWindow
*This
, HWND hwnd
, INT uMsg
, WPARAM wParam
, LPARAM lParam
);
417 BOOL WINAPI
BaseWindowImpl_OnSize(BaseWindow
*This
, LONG Height
, LONG Width
);
420 ITypeInfo
*pTypeInfo
;
423 HRESULT WINAPI
BaseDispatch_Init(BaseDispatch
*This
, REFIID riid
);
424 HRESULT WINAPI
BaseDispatch_Destroy(BaseDispatch
*This
);
425 HRESULT WINAPI
BaseDispatchImpl_GetIDsOfNames(BaseDispatch
*This
, REFIID riid
, OLECHAR
**rgszNames
, UINT cNames
, LCID lcid
, DISPID
*rgdispid
);
426 HRESULT WINAPI
BaseDispatchImpl_GetTypeInfo(BaseDispatch
*This
, REFIID riid
, UINT itinfo
, LCID lcid
, ITypeInfo
**pptinfo
);
427 HRESULT WINAPI
BaseDispatchImpl_GetTypeInfoCount(BaseDispatch
*This
, UINT
*pctinfo
);
429 #ifdef __IVideoWindow_FWD_DEFINED__
430 typedef struct tagBaseControlWindow
432 BaseWindow baseWindow
;
433 IVideoWindow IVideoWindow_iface
;
434 BaseDispatch baseDispatch
;
440 CRITICAL_SECTION
* pInterfaceLock
;
444 HRESULT WINAPI
BaseControlWindow_Init(BaseControlWindow
*pControlWindow
, const IVideoWindowVtbl
*lpVtbl
, BaseFilter
*owner
, CRITICAL_SECTION
*lock
, BasePin
* pPin
, const BaseWindowFuncTable
* pFuncsTable
);
445 HRESULT WINAPI
BaseControlWindow_Destroy(BaseControlWindow
*pControlWindow
);
447 BOOL WINAPI
BaseControlWindowImpl_PossiblyEatMessage(BaseWindow
*This
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
448 HRESULT WINAPI
BaseControlWindowImpl_GetTypeInfoCount(IVideoWindow
*iface
, UINT
*pctinfo
);
449 HRESULT WINAPI
BaseControlWindowImpl_GetTypeInfo(IVideoWindow
*iface
, UINT iTInfo
, LCID lcid
, ITypeInfo
**ppTInfo
);
450 HRESULT WINAPI
BaseControlWindowImpl_GetIDsOfNames(IVideoWindow
*iface
, REFIID riid
, LPOLESTR
*rgszNames
, UINT cNames
, LCID lcid
, DISPID
*rgDispId
);
451 HRESULT WINAPI
BaseControlWindowImpl_Invoke(IVideoWindow
*iface
, DISPID dispIdMember
, REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
, VARIANT
*pVarResult
, EXCEPINFO
*pExepInfo
, UINT
*puArgErr
);
452 HRESULT WINAPI
BaseControlWindowImpl_put_Caption(IVideoWindow
*iface
, BSTR strCaption
);
453 HRESULT WINAPI
BaseControlWindowImpl_get_Caption(IVideoWindow
*iface
, BSTR
*strCaption
);
454 HRESULT WINAPI
BaseControlWindowImpl_put_WindowStyle(IVideoWindow
*iface
, LONG WindowStyle
);
455 HRESULT WINAPI
BaseControlWindowImpl_get_WindowStyle(IVideoWindow
*iface
, LONG
*WindowStyle
);
456 HRESULT WINAPI
BaseControlWindowImpl_put_WindowStyleEx(IVideoWindow
*iface
, LONG WindowStyleEx
);
457 HRESULT WINAPI
BaseControlWindowImpl_get_WindowStyleEx(IVideoWindow
*iface
, LONG
*WindowStyleEx
);
458 HRESULT WINAPI
BaseControlWindowImpl_put_AutoShow(IVideoWindow
*iface
, LONG AutoShow
);
459 HRESULT WINAPI
BaseControlWindowImpl_get_AutoShow(IVideoWindow
*iface
, LONG
*AutoShow
);
460 HRESULT WINAPI
BaseControlWindowImpl_put_WindowState(IVideoWindow
*iface
, LONG WindowState
);
461 HRESULT WINAPI
BaseControlWindowImpl_get_WindowState(IVideoWindow
*iface
, LONG
*WindowState
);
462 HRESULT WINAPI
BaseControlWindowImpl_put_BackgroundPalette(IVideoWindow
*iface
, LONG BackgroundPalette
);
463 HRESULT WINAPI
BaseControlWindowImpl_get_BackgroundPalette(IVideoWindow
*iface
, LONG
*pBackgroundPalette
);
464 HRESULT WINAPI
BaseControlWindowImpl_put_Visible(IVideoWindow
*iface
, LONG Visible
);
465 HRESULT WINAPI
BaseControlWindowImpl_get_Visible(IVideoWindow
*iface
, LONG
*pVisible
);
466 HRESULT WINAPI
BaseControlWindowImpl_put_Left(IVideoWindow
*iface
, LONG Left
);
467 HRESULT WINAPI
BaseControlWindowImpl_get_Left(IVideoWindow
*iface
, LONG
*pLeft
);
468 HRESULT WINAPI
BaseControlWindowImpl_put_Width(IVideoWindow
*iface
, LONG Width
);
469 HRESULT WINAPI
BaseControlWindowImpl_get_Width(IVideoWindow
*iface
, LONG
*pWidth
);
470 HRESULT WINAPI
BaseControlWindowImpl_put_Top(IVideoWindow
*iface
, LONG Top
);
471 HRESULT WINAPI
BaseControlWindowImpl_get_Top(IVideoWindow
*iface
, LONG
*pTop
);
473 HRESULT WINAPI
BaseControlWindowImpl_put_Height(IVideoWindow
*iface
, LONG Height
);
474 HRESULT WINAPI
BaseControlWindowImpl_get_Height(IVideoWindow
*iface
, LONG
*pHeight
);
475 HRESULT WINAPI
BaseControlWindowImpl_put_Owner(IVideoWindow
*iface
, OAHWND Owner
);
476 HRESULT WINAPI
BaseControlWindowImpl_get_Owner(IVideoWindow
*iface
, OAHWND
*Owner
);
477 HRESULT WINAPI
BaseControlWindowImpl_put_MessageDrain(IVideoWindow
*iface
, OAHWND Drain
);
478 HRESULT WINAPI
BaseControlWindowImpl_get_MessageDrain(IVideoWindow
*iface
, OAHWND
*Drain
);
479 HRESULT WINAPI
BaseControlWindowImpl_get_BorderColor(IVideoWindow
*iface
, LONG
*Color
);
480 HRESULT WINAPI
BaseControlWindowImpl_put_BorderColor(IVideoWindow
*iface
, LONG Color
);
481 HRESULT WINAPI
BaseControlWindowImpl_get_FullScreenMode(IVideoWindow
*iface
, LONG
*FullScreenMode
);
482 HRESULT WINAPI
BaseControlWindowImpl_put_FullScreenMode(IVideoWindow
*iface
, LONG FullScreenMode
);
483 HRESULT WINAPI
BaseControlWindowImpl_SetWindowForeground(IVideoWindow
*iface
, LONG Focus
);
484 HRESULT WINAPI
BaseControlWindowImpl_SetWindowPosition(IVideoWindow
*iface
, LONG Left
, LONG Top
, LONG Width
, LONG Height
);
485 HRESULT WINAPI
BaseControlWindowImpl_GetWindowPosition(IVideoWindow
*iface
, LONG
*pLeft
, LONG
*pTop
, LONG
*pWidth
, LONG
*pHeight
);
486 HRESULT WINAPI
BaseControlWindowImpl_NotifyOwnerMessage(IVideoWindow
*iface
, OAHWND hwnd
, LONG uMsg
, LONG_PTR wParam
, LONG_PTR lParam
);
487 HRESULT WINAPI
BaseControlWindowImpl_GetMinIdealImageSize(IVideoWindow
*iface
, LONG
*pWidth
, LONG
*pHeight
);
488 HRESULT WINAPI
BaseControlWindowImpl_GetMaxIdealImageSize(IVideoWindow
*iface
, LONG
*pWidth
, LONG
*pHeight
);
489 HRESULT WINAPI
BaseControlWindowImpl_GetRestorePosition(IVideoWindow
*iface
, LONG
*pLeft
, LONG
*pTop
, LONG
*pWidth
, LONG
*pHeight
);
490 HRESULT WINAPI
BaseControlWindowImpl_HideCursor(IVideoWindow
*iface
, LONG HideCursor
);
491 HRESULT WINAPI
BaseControlWindowImpl_IsCursorHidden(IVideoWindow
*iface
, LONG
*CursorHidden
);
494 #ifdef __IBasicVideo_FWD_DEFINED__
496 typedef struct tagBaseControlVideo
498 IBasicVideo IBasicVideo_iface
;
499 BaseDispatch baseDispatch
;
502 CRITICAL_SECTION
* pInterfaceLock
;
505 const struct BaseControlVideoFuncTable
* pFuncsTable
;
508 typedef HRESULT (WINAPI
*BaseControlVideo_GetSourceRect
)(BaseControlVideo
* This
, RECT
*pSourceRect
);
509 typedef HRESULT (WINAPI
*BaseControlVideo_GetStaticImage
)(BaseControlVideo
* This
, LONG
*pBufferSize
, LONG
*pDIBImage
);
510 typedef HRESULT (WINAPI
*BaseControlVideo_GetTargetRect
)(BaseControlVideo
* This
, RECT
*pTargetRect
);
511 typedef VIDEOINFOHEADER
* (WINAPI
*BaseControlVideo_GetVideoFormat
)(BaseControlVideo
* This
);
512 typedef HRESULT (WINAPI
*BaseControlVideo_IsDefaultSourceRect
)(BaseControlVideo
* This
);
513 typedef HRESULT (WINAPI
*BaseControlVideo_IsDefaultTargetRect
)(BaseControlVideo
* This
);
514 typedef HRESULT (WINAPI
*BaseControlVideo_SetDefaultSourceRect
)(BaseControlVideo
* This
);
515 typedef HRESULT (WINAPI
*BaseControlVideo_SetDefaultTargetRect
)(BaseControlVideo
* This
);
516 typedef HRESULT (WINAPI
*BaseControlVideo_SetSourceRect
)(BaseControlVideo
* This
, RECT
*pSourceRect
);
517 typedef HRESULT (WINAPI
*BaseControlVideo_SetTargetRect
)(BaseControlVideo
* This
, RECT
*pTargetRect
);
519 typedef struct BaseControlVideoFuncTable
{
521 BaseControlVideo_GetSourceRect pfnGetSourceRect
;
522 BaseControlVideo_GetStaticImage pfnGetStaticImage
;
523 BaseControlVideo_GetTargetRect pfnGetTargetRect
;
524 BaseControlVideo_GetVideoFormat pfnGetVideoFormat
;
525 BaseControlVideo_IsDefaultSourceRect pfnIsDefaultSourceRect
;
526 BaseControlVideo_IsDefaultTargetRect pfnIsDefaultTargetRect
;
527 BaseControlVideo_SetDefaultSourceRect pfnSetDefaultSourceRect
;
528 BaseControlVideo_SetDefaultTargetRect pfnSetDefaultTargetRect
;
529 BaseControlVideo_SetSourceRect pfnSetSourceRect
;
530 BaseControlVideo_SetTargetRect pfnSetTargetRect
;
531 } BaseControlVideoFuncTable
;
533 HRESULT WINAPI
BaseControlVideo_Init(BaseControlVideo
*pControlVideo
, const IBasicVideoVtbl
*lpVtbl
, BaseFilter
*owner
, CRITICAL_SECTION
*lock
, BasePin
* pPin
, const BaseControlVideoFuncTable
* pFuncsTable
);
534 HRESULT WINAPI
BaseControlVideo_Destroy(BaseControlVideo
*pControlVideo
);
536 HRESULT WINAPI
BaseControlVideoImpl_GetTypeInfoCount(IBasicVideo
*iface
, UINT
*pctinfo
);
537 HRESULT WINAPI
BaseControlVideoImpl_GetTypeInfo(IBasicVideo
*iface
, UINT iTInfo
, LCID lcid
, ITypeInfo
**ppTInfo
);
538 HRESULT WINAPI
BaseControlVideoImpl_GetIDsOfNames(IBasicVideo
*iface
, REFIID riid
, LPOLESTR
*rgszNames
, UINT cNames
, LCID lcid
, DISPID
*rgDispId
);
539 HRESULT WINAPI
BaseControlVideoImpl_Invoke(IBasicVideo
*iface
, DISPID dispIdMember
, REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
, VARIANT
*pVarResult
, EXCEPINFO
*pExepInfo
, UINT
*puArgErr
);
540 HRESULT WINAPI
BaseControlVideoImpl_get_AvgTimePerFrame(IBasicVideo
*iface
, REFTIME
*pAvgTimePerFrame
);
541 HRESULT WINAPI
BaseControlVideoImpl_get_BitRate(IBasicVideo
*iface
, LONG
*pBitRate
);
542 HRESULT WINAPI
BaseControlVideoImpl_get_BitErrorRate(IBasicVideo
*iface
, LONG
*pBitErrorRate
);
543 HRESULT WINAPI
BaseControlVideoImpl_get_VideoWidth(IBasicVideo
*iface
, LONG
*pVideoWidth
);
544 HRESULT WINAPI
BaseControlVideoImpl_get_VideoHeight(IBasicVideo
*iface
, LONG
*pVideoHeight
);
545 HRESULT WINAPI
BaseControlVideoImpl_put_SourceLeft(IBasicVideo
*iface
, LONG SourceLeft
);
546 HRESULT WINAPI
BaseControlVideoImpl_get_SourceLeft(IBasicVideo
*iface
, LONG
*pSourceLeft
);
547 HRESULT WINAPI
BaseControlVideoImpl_put_SourceWidth(IBasicVideo
*iface
, LONG SourceWidth
);
548 HRESULT WINAPI
BaseControlVideoImpl_get_SourceWidth(IBasicVideo
*iface
, LONG
*pSourceWidth
);
549 HRESULT WINAPI
BaseControlVideoImpl_put_SourceTop(IBasicVideo
*iface
, LONG SourceTop
);
550 HRESULT WINAPI
BaseControlVideoImpl_get_SourceTop(IBasicVideo
*iface
, LONG
*pSourceTop
);
551 HRESULT WINAPI
BaseControlVideoImpl_put_SourceHeight(IBasicVideo
*iface
, LONG SourceHeight
);
552 HRESULT WINAPI
BaseControlVideoImpl_get_SourceHeight(IBasicVideo
*iface
, LONG
*pSourceHeight
);
553 HRESULT WINAPI
BaseControlVideoImpl_put_DestinationLeft(IBasicVideo
*iface
, LONG DestinationLeft
);
554 HRESULT WINAPI
BaseControlVideoImpl_get_DestinationLeft(IBasicVideo
*iface
, LONG
*pDestinationLeft
);
555 HRESULT WINAPI
BaseControlVideoImpl_put_DestinationWidth(IBasicVideo
*iface
, LONG DestinationWidth
);
556 HRESULT WINAPI
BaseControlVideoImpl_get_DestinationWidth(IBasicVideo
*iface
, LONG
*pDestinationWidth
);
557 HRESULT WINAPI
BaseControlVideoImpl_put_DestinationTop(IBasicVideo
*iface
, LONG DestinationTop
);
558 HRESULT WINAPI
BaseControlVideoImpl_get_DestinationTop(IBasicVideo
*iface
, LONG
*pDestinationTop
);
559 HRESULT WINAPI
BaseControlVideoImpl_put_DestinationHeight(IBasicVideo
*iface
, LONG DestinationHeight
);
560 HRESULT WINAPI
BaseControlVideoImpl_get_DestinationHeight(IBasicVideo
*iface
, LONG
*pDestinationHeight
);
561 HRESULT WINAPI
BaseControlVideoImpl_SetSourcePosition(IBasicVideo
*iface
, LONG Left
, LONG Top
, LONG Width
, LONG Height
);
562 HRESULT WINAPI
BaseControlVideoImpl_GetSourcePosition(IBasicVideo
*iface
, LONG
*pLeft
, LONG
*pTop
, LONG
*pWidth
, LONG
*pHeight
);
563 HRESULT WINAPI
BaseControlVideoImpl_SetDefaultSourcePosition(IBasicVideo
*iface
);
564 HRESULT WINAPI
BaseControlVideoImpl_SetDestinationPosition(IBasicVideo
*iface
, LONG Left
, LONG Top
, LONG Width
, LONG Height
);
565 HRESULT WINAPI
BaseControlVideoImpl_GetDestinationPosition(IBasicVideo
*iface
, LONG
*pLeft
, LONG
*pTop
, LONG
*pWidth
, LONG
*pHeight
);
566 HRESULT WINAPI
BaseControlVideoImpl_SetDefaultDestinationPosition(IBasicVideo
*iface
);
567 HRESULT WINAPI
BaseControlVideoImpl_GetVideoSize(IBasicVideo
*iface
, LONG
*pWidth
, LONG
*pHeight
);
568 HRESULT WINAPI
BaseControlVideoImpl_GetVideoPaletteEntries(IBasicVideo
*iface
, LONG StartIndex
, LONG Entries
, LONG
*pRetrieved
, LONG
*pPalette
);
569 HRESULT WINAPI
BaseControlVideoImpl_GetCurrentImage(IBasicVideo
*iface
, LONG
*pBufferSize
, LONG
*pDIBImage
);
570 HRESULT WINAPI
BaseControlVideoImpl_IsUsingDefaultSource(IBasicVideo
*iface
);
571 HRESULT WINAPI
BaseControlVideoImpl_IsUsingDefaultDestination(IBasicVideo
*iface
);
575 /* BaseRenderer Filter */
576 typedef struct BaseRendererTag
580 BaseInputPin
*pInputPin
;
582 CRITICAL_SECTION csRenderLock
;
586 IMediaSample
*pMediaSample
;
588 IQualityControl
*pQSink
;
589 struct QualityControlImpl
*qcimpl
;
591 const struct BaseRendererFuncTable
* pFuncsTable
;
594 typedef HRESULT (WINAPI
*BaseRenderer_CheckMediaType
)(BaseRenderer
*This
, const AM_MEDIA_TYPE
*pmt
);
595 typedef HRESULT (WINAPI
*BaseRenderer_DoRenderSample
)(BaseRenderer
*This
, IMediaSample
*pMediaSample
);
596 typedef VOID (WINAPI
*BaseRenderer_OnReceiveFirstSample
)(BaseRenderer
*This
, IMediaSample
*pMediaSample
);
597 typedef VOID (WINAPI
*BaseRenderer_OnRenderEnd
)(BaseRenderer
*This
, IMediaSample
*pMediaSample
);
598 typedef VOID (WINAPI
*BaseRenderer_OnRenderStart
)(BaseRenderer
*This
, IMediaSample
*pMediaSample
);
599 typedef VOID (WINAPI
*BaseRenderer_OnStartStreaming
)(BaseRenderer
*This
);
600 typedef VOID (WINAPI
*BaseRenderer_OnStopStreaming
)(BaseRenderer
*This
);
601 typedef VOID (WINAPI
*BaseRenderer_OnWaitEnd
)(BaseRenderer
*This
);
602 typedef VOID (WINAPI
*BaseRenderer_OnWaitStart
)(BaseRenderer
*This
);
603 typedef VOID (WINAPI
*BaseRenderer_PrepareRender
)(BaseRenderer
*This
);
604 typedef HRESULT (WINAPI
*BaseRenderer_ShouldDrawSampleNow
)(BaseRenderer
*This
, IMediaSample
*pMediaSample
, REFERENCE_TIME
*pStartTime
, REFERENCE_TIME
*pEndTime
);
605 typedef HRESULT (WINAPI
*BaseRenderer_PrepareReceive
)(BaseRenderer
*This
, IMediaSample
*pMediaSample
);
606 typedef HRESULT (WINAPI
*BaseRenderer_EndOfStream
)(BaseRenderer
*This
);
607 typedef HRESULT (WINAPI
*BaseRenderer_BeginFlush
) (BaseRenderer
*This
);
608 typedef HRESULT (WINAPI
*BaseRenderer_EndFlush
) (BaseRenderer
*This
);
609 typedef HRESULT (WINAPI
*BaseRenderer_BreakConnect
) (BaseRenderer
*This
);
610 typedef HRESULT (WINAPI
*BaseRenderer_CompleteConnect
) (BaseRenderer
*This
, IPin
*pReceivePin
);
612 typedef struct BaseRendererFuncTable
{
614 BaseRenderer_CheckMediaType pfnCheckMediaType
;
615 BaseRenderer_DoRenderSample pfnDoRenderSample
;
616 /* Optional, Data Handlers */
617 BaseRenderer_OnReceiveFirstSample pfnOnReceiveFirstSample
;
618 BaseRenderer_OnRenderEnd pfnOnRenderEnd
;
619 BaseRenderer_OnRenderStart pfnOnRenderStart
;
620 BaseRenderer_OnStartStreaming pfnOnStartStreaming
;
621 BaseRenderer_OnStopStreaming pfnOnStopStreaming
;
622 BaseRenderer_OnWaitEnd pfnOnWaitEnd
;
623 BaseRenderer_OnWaitStart pfnOnWaitStart
;
624 BaseRenderer_PrepareRender pfnPrepareRender
;
625 BaseRenderer_ShouldDrawSampleNow pfnShouldDrawSampleNow
;
626 BaseRenderer_PrepareReceive pfnPrepareReceive
;
627 /* Optional, Input Pin */
628 BaseRenderer_CompleteConnect pfnCompleteConnect
;
629 BaseRenderer_BreakConnect pfnBreakConnect
;
630 BaseRenderer_EndOfStream pfnEndOfStream
;
631 BaseRenderer_BeginFlush pfnBeginFlush
;
632 BaseRenderer_EndFlush pfnEndFlush
;
633 } BaseRendererFuncTable
;
635 HRESULT WINAPI
BaseRendererImpl_QueryInterface(IBaseFilter
* iface
, REFIID riid
, LPVOID
* ppv
);
636 ULONG WINAPI
BaseRendererImpl_Release(IBaseFilter
* iface
);
637 HRESULT WINAPI
BaseRendererImpl_Receive(BaseRenderer
*This
, IMediaSample
* pSample
);
638 HRESULT WINAPI
BaseRendererImpl_FindPin(IBaseFilter
* iface
, LPCWSTR Id
, IPin
**ppPin
);
639 HRESULT WINAPI
BaseRendererImpl_Stop(IBaseFilter
* iface
);
640 HRESULT WINAPI
BaseRendererImpl_Run(IBaseFilter
* iface
, REFERENCE_TIME tStart
);
641 HRESULT WINAPI
BaseRendererImpl_Pause(IBaseFilter
* iface
);
642 HRESULT WINAPI
BaseRendererImpl_SetSyncSource(IBaseFilter
*iface
, IReferenceClock
*clock
);
643 HRESULT WINAPI
BaseRendererImpl_GetState(IBaseFilter
* iface
, DWORD dwMilliSecsTimeout
, FILTER_STATE
*pState
);
644 HRESULT WINAPI
BaseRendererImpl_EndOfStream(BaseRenderer
* iface
);
645 HRESULT WINAPI
BaseRendererImpl_BeginFlush(BaseRenderer
* iface
);
646 HRESULT WINAPI
BaseRendererImpl_EndFlush(BaseRenderer
* iface
);
647 HRESULT WINAPI
BaseRendererImpl_ClearPendingSample(BaseRenderer
*iface
);
649 HRESULT WINAPI
BaseRenderer_Init(BaseRenderer
*This
, const IBaseFilterVtbl
*Vtbl
, IUnknown
*pUnkOuter
, const CLSID
*pClsid
, DWORD_PTR DebugInfo
, const BaseRendererFuncTable
* pBaseFuncsTable
);
651 #ifdef __IBasicAudio_FWD_DEFINED__
652 typedef struct tagBasicAudio
654 IBasicAudio IBasicAudio_iface
;
655 BaseDispatch baseDispatch
;
658 HRESULT WINAPI
BasicAudio_Init(BasicAudio
*This
, const IBasicAudioVtbl
*Vtbl
);
659 HRESULT WINAPI
BasicAudio_Destroy(BasicAudio
*pBasicAudio
);
661 HRESULT WINAPI
BasicAudioImpl_GetTypeInfoCount(IBasicAudio
*iface
, UINT
*pctinfo
);
662 HRESULT WINAPI
BasicAudioImpl_GetTypeInfo(IBasicAudio
*iface
, UINT iTInfo
, LCID lcid
, ITypeInfo
**ppTInfo
);
663 HRESULT WINAPI
BasicAudioImpl_GetIDsOfNames(IBasicAudio
*iface
, REFIID riid
, LPOLESTR
*rgszNames
, UINT cNames
, LCID lcid
, DISPID
*rgDispId
);
664 HRESULT WINAPI
BasicAudioImpl_Invoke(IBasicAudio
*iface
, DISPID dispIdMember
, REFIID riid
, LCID lcid
, WORD wFlags
, DISPPARAMS
*pDispParams
, VARIANT
*pVarResult
, EXCEPINFO
*pExepInfo
, UINT
*puArgErr
);
668 BOOL WINAPI
STRMBASE_DllMain(HINSTANCE hInstDLL
, DWORD fdwReason
, LPVOID lpv
);
669 HRESULT WINAPI
STRMBASE_DllGetClassObject(REFCLSID rclsid
, REFIID riid
, LPVOID
*ppv
);
670 HRESULT WINAPI
STRMBASE_DllCanUnloadNow(void);