1 /* DirectShow private interfaces (QUARTZ.DLL)
3 * Copyright 2002 Lionel Ulmer
5 * This file contains the (internal) driver registration functions,
6 * driver enumeration APIs and DirectDraw creation functions.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #ifndef __QUARTZ_PRIVATE_INCLUDED__
24 #define __QUARTZ_PRIVATE_INCLUDED__
36 #include "wine/strmbase.h"
37 #include "wine/list.h"
39 #define MEDIATIME_FROM_BYTES(x) ((LONGLONG)(x) * 10000000)
40 #define SEC_FROM_MEDIATIME(time) ((time) / 10000000)
41 #define BYTES_FROM_MEDIATIME(time) SEC_FROM_MEDIATIME(time)
42 #define MSEC_FROM_MEDIATIME(time) ((time) / 10000)
44 #define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
46 HRESULT
FilterGraph_create(IUnknown
*pUnkOuter
, LPVOID
*ppObj
);
47 HRESULT
FilterGraphNoThread_create(IUnknown
*pUnkOuter
, LPVOID
*ppObj
);
48 HRESULT
FilterMapper2_create(IUnknown
*pUnkOuter
, LPVOID
*ppObj
);
49 HRESULT
FilterMapper_create(IUnknown
*pUnkOuter
, LPVOID
*ppObj
);
50 HRESULT
AsyncReader_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
51 HRESULT
StdMemAllocator_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
52 HRESULT
AVISplitter_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
53 HRESULT
MPEGSplitter_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
54 HRESULT
AVIDec_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
55 HRESULT
DSoundRender_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
56 HRESULT
VideoRenderer_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
57 HRESULT
NullRenderer_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
58 HRESULT
VideoRendererDefault_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
59 HRESULT
QUARTZ_CreateSystemClock(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
60 HRESULT
ACMWrapper_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
61 HRESULT
WAVEParser_create(IUnknown
* pUnkOuter
, LPVOID
* ppv
);
62 HRESULT
SeekingPassThru_create(IUnknown
*pUnkOuter
, LPVOID
*ppObj
);
64 HRESULT
EnumMonikerImpl_Create(IMoniker
** ppMoniker
, ULONG nMonikerCount
, IEnumMoniker
** ppEnum
);
66 HRESULT
IEnumRegFiltersImpl_Construct(REGFILTER
* pInRegFilters
, const ULONG size
, IEnumRegFilters
** ppEnum
);
67 HRESULT
IEnumFiltersImpl_Construct(IBaseFilter
** ppFilters
, ULONG nFilters
, IEnumFilters
** ppEnum
);
69 extern const char * qzdebugstr_guid(const GUID
* id
);
71 BOOL
CompareMediaTypes(const AM_MEDIA_TYPE
* pmt1
, const AM_MEDIA_TYPE
* pmt2
, BOOL bWildcards
);
72 void dump_AM_MEDIA_TYPE(const AM_MEDIA_TYPE
* pmt
);
73 HRESULT
updatehres( HRESULT original
, HRESULT
new );
75 typedef struct StdMediaSample2
77 const IMediaSample2Vtbl
* lpvtbl
;
80 AM_SAMPLE2_PROPERTIES props
;
81 IMemAllocator
* pParent
;
82 struct list listentry
;
87 #endif /* __QUARTZ_PRIVATE_INCLUDED__ */