Fix a heap corruption in MIX_Init ( sizeof() != strlen() ).
[wine/hacks.git] / dlls / quartz / quartz_private.h
blob52bc2848d22a7396a343e7116f5dbd01005081cb
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef __QUARTZ_PRIVATE_INCLUDED__
24 #define __QUARTZ_PRIVATE_INCLUDED__
26 #include <stdarg.h>
28 #include "windef.h"
29 #include "winbase.h"
30 #include "wtypes.h"
31 #include "wingdi.h"
32 #include "winuser.h"
33 #include "dshow.h"
35 #define MEDIATIME_FROM_BYTES(x) ((LONGLONG)(x) * 10000000)
36 #define SEC_FROM_MEDIATIME(time) ((time) / 10000000)
37 #define BYTES_FROM_MEDIATIME(time) SEC_FROM_MEDIATIME(time)
38 #define MSEC_FROM_MEDIATIME(time) ((time) / 10000)
40 #define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
42 HRESULT FILTERGRAPH_create(IUnknown *pUnkOuter, LPVOID *ppObj) ;
43 HRESULT FilterMapper2_create(IUnknown *pUnkOuter, LPVOID *ppObj);
44 HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv);
45 HRESULT StdMemAllocator_create(IUnknown * pUnkOuter, LPVOID * ppv);
46 HRESULT AVISplitter_create(IUnknown * pUnkOuter, LPVOID * ppv);
47 HRESULT AVIDec_create(IUnknown * pUnkOuter, LPVOID * ppv);
48 HRESULT DSoundRender_create(IUnknown * pUnkOuter, LPVOID * ppv);
49 HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv);
50 HRESULT QUARTZ_CreateSystemClock(IUnknown * pUnkOuter, LPVOID * ppv);
52 HRESULT EnumMonikerImpl_Create(IMoniker ** ppMoniker, ULONG nMonikerCount, IEnumMoniker ** ppEnum);
54 typedef struct tagENUMPINDETAILS
56 ULONG cPins;
57 IPin ** ppPins;
58 } ENUMPINDETAILS;
60 typedef struct tagENUMEDIADETAILS
62 ULONG cMediaTypes;
63 AM_MEDIA_TYPE * pMediaTypes;
64 } ENUMMEDIADETAILS;
66 HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** ppEnum);
67 HRESULT IEnumMediaTypesImpl_Construct(const ENUMMEDIADETAILS * pDetails, IEnumMediaTypes ** ppEnum);
68 HRESULT IEnumRegFiltersImpl_Construct(REGFILTER * pInRegFilters, const ULONG size, IEnumRegFilters ** ppEnum);
69 HRESULT IEnumFiltersImpl_Construct(IBaseFilter ** ppFilters, ULONG nFilters, IEnumFilters ** ppEnum);
71 extern const char * qzdebugstr_guid(const GUID * id);
72 extern const char * qzdebugstr_State(FILTER_STATE state);
74 HRESULT CopyMediaType(AM_MEDIA_TYPE * pDest, const AM_MEDIA_TYPE *pSrc);
75 void DeleteMediaType(AM_MEDIA_TYPE * pmt);
76 BOOL CompareMediaTypes(const AM_MEDIA_TYPE * pmt1, const AM_MEDIA_TYPE * pmt2, BOOL bWildcards);
77 void dump_AM_MEDIA_TYPE(const AM_MEDIA_TYPE * pmt);
79 #endif /* __QUARTZ_PRIVATE_INCLUDED__ */