2010-10-04 16:48:25 +02:00
|
|
|
/*
|
|
|
|
* Header file for Wine's strmbase implementation
|
|
|
|
*
|
|
|
|
* Copyright 2003 Robert Shearman
|
|
|
|
* Copyright 2010 Aric Stewart, CodeWeavers
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2016-11-25 10:10:45 +01:00
|
|
|
#include "wine/list.h"
|
|
|
|
|
2010-10-04 16:48:25 +02:00
|
|
|
HRESULT WINAPI CopyMediaType(AM_MEDIA_TYPE * pDest, const AM_MEDIA_TYPE *pSrc);
|
|
|
|
void WINAPI FreeMediaType(AM_MEDIA_TYPE * pMediaType);
|
|
|
|
AM_MEDIA_TYPE * WINAPI CreateMediaType(AM_MEDIA_TYPE const * pSrc);
|
|
|
|
void WINAPI DeleteMediaType(AM_MEDIA_TYPE * pMediaType);
|
2010-10-05 21:37:30 +02:00
|
|
|
|
2019-10-06 02:18:50 +02:00
|
|
|
void strmbase_dump_media_type(const AM_MEDIA_TYPE *mt);
|
|
|
|
|
2010-10-05 21:37:42 +02:00
|
|
|
/* Pin functions */
|
|
|
|
|
2019-09-24 02:33:24 +02:00
|
|
|
struct strmbase_pin
|
2010-10-05 21:37:42 +02:00
|
|
|
{
|
2019-09-06 02:02:15 +02:00
|
|
|
IPin IPin_iface;
|
|
|
|
struct strmbase_filter *filter;
|
|
|
|
PIN_DIRECTION dir;
|
|
|
|
WCHAR name[128];
|
2019-09-27 04:40:53 +02:00
|
|
|
IPin *peer;
|
2019-11-19 01:51:20 +01:00
|
|
|
AM_MEDIA_TYPE mt;
|
2019-09-06 02:02:15 +02:00
|
|
|
|
|
|
|
const struct BasePinFuncTable* pFuncsTable;
|
2019-09-24 02:33:24 +02:00
|
|
|
};
|
2010-10-05 21:37:42 +02:00
|
|
|
|
2010-10-13 18:02:01 +02:00
|
|
|
typedef struct BasePinFuncTable {
|
2019-09-25 02:10:10 +02:00
|
|
|
/* Required for QueryAccept(), Connect(), ReceiveConnection(). */
|
|
|
|
HRESULT (*pin_query_accept)(struct strmbase_pin *pin, const AM_MEDIA_TYPE *mt);
|
|
|
|
/* Required for EnumMediaTypes(). */
|
2019-09-25 02:10:12 +02:00
|
|
|
HRESULT (*pin_get_media_type)(struct strmbase_pin *pin, unsigned int index, AM_MEDIA_TYPE *mt);
|
2019-09-26 05:36:22 +02:00
|
|
|
HRESULT (*pin_query_interface)(struct strmbase_pin *pin, REFIID iid, void **out);
|
2010-10-13 18:02:01 +02:00
|
|
|
} BasePinFuncTable;
|
|
|
|
|
2019-09-12 21:28:25 +02:00
|
|
|
struct strmbase_source
|
2010-10-05 21:37:56 +02:00
|
|
|
{
|
2019-09-24 02:33:24 +02:00
|
|
|
struct strmbase_pin pin;
|
|
|
|
IMemInputPin *pMemInputPin;
|
|
|
|
IMemAllocator *pAllocator;
|
2010-10-13 18:02:01 +02:00
|
|
|
|
2019-09-24 02:33:24 +02:00
|
|
|
const struct strmbase_source_ops *pFuncsTable;
|
2019-09-12 21:28:25 +02:00
|
|
|
};
|
2010-10-05 21:37:56 +02:00
|
|
|
|
2019-09-12 21:28:25 +02:00
|
|
|
typedef HRESULT (WINAPI *BaseOutputPin_AttemptConnection)(struct strmbase_source *pin, IPin *peer, const AM_MEDIA_TYPE *mt);
|
|
|
|
typedef HRESULT (WINAPI *BaseOutputPin_DecideBufferSize)(struct strmbase_source *pin, IMemAllocator *allocator, ALLOCATOR_PROPERTIES *props);
|
|
|
|
typedef HRESULT (WINAPI *BaseOutputPin_DecideAllocator)(struct strmbase_source *pin, IMemInputPin *peer, IMemAllocator **allocator);
|
2010-10-13 18:02:01 +02:00
|
|
|
|
2019-09-12 21:28:26 +02:00
|
|
|
struct strmbase_source_ops
|
|
|
|
{
|
2014-01-06 17:54:13 +01:00
|
|
|
BasePinFuncTable base;
|
|
|
|
|
2019-05-09 17:12:33 +02:00
|
|
|
/* Required for Connect(). */
|
|
|
|
BaseOutputPin_AttemptConnection pfnAttemptConnection;
|
2010-10-13 18:02:14 +02:00
|
|
|
/* Required for BaseOutputPinImpl_DecideAllocator */
|
2010-10-13 18:02:01 +02:00
|
|
|
BaseOutputPin_DecideBufferSize pfnDecideBufferSize;
|
2010-10-13 18:02:14 +02:00
|
|
|
/* Required for BaseOutputPinImpl_AttemptConnection */
|
|
|
|
BaseOutputPin_DecideAllocator pfnDecideAllocator;
|
2019-09-12 21:28:26 +02:00
|
|
|
};
|
2010-10-13 18:02:01 +02:00
|
|
|
|
2019-11-20 03:18:01 +01:00
|
|
|
struct strmbase_sink
|
2010-10-05 21:38:11 +02:00
|
|
|
{
|
2019-09-24 02:33:24 +02:00
|
|
|
struct strmbase_pin pin;
|
2010-10-05 21:38:11 +02:00
|
|
|
|
2019-09-24 02:33:24 +02:00
|
|
|
IMemInputPin IMemInputPin_iface;
|
|
|
|
IMemAllocator *pAllocator;
|
2019-11-27 00:39:20 +01:00
|
|
|
BOOL flushing;
|
2019-09-24 02:33:24 +02:00
|
|
|
IMemAllocator *preferred_allocator;
|
2010-10-13 18:02:01 +02:00
|
|
|
|
2019-11-20 03:18:02 +01:00
|
|
|
const struct strmbase_sink_ops *pFuncsTable;
|
2019-11-20 03:18:01 +01:00
|
|
|
};
|
2010-10-05 21:38:11 +02:00
|
|
|
|
2019-11-20 03:18:01 +01:00
|
|
|
typedef HRESULT (WINAPI *BaseInputPin_Receive)(struct strmbase_sink *This, IMediaSample *pSample);
|
2010-10-13 18:02:01 +02:00
|
|
|
|
2019-11-20 03:18:02 +01:00
|
|
|
struct strmbase_sink_ops
|
|
|
|
{
|
2019-12-10 17:35:13 +01:00
|
|
|
BasePinFuncTable base;
|
|
|
|
BaseInputPin_Receive pfnReceive;
|
|
|
|
HRESULT (*sink_connect)(struct strmbase_sink *pin, IPin *peer, const AM_MEDIA_TYPE *mt);
|
|
|
|
void (*sink_disconnect)(struct strmbase_sink *pin);
|
2019-12-13 04:24:34 +01:00
|
|
|
HRESULT (*sink_eos)(struct strmbase_sink *pin);
|
|
|
|
HRESULT (*sink_begin_flush)(struct strmbase_sink *pin);
|
|
|
|
HRESULT (*sink_end_flush)(struct strmbase_sink *pin);
|
|
|
|
HRESULT (*sink_new_segment)(struct strmbase_sink *pin, REFERENCE_TIME start, REFERENCE_TIME stop, double rate);
|
2019-11-20 03:18:02 +01:00
|
|
|
};
|
2010-10-13 18:02:01 +02:00
|
|
|
|
2010-10-05 21:37:42 +02:00
|
|
|
/* Base Pin */
|
2019-09-25 02:10:12 +02:00
|
|
|
HRESULT strmbase_pin_get_media_type(struct strmbase_pin *pin, unsigned int index, AM_MEDIA_TYPE *mt);
|
2010-10-05 21:37:56 +02:00
|
|
|
|
2019-09-12 21:28:25 +02:00
|
|
|
HRESULT WINAPI BaseOutputPinImpl_GetDeliveryBuffer(struct strmbase_source *pin,
|
|
|
|
IMediaSample **sample, REFERENCE_TIME *start, REFERENCE_TIME *stop, DWORD flags);
|
|
|
|
HRESULT WINAPI BaseOutputPinImpl_Active(struct strmbase_source *pin);
|
|
|
|
HRESULT WINAPI BaseOutputPinImpl_Inactive(struct strmbase_source *pin);
|
|
|
|
HRESULT WINAPI BaseOutputPinImpl_InitAllocator(struct strmbase_source *pin, IMemAllocator **allocator);
|
|
|
|
HRESULT WINAPI BaseOutputPinImpl_DecideAllocator(struct strmbase_source *pin, IMemInputPin *peer, IMemAllocator **allocator);
|
|
|
|
HRESULT WINAPI BaseOutputPinImpl_AttemptConnection(struct strmbase_source *pin, IPin *peer, const AM_MEDIA_TYPE *mt);
|
|
|
|
|
|
|
|
void strmbase_source_cleanup(struct strmbase_source *pin);
|
2019-12-08 05:20:38 +01:00
|
|
|
void strmbase_source_init(struct strmbase_source *pin, struct strmbase_filter *filter,
|
2019-09-12 21:28:26 +02:00
|
|
|
const WCHAR *name, const struct strmbase_source_ops *func_table);
|
2010-10-05 21:38:11 +02:00
|
|
|
|
2019-12-13 04:24:39 +01:00
|
|
|
void strmbase_sink_init(struct strmbase_sink *pin, struct strmbase_filter *filter,
|
2019-11-20 03:18:02 +01:00
|
|
|
const WCHAR *name, const struct strmbase_sink_ops *ops, IMemAllocator *allocator);
|
2019-11-20 03:18:01 +01:00
|
|
|
void strmbase_sink_cleanup(struct strmbase_sink *pin);
|
2010-10-07 21:47:33 +02:00
|
|
|
|
2019-08-29 03:24:30 +02:00
|
|
|
struct strmbase_filter
|
2010-10-07 21:47:33 +02:00
|
|
|
{
|
2019-06-04 17:01:17 +02:00
|
|
|
IBaseFilter IBaseFilter_iface;
|
|
|
|
IUnknown IUnknown_inner;
|
|
|
|
IUnknown *outer_unk;
|
|
|
|
LONG refcount;
|
|
|
|
CRITICAL_SECTION csFilter;
|
|
|
|
|
|
|
|
FILTER_STATE state;
|
|
|
|
IReferenceClock * pClock;
|
|
|
|
FILTER_INFO filterInfo;
|
|
|
|
CLSID clsid;
|
|
|
|
LONG pin_version;
|
|
|
|
|
2019-10-24 03:04:25 +02:00
|
|
|
const struct strmbase_filter_ops *ops;
|
2019-08-29 03:24:30 +02:00
|
|
|
};
|
2010-10-13 18:02:01 +02:00
|
|
|
|
2019-08-29 03:24:29 +02:00
|
|
|
struct strmbase_filter_ops
|
2019-05-24 00:06:31 +02:00
|
|
|
{
|
2019-11-23 04:13:59 +01:00
|
|
|
struct strmbase_pin *(*filter_get_pin)(struct strmbase_filter *iface, unsigned int index);
|
2019-08-29 03:24:30 +02:00
|
|
|
void (*filter_destroy)(struct strmbase_filter *iface);
|
|
|
|
HRESULT (*filter_query_interface)(struct strmbase_filter *iface, REFIID iid, void **out);
|
2019-10-24 03:04:26 +02:00
|
|
|
|
|
|
|
HRESULT (*filter_init_stream)(struct strmbase_filter *iface);
|
|
|
|
HRESULT (*filter_start_stream)(struct strmbase_filter *iface, REFERENCE_TIME time);
|
|
|
|
HRESULT (*filter_stop_stream)(struct strmbase_filter *iface);
|
|
|
|
HRESULT (*filter_cleanup_stream)(struct strmbase_filter *iface);
|
|
|
|
HRESULT (*filter_wait_state)(struct strmbase_filter *iface, DWORD timeout);
|
2019-08-29 03:24:29 +02:00
|
|
|
};
|
2010-10-07 21:47:33 +02:00
|
|
|
|
2019-08-29 03:24:30 +02:00
|
|
|
VOID WINAPI BaseFilterImpl_IncrementPinVersion(struct strmbase_filter *filter);
|
2010-10-13 18:02:01 +02:00
|
|
|
|
2019-12-05 06:03:31 +01:00
|
|
|
void strmbase_filter_init(struct strmbase_filter *filter, IUnknown *outer,
|
2019-08-29 03:24:29 +02:00
|
|
|
const CLSID *clsid, const struct strmbase_filter_ops *func_table);
|
2019-08-29 03:24:30 +02:00
|
|
|
void strmbase_filter_cleanup(struct strmbase_filter *filter);
|
2010-10-13 18:02:01 +02:00
|
|
|
|
2010-10-07 21:48:19 +02:00
|
|
|
/* Transform Filter */
|
|
|
|
typedef struct TransformFilter
|
|
|
|
{
|
2019-08-29 03:24:30 +02:00
|
|
|
struct strmbase_filter filter;
|
2019-11-03 04:33:14 +01:00
|
|
|
|
2019-09-12 21:28:25 +02:00
|
|
|
struct strmbase_source source;
|
2019-11-03 04:33:14 +01:00
|
|
|
IQualityControl source_IQualityControl_iface;
|
|
|
|
IQualityControl *source_qc_sink;
|
|
|
|
|
2019-11-20 03:18:01 +01:00
|
|
|
struct strmbase_sink sink;
|
2010-10-07 21:48:19 +02:00
|
|
|
|
2019-06-21 03:13:17 +02:00
|
|
|
AM_MEDIA_TYPE pmt;
|
|
|
|
CRITICAL_SECTION csReceive;
|
2010-10-07 21:48:19 +02:00
|
|
|
|
2019-06-21 03:13:17 +02:00
|
|
|
const struct TransformFilterFuncTable * pFuncsTable;
|
|
|
|
/* IMediaSeeking and IMediaPosition are implemented by ISeekingPassThru */
|
|
|
|
IUnknown *seekthru_unk;
|
2010-10-07 21:48:19 +02:00
|
|
|
} TransformFilter;
|
|
|
|
|
2010-10-13 17:46:27 +02:00
|
|
|
typedef HRESULT (WINAPI *TransformFilter_DecideBufferSize) (TransformFilter *iface, IMemAllocator *pAlloc, ALLOCATOR_PROPERTIES *ppropInputRequest);
|
2010-10-07 21:48:19 +02:00
|
|
|
typedef HRESULT (WINAPI *TransformFilter_StartStreaming) (TransformFilter *iface);
|
|
|
|
typedef HRESULT (WINAPI *TransformFilter_StopStreaming) (TransformFilter *iface);
|
|
|
|
typedef HRESULT (WINAPI *TransformFilter_Receive) (TransformFilter* iface, IMediaSample* pIn);
|
|
|
|
typedef HRESULT (WINAPI *TransformFilter_BreakConnect) (TransformFilter *iface, PIN_DIRECTION dir);
|
|
|
|
typedef HRESULT (WINAPI *TransformFilter_CheckInputType) (TransformFilter *iface, const AM_MEDIA_TYPE *pMediaType);
|
|
|
|
typedef HRESULT (WINAPI *TransformFilter_EndOfStream) (TransformFilter *iface);
|
|
|
|
typedef HRESULT (WINAPI *TransformFilter_BeginFlush) (TransformFilter *iface);
|
|
|
|
typedef HRESULT (WINAPI *TransformFilter_EndFlush) (TransformFilter *iface);
|
|
|
|
typedef HRESULT (WINAPI *TransformFilter_NewSegment) (TransformFilter *iface,
|
|
|
|
REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate);
|
2010-11-05 23:19:14 +01:00
|
|
|
typedef HRESULT (WINAPI *TransformFilter_Notify) (TransformFilter *iface, IBaseFilter *sender, Quality qm);
|
2010-10-07 21:48:19 +02:00
|
|
|
|
|
|
|
typedef struct TransformFilterFuncTable {
|
2010-10-13 18:02:01 +02:00
|
|
|
/* Required */
|
|
|
|
TransformFilter_DecideBufferSize pfnDecideBufferSize;
|
|
|
|
/* Optional */
|
|
|
|
TransformFilter_StartStreaming pfnStartStreaming;
|
|
|
|
TransformFilter_Receive pfnReceive;
|
|
|
|
TransformFilter_StopStreaming pfnStopStreaming;
|
|
|
|
TransformFilter_CheckInputType pfnCheckInputType;
|
2019-12-10 17:35:11 +01:00
|
|
|
HRESULT (*transform_connect_sink)(TransformFilter *filter, const AM_MEDIA_TYPE *mt);
|
2010-10-13 18:02:01 +02:00
|
|
|
TransformFilter_BreakConnect pfnBreakConnect;
|
|
|
|
TransformFilter_EndOfStream pfnEndOfStream;
|
|
|
|
TransformFilter_BeginFlush pfnBeginFlush;
|
|
|
|
TransformFilter_EndFlush pfnEndFlush;
|
|
|
|
TransformFilter_NewSegment pfnNewSegment;
|
2010-11-05 23:19:14 +01:00
|
|
|
TransformFilter_Notify pfnNotify;
|
2010-10-07 21:48:19 +02:00
|
|
|
} TransformFilterFuncTable;
|
|
|
|
|
2012-04-02 14:52:15 +02:00
|
|
|
HRESULT WINAPI TransformFilterImpl_Notify(TransformFilter *iface, IBaseFilter *sender, Quality qm);
|
2010-10-07 21:48:19 +02:00
|
|
|
|
2019-06-06 17:22:53 +02:00
|
|
|
HRESULT strmbase_transform_create(LONG filter_size, IUnknown *outer, const CLSID *clsid,
|
2019-05-15 02:42:00 +02:00
|
|
|
const TransformFilterFuncTable *func_table, IBaseFilter **filter);
|
2010-10-11 17:15:35 +02:00
|
|
|
|
|
|
|
/* Source Seeking */
|
|
|
|
typedef HRESULT (WINAPI *SourceSeeking_ChangeRate)(IMediaSeeking *iface);
|
|
|
|
typedef HRESULT (WINAPI *SourceSeeking_ChangeStart)(IMediaSeeking *iface);
|
|
|
|
typedef HRESULT (WINAPI *SourceSeeking_ChangeStop)(IMediaSeeking *iface);
|
|
|
|
|
|
|
|
typedef struct SourceSeeking
|
|
|
|
{
|
2012-03-24 17:43:09 +01:00
|
|
|
IMediaSeeking IMediaSeeking_iface;
|
2010-10-11 17:15:35 +02:00
|
|
|
|
|
|
|
ULONG refCount;
|
|
|
|
SourceSeeking_ChangeStop fnChangeStop;
|
|
|
|
SourceSeeking_ChangeStart fnChangeStart;
|
|
|
|
SourceSeeking_ChangeRate fnChangeRate;
|
|
|
|
DWORD dwCapabilities;
|
|
|
|
double dRate;
|
|
|
|
LONGLONG llCurrent, llStop, llDuration;
|
|
|
|
GUID timeformat;
|
2019-12-03 17:14:49 +01:00
|
|
|
CRITICAL_SECTION cs;
|
2010-10-11 17:15:35 +02:00
|
|
|
} SourceSeeking;
|
|
|
|
|
2019-12-03 17:14:49 +01:00
|
|
|
HRESULT strmbase_seeking_init(SourceSeeking *seeking, const IMediaSeekingVtbl *vtbl,
|
|
|
|
SourceSeeking_ChangeStop fnChangeStop, SourceSeeking_ChangeStart fnChangeStart,
|
|
|
|
SourceSeeking_ChangeRate fnChangeRate);
|
|
|
|
void strmbase_seeking_cleanup(SourceSeeking *seeking);
|
2010-10-11 17:15:35 +02:00
|
|
|
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_GetCapabilities(IMediaSeeking * iface, DWORD * pCapabilities);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_CheckCapabilities(IMediaSeeking * iface, DWORD * pCapabilities);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_IsFormatSupported(IMediaSeeking * iface, const GUID * pFormat);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_QueryPreferredFormat(IMediaSeeking * iface, GUID * pFormat);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_GetTimeFormat(IMediaSeeking * iface, GUID * pFormat);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_IsUsingTimeFormat(IMediaSeeking * iface, const GUID * pFormat);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_SetTimeFormat(IMediaSeeking * iface, const GUID * pFormat);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_GetDuration(IMediaSeeking * iface, LONGLONG * pDuration);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_GetStopPosition(IMediaSeeking * iface, LONGLONG * pStop);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_GetCurrentPosition(IMediaSeeking * iface, LONGLONG * pCurrent);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_ConvertTimeFormat(IMediaSeeking * iface, LONGLONG * pTarget, const GUID * pTargetFormat, LONGLONG Source, const GUID * pSourceFormat);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_SetPositions(IMediaSeeking * iface, LONGLONG * pCurrent, DWORD dwCurrentFlags, LONGLONG * pStop, DWORD dwStopFlags);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_GetPositions(IMediaSeeking * iface, LONGLONG * pCurrent, LONGLONG * pStop);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_GetAvailable(IMediaSeeking * iface, LONGLONG * pEarliest, LONGLONG * pLatest);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_SetRate(IMediaSeeking * iface, double dRate);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_GetRate(IMediaSeeking * iface, double * dRate);
|
|
|
|
HRESULT WINAPI SourceSeekingImpl_GetPreroll(IMediaSeeking * iface, LONGLONG * pPreroll);
|
2010-10-19 20:23:38 +02:00
|
|
|
|
2012-03-14 20:45:34 +01:00
|
|
|
HRESULT WINAPI CreatePosPassThru(IUnknown* pUnkOuter, BOOL bRenderer, IPin *pPin, IUnknown **ppPassThru);
|
|
|
|
HRESULT WINAPI PosPassThru_Construct(IUnknown* pUnkOuter, LPVOID *ppPassThru);
|
|
|
|
|
2010-10-19 20:23:38 +02:00
|
|
|
/* Filter Registration */
|
|
|
|
|
|
|
|
typedef REGPINTYPES AMOVIESETUP_MEDIATYPE;
|
|
|
|
typedef REGFILTERPINS AMOVIESETUP_PIN;
|
|
|
|
|
|
|
|
typedef struct AMOVIESETUP_FILTER {
|
|
|
|
const CLSID *clsid;
|
|
|
|
const WCHAR *name;
|
|
|
|
DWORD merit;
|
|
|
|
UINT pins;
|
|
|
|
const AMOVIESETUP_PIN *pPin;
|
|
|
|
} AMOVIESETUP_FILTER, *LPAMOVIESETUP_FILTER;
|
|
|
|
|
|
|
|
typedef IUnknown *(CALLBACK *LPFNNewCOMObject)(LPUNKNOWN pUnkOuter, HRESULT *phr);
|
|
|
|
typedef void (CALLBACK *LPFNInitRoutine)(BOOL bLoading, const CLSID *rclsid);
|
|
|
|
|
|
|
|
typedef struct tagFactoryTemplate {
|
|
|
|
const WCHAR *m_Name;
|
|
|
|
const CLSID *m_ClsID;
|
|
|
|
LPFNNewCOMObject m_lpfnNew;
|
|
|
|
LPFNInitRoutine m_lpfnInit;
|
|
|
|
const AMOVIESETUP_FILTER *m_pAMovieSetup_Filter;
|
|
|
|
} FactoryTemplate;
|
|
|
|
|
|
|
|
HRESULT WINAPI AMovieDllRegisterServer2(BOOL bRegister);
|
2010-11-03 00:59:04 +01:00
|
|
|
HRESULT WINAPI AMovieSetupRegisterFilter2(const AMOVIESETUP_FILTER *pFilter, IFilterMapper2 *pIFM2, BOOL bRegister);
|
2010-10-19 20:24:03 +02:00
|
|
|
|
2011-04-05 19:55:47 +02:00
|
|
|
/* Output Queue */
|
|
|
|
typedef struct tagOutputQueue {
|
|
|
|
CRITICAL_SECTION csQueue;
|
|
|
|
|
2019-09-12 21:28:25 +02:00
|
|
|
struct strmbase_source *pInputPin;
|
2011-04-05 19:55:47 +02:00
|
|
|
|
|
|
|
HANDLE hThread;
|
|
|
|
HANDLE hProcessQueue;
|
|
|
|
|
|
|
|
LONG lBatchSize;
|
|
|
|
BOOL bBatchExact;
|
|
|
|
BOOL bTerminate;
|
2011-04-05 19:55:50 +02:00
|
|
|
BOOL bSendAnyway;
|
2011-04-05 19:55:47 +02:00
|
|
|
|
2016-11-25 10:10:45 +01:00
|
|
|
struct list SampleList;
|
2011-04-05 19:55:47 +02:00
|
|
|
|
|
|
|
const struct OutputQueueFuncTable* pFuncsTable;
|
|
|
|
} OutputQueue;
|
|
|
|
|
|
|
|
typedef DWORD (WINAPI *OutputQueue_ThreadProc)(OutputQueue *This);
|
|
|
|
|
|
|
|
typedef struct OutputQueueFuncTable
|
|
|
|
{
|
|
|
|
OutputQueue_ThreadProc pfnThreadProc;
|
|
|
|
} OutputQueueFuncTable;
|
|
|
|
|
2019-09-12 21:28:25 +02:00
|
|
|
HRESULT WINAPI OutputQueue_Construct( struct strmbase_source *pin, BOOL bAuto,
|
2011-04-05 19:55:47 +02:00
|
|
|
BOOL bQueue, LONG lBatchSize, BOOL bBatchExact, DWORD dwPriority,
|
|
|
|
const OutputQueueFuncTable* pFuncsTable, OutputQueue **ppOutputQueue );
|
|
|
|
HRESULT WINAPI OutputQueue_Destroy(OutputQueue *pOutputQueue);
|
|
|
|
HRESULT WINAPI OutputQueue_ReceiveMultiple(OutputQueue *pOutputQueue, IMediaSample **ppSamples, LONG nSamples, LONG *nSamplesProcessed);
|
|
|
|
HRESULT WINAPI OutputQueue_Receive(OutputQueue *pOutputQueue, IMediaSample *pSample);
|
2011-04-05 19:55:50 +02:00
|
|
|
VOID WINAPI OutputQueue_EOS(OutputQueue *pOutputQueue);
|
|
|
|
VOID WINAPI OutputQueue_SendAnyway(OutputQueue *pOutputQueue);
|
2011-04-05 19:55:47 +02:00
|
|
|
DWORD WINAPI OutputQueueImpl_ThreadProc(OutputQueue *pOutputQueue);
|
|
|
|
|
2012-03-28 14:29:06 +02:00
|
|
|
typedef struct tagBaseWindow
|
|
|
|
{
|
|
|
|
HWND hWnd;
|
|
|
|
LONG Width;
|
|
|
|
LONG Height;
|
|
|
|
|
|
|
|
const struct BaseWindowFuncTable* pFuncsTable;
|
|
|
|
} BaseWindow;
|
|
|
|
|
2012-03-28 21:53:14 +02:00
|
|
|
typedef RECT (WINAPI *BaseWindow_GetDefaultRect)(BaseWindow *This);
|
2012-03-28 14:29:06 +02:00
|
|
|
typedef BOOL (WINAPI *BaseWindow_OnSize)(BaseWindow *This, LONG Height, LONG Width);
|
|
|
|
|
|
|
|
typedef struct BaseWindowFuncTable
|
|
|
|
{
|
|
|
|
/* Required */
|
2012-03-28 21:53:14 +02:00
|
|
|
BaseWindow_GetDefaultRect pfnGetDefaultRect;
|
2012-03-28 14:29:06 +02:00
|
|
|
/* Optional, WinProc Related */
|
|
|
|
BaseWindow_OnSize pfnOnSize;
|
|
|
|
} BaseWindowFuncTable;
|
|
|
|
|
|
|
|
HRESULT WINAPI BaseWindow_Init(BaseWindow *pBaseWindow, const BaseWindowFuncTable* pFuncsTable);
|
|
|
|
HRESULT WINAPI BaseWindow_Destroy(BaseWindow *pBaseWindow);
|
|
|
|
|
|
|
|
HRESULT WINAPI BaseWindowImpl_PrepareWindow(BaseWindow *This);
|
|
|
|
HRESULT WINAPI BaseWindowImpl_DoneWithWindow(BaseWindow *This);
|
|
|
|
|
2019-06-07 01:49:21 +02:00
|
|
|
enum strmbase_type_id
|
|
|
|
{
|
|
|
|
IBasicAudio_tid,
|
|
|
|
IBasicVideo_tid,
|
|
|
|
IMediaControl_tid,
|
|
|
|
IMediaEvent_tid,
|
|
|
|
IMediaPosition_tid,
|
|
|
|
IVideoWindow_tid,
|
|
|
|
last_tid
|
|
|
|
};
|
|
|
|
|
|
|
|
HRESULT strmbase_get_typeinfo(enum strmbase_type_id tid, ITypeInfo **typeinfo);
|
|
|
|
|
2012-03-28 21:53:14 +02:00
|
|
|
#ifdef __IVideoWindow_FWD_DEFINED__
|
|
|
|
typedef struct tagBaseControlWindow
|
|
|
|
{
|
|
|
|
BaseWindow baseWindow;
|
|
|
|
IVideoWindow IVideoWindow_iface;
|
|
|
|
|
|
|
|
BOOL AutoShow;
|
|
|
|
HWND hwndDrain;
|
|
|
|
HWND hwndOwner;
|
2019-08-29 03:24:30 +02:00
|
|
|
struct strmbase_filter *pFilter;
|
2019-09-24 02:33:24 +02:00
|
|
|
struct strmbase_pin *pPin;
|
2012-03-28 21:53:14 +02:00
|
|
|
} BaseControlWindow;
|
|
|
|
|
2019-10-18 17:01:49 +02:00
|
|
|
HRESULT WINAPI strmbase_window_init(BaseControlWindow *window, const IVideoWindowVtbl *vtbl,
|
|
|
|
struct strmbase_filter *filter, struct strmbase_pin *pin, const BaseWindowFuncTable *func_table);
|
2012-04-20 14:26:32 +02:00
|
|
|
HRESULT WINAPI BaseControlWindow_Destroy(BaseControlWindow *pControlWindow);
|
2012-03-28 21:53:14 +02:00
|
|
|
|
|
|
|
BOOL WINAPI BaseControlWindowImpl_PossiblyEatMessage(BaseWindow *This, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
2019-06-12 01:54:38 +02:00
|
|
|
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_QueryInterface(IVideoWindow *iface, REFIID iid, void **out);
|
|
|
|
ULONG WINAPI BaseControlWindowImpl_AddRef(IVideoWindow *iface);
|
|
|
|
ULONG WINAPI BaseControlWindowImpl_Release(IVideoWindow *iface);
|
2012-03-28 21:53:14 +02:00
|
|
|
HRESULT WINAPI BaseControlWindowImpl_GetTypeInfoCount(IVideoWindow *iface, UINT*pctinfo);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_GetTypeInfo(IVideoWindow *iface, UINT iTInfo, LCID lcid, ITypeInfo**ppTInfo);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_GetIDsOfNames(IVideoWindow *iface, REFIID riid, LPOLESTR*rgszNames, UINT cNames, LCID lcid, DISPID*rgDispId);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_Invoke(IVideoWindow *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS*pDispParams, VARIANT*pVarResult, EXCEPINFO*pExepInfo, UINT*puArgErr);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_Caption(IVideoWindow *iface, BSTR strCaption);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_Caption(IVideoWindow *iface, BSTR *strCaption);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_WindowStyle(IVideoWindow *iface, LONG WindowStyle);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_WindowStyle(IVideoWindow *iface, LONG *WindowStyle);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_WindowStyleEx(IVideoWindow *iface, LONG WindowStyleEx);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_WindowStyleEx(IVideoWindow *iface, LONG *WindowStyleEx);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_AutoShow(IVideoWindow *iface, LONG AutoShow);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_AutoShow(IVideoWindow *iface, LONG *AutoShow);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_WindowState(IVideoWindow *iface, LONG WindowState);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_WindowState(IVideoWindow *iface, LONG *WindowState);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_BackgroundPalette(IVideoWindow *iface, LONG BackgroundPalette);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_BackgroundPalette(IVideoWindow *iface, LONG *pBackgroundPalette);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_Visible(IVideoWindow *iface, LONG Visible);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_Visible(IVideoWindow *iface, LONG *pVisible);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_Left(IVideoWindow *iface, LONG Left);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_Left(IVideoWindow *iface, LONG *pLeft);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_Width(IVideoWindow *iface, LONG Width);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_Width(IVideoWindow *iface, LONG *pWidth);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_Top(IVideoWindow *iface, LONG Top);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_Top(IVideoWindow *iface, LONG *pTop);
|
|
|
|
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_Height(IVideoWindow *iface, LONG Height);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_Height(IVideoWindow *iface, LONG *pHeight);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_Owner(IVideoWindow *iface, OAHWND Owner);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_Owner(IVideoWindow *iface, OAHWND *Owner);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_MessageDrain(IVideoWindow *iface, OAHWND Drain);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_MessageDrain(IVideoWindow *iface, OAHWND *Drain);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_BorderColor(IVideoWindow *iface, LONG *Color);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_BorderColor(IVideoWindow *iface, LONG Color);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_get_FullScreenMode(IVideoWindow *iface, LONG *FullScreenMode);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_put_FullScreenMode(IVideoWindow *iface, LONG FullScreenMode);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_SetWindowForeground(IVideoWindow *iface, LONG Focus);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_SetWindowPosition(IVideoWindow *iface, LONG Left, LONG Top, LONG Width, LONG Height);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_GetWindowPosition(IVideoWindow *iface, LONG *pLeft, LONG *pTop, LONG *pWidth, LONG *pHeight);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_NotifyOwnerMessage(IVideoWindow *iface, OAHWND hwnd, LONG uMsg, LONG_PTR wParam, LONG_PTR lParam);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_GetMinIdealImageSize(IVideoWindow *iface, LONG *pWidth, LONG *pHeight);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_GetMaxIdealImageSize(IVideoWindow *iface, LONG *pWidth, LONG *pHeight);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_GetRestorePosition(IVideoWindow *iface, LONG *pLeft, LONG *pTop, LONG *pWidth, LONG *pHeight);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_HideCursor(IVideoWindow *iface, LONG HideCursor);
|
|
|
|
HRESULT WINAPI BaseControlWindowImpl_IsCursorHidden(IVideoWindow *iface, LONG *CursorHidden);
|
|
|
|
#endif
|
|
|
|
|
2012-03-28 21:53:24 +02:00
|
|
|
#ifdef __IBasicVideo_FWD_DEFINED__
|
|
|
|
#ifdef __amvideo_h__
|
|
|
|
typedef struct tagBaseControlVideo
|
|
|
|
{
|
|
|
|
IBasicVideo IBasicVideo_iface;
|
|
|
|
|
2019-08-29 03:24:30 +02:00
|
|
|
struct strmbase_filter *pFilter;
|
2019-09-24 02:33:24 +02:00
|
|
|
struct strmbase_pin *pPin;
|
2012-03-28 21:53:24 +02:00
|
|
|
|
|
|
|
const struct BaseControlVideoFuncTable* pFuncsTable;
|
|
|
|
} BaseControlVideo;
|
|
|
|
|
|
|
|
typedef HRESULT (WINAPI *BaseControlVideo_GetSourceRect)(BaseControlVideo* This, RECT *pSourceRect);
|
|
|
|
typedef HRESULT (WINAPI *BaseControlVideo_GetStaticImage)(BaseControlVideo* This, LONG *pBufferSize, LONG *pDIBImage);
|
|
|
|
typedef HRESULT (WINAPI *BaseControlVideo_GetTargetRect)(BaseControlVideo* This, RECT *pTargetRect);
|
|
|
|
typedef VIDEOINFOHEADER* (WINAPI *BaseControlVideo_GetVideoFormat)(BaseControlVideo* This);
|
|
|
|
typedef HRESULT (WINAPI *BaseControlVideo_IsDefaultSourceRect)(BaseControlVideo* This);
|
|
|
|
typedef HRESULT (WINAPI *BaseControlVideo_IsDefaultTargetRect)(BaseControlVideo* This);
|
|
|
|
typedef HRESULT (WINAPI *BaseControlVideo_SetDefaultSourceRect)(BaseControlVideo* This);
|
|
|
|
typedef HRESULT (WINAPI *BaseControlVideo_SetDefaultTargetRect)(BaseControlVideo* This);
|
|
|
|
typedef HRESULT (WINAPI *BaseControlVideo_SetSourceRect)(BaseControlVideo* This, RECT *pSourceRect);
|
|
|
|
typedef HRESULT (WINAPI *BaseControlVideo_SetTargetRect)(BaseControlVideo* This, RECT *pTargetRect);
|
|
|
|
|
|
|
|
typedef struct BaseControlVideoFuncTable {
|
|
|
|
/* Required */
|
|
|
|
BaseControlVideo_GetSourceRect pfnGetSourceRect;
|
|
|
|
BaseControlVideo_GetStaticImage pfnGetStaticImage;
|
|
|
|
BaseControlVideo_GetTargetRect pfnGetTargetRect;
|
|
|
|
BaseControlVideo_GetVideoFormat pfnGetVideoFormat;
|
|
|
|
BaseControlVideo_IsDefaultSourceRect pfnIsDefaultSourceRect;
|
|
|
|
BaseControlVideo_IsDefaultTargetRect pfnIsDefaultTargetRect;
|
|
|
|
BaseControlVideo_SetDefaultSourceRect pfnSetDefaultSourceRect;
|
|
|
|
BaseControlVideo_SetDefaultTargetRect pfnSetDefaultTargetRect;
|
|
|
|
BaseControlVideo_SetSourceRect pfnSetSourceRect;
|
|
|
|
BaseControlVideo_SetTargetRect pfnSetTargetRect;
|
|
|
|
} BaseControlVideoFuncTable;
|
|
|
|
|
2019-08-29 03:24:30 +02:00
|
|
|
HRESULT WINAPI strmbase_video_init(BaseControlVideo *video, struct strmbase_filter *filter,
|
2019-11-16 18:20:13 +01:00
|
|
|
struct strmbase_pin *pin, const BaseControlVideoFuncTable *func_table);
|
2012-04-20 14:26:43 +02:00
|
|
|
HRESULT WINAPI BaseControlVideo_Destroy(BaseControlVideo *pControlVideo);
|
2012-03-28 21:53:24 +02:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2019-10-24 03:04:23 +02:00
|
|
|
struct strmbase_renderer
|
2012-03-28 21:53:33 +02:00
|
|
|
{
|
2019-08-29 03:24:30 +02:00
|
|
|
struct strmbase_filter filter;
|
2012-03-28 21:53:33 +02:00
|
|
|
|
2019-11-20 03:18:01 +01:00
|
|
|
struct strmbase_sink sink;
|
2019-07-02 05:49:48 +02:00
|
|
|
IUnknown *pPosition;
|
|
|
|
CRITICAL_SECTION csRenderLock;
|
2019-07-02 05:49:45 +02:00
|
|
|
/* Signaled when the filter has completed a state change. The filter waits
|
|
|
|
* for this event in IBaseFilter::GetState(). */
|
2019-07-02 05:49:48 +02:00
|
|
|
HANDLE state_event;
|
|
|
|
/* Signaled when the sample presentation time occurs. The streaming thread
|
|
|
|
* waits for this event in Receive() if applicable. */
|
|
|
|
HANDLE advise_event;
|
|
|
|
/* Signaled when a flush or state change occurs, i.e. anything that needs
|
|
|
|
* to immediately unblock the streaming thread. */
|
|
|
|
HANDLE flush_event;
|
|
|
|
IMediaSample *pMediaSample;
|
2019-10-04 17:02:45 +02:00
|
|
|
REFERENCE_TIME stream_start;
|
2019-07-02 05:49:48 +02:00
|
|
|
|
|
|
|
IQualityControl *pQSink;
|
|
|
|
struct QualityControlImpl *qcimpl;
|
2012-04-02 14:52:08 +02:00
|
|
|
|
2019-10-24 03:04:24 +02:00
|
|
|
const struct strmbase_renderer_ops *pFuncsTable;
|
2019-11-27 00:39:20 +01:00
|
|
|
|
|
|
|
BOOL eos;
|
2019-10-24 03:04:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef HRESULT (WINAPI *BaseRenderer_CheckMediaType)(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt);
|
|
|
|
typedef HRESULT (WINAPI *BaseRenderer_DoRenderSample)(struct strmbase_renderer *iface, IMediaSample *sample);
|
|
|
|
typedef HRESULT (WINAPI *BaseRenderer_ShouldDrawSampleNow)(struct strmbase_renderer *iface,
|
|
|
|
IMediaSample *sample, REFERENCE_TIME *start, REFERENCE_TIME *end);
|
|
|
|
typedef HRESULT (WINAPI *BaseRenderer_PrepareReceive)(struct strmbase_renderer *iface, IMediaSample *sample);
|
|
|
|
typedef HRESULT (WINAPI *BaseRenderer_EndOfStream)(struct strmbase_renderer *iface);
|
|
|
|
typedef HRESULT (WINAPI *BaseRenderer_BeginFlush) (struct strmbase_renderer *iface);
|
|
|
|
typedef HRESULT (WINAPI *BaseRenderer_EndFlush) (struct strmbase_renderer *iface);
|
|
|
|
typedef HRESULT (WINAPI *BaseRenderer_BreakConnect) (struct strmbase_renderer *iface);
|
2012-03-28 21:53:33 +02:00
|
|
|
|
2019-10-24 03:04:24 +02:00
|
|
|
struct strmbase_renderer_ops
|
|
|
|
{
|
2019-07-03 05:25:45 +02:00
|
|
|
BaseRenderer_CheckMediaType pfnCheckMediaType;
|
|
|
|
BaseRenderer_DoRenderSample pfnDoRenderSample;
|
2019-10-24 03:04:23 +02:00
|
|
|
void (*renderer_init_stream)(struct strmbase_renderer *iface);
|
|
|
|
void (*renderer_start_stream)(struct strmbase_renderer *iface);
|
|
|
|
void (*renderer_stop_stream)(struct strmbase_renderer *iface);
|
2019-07-03 05:25:45 +02:00
|
|
|
BaseRenderer_ShouldDrawSampleNow pfnShouldDrawSampleNow;
|
|
|
|
BaseRenderer_PrepareReceive pfnPrepareReceive;
|
2019-12-10 17:35:12 +01:00
|
|
|
HRESULT (*renderer_connect)(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt);
|
2019-07-03 05:25:45 +02:00
|
|
|
BaseRenderer_BreakConnect pfnBreakConnect;
|
|
|
|
BaseRenderer_EndOfStream pfnEndOfStream;
|
|
|
|
BaseRenderer_EndFlush pfnEndFlush;
|
2019-10-24 03:04:23 +02:00
|
|
|
void (*renderer_destroy)(struct strmbase_renderer *iface);
|
|
|
|
HRESULT (*renderer_query_interface)(struct strmbase_renderer *iface, REFIID iid, void **out);
|
|
|
|
HRESULT (*renderer_pin_query_interface)(struct strmbase_renderer *iface, REFIID iid, void **out);
|
2019-10-24 03:04:24 +02:00
|
|
|
};
|
2012-03-28 21:53:33 +02:00
|
|
|
|
2019-10-24 03:04:23 +02:00
|
|
|
HRESULT WINAPI BaseRendererImpl_ClearPendingSample(struct strmbase_renderer *filter);
|
|
|
|
HRESULT WINAPI BaseRendererImpl_Receive(struct strmbase_renderer *filter, IMediaSample *sample);
|
2012-03-28 21:53:33 +02:00
|
|
|
|
2019-10-24 03:04:23 +02:00
|
|
|
HRESULT WINAPI strmbase_renderer_init(struct strmbase_renderer *filter, IUnknown *outer,
|
2019-10-24 03:04:24 +02:00
|
|
|
const CLSID *clsid, const WCHAR *sink_name, const struct strmbase_renderer_ops *ops);
|
2019-10-24 03:04:23 +02:00
|
|
|
void strmbase_renderer_cleanup(struct strmbase_renderer *filter);
|
2012-03-28 21:53:33 +02:00
|
|
|
|
2010-10-19 20:24:03 +02:00
|
|
|
/* Dll Functions */
|
|
|
|
BOOL WINAPI STRMBASE_DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv);
|
2010-10-19 20:24:29 +02:00
|
|
|
HRESULT WINAPI STRMBASE_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv);
|
|
|
|
HRESULT WINAPI STRMBASE_DllCanUnloadNow(void);
|