Fixed definitions of TTTOOLINFOA/W_V1_SIZE and
[wine] / dlls / quartz / quartz_private.h
1 /*              DirectShow private interfaces (QUARTZ.DLL)
2  *
3  * Copyright 2002 Lionel Ulmer
4  *
5  * This file contains the (internal) driver registration functions,
6  * driver enumeration APIs and DirectDraw creation functions.
7  *
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.
12  *
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.
17  *
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
21  */
22
23 #ifndef __QUARTZ_PRIVATE_INCLUDED__
24 #define __QUARTZ_PRIVATE_INCLUDED__
25
26 #include <stdarg.h>
27
28 #include "windef.h"
29 #include "winbase.h"
30 #include "wtypes.h"
31 #include "wingdi.h"
32 #include "winuser.h"
33 #include "dshow.h"
34
35 HRESULT FILTERGRAPH_create(IUnknown *pUnkOuter, LPVOID *ppObj) ;
36 HRESULT FilterMapper2_create(IUnknown *pUnkOuter, LPVOID *ppObj);
37 HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv);
38 HRESULT StdMemAllocator_create(IUnknown * pUnkOuter, LPVOID * ppv);
39
40 HRESULT EnumMonikerImpl_Create(IMoniker ** ppMoniker, ULONG nMonikerCount, IEnumMoniker ** ppEnum);
41
42 typedef struct tagENUMPINDETAILS
43 {
44         ULONG cPins;
45         IPin ** ppPins;
46 } ENUMPINDETAILS;
47
48 typedef struct tagENUMEDIADETAILS
49 {
50         ULONG cMediaTypes;
51         AM_MEDIA_TYPE * pMediaTypes;
52 } ENUMMEDIADETAILS;
53
54 HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** ppEnum);
55 HRESULT IEnumMediaTypesImpl_Construct(const ENUMMEDIADETAILS * pDetails, IEnumMediaTypes ** ppEnum);
56
57 extern const char * qzdebugstr_guid(const GUID * id);
58 extern const char * qzdebugstr_State(FILTER_STATE state);
59
60 HRESULT CopyMediaType(AM_MEDIA_TYPE * pDest, const AM_MEDIA_TYPE *pSrc);
61 void DeleteMediaType(AM_MEDIA_TYPE * pmt);
62 BOOL CompareMediaTypes(const AM_MEDIA_TYPE * pmt1, const AM_MEDIA_TYPE * pmt2, BOOL bWildcards);
63 void dump_AM_MEDIA_TYPE(const AM_MEDIA_TYPE * pmt);
64
65 #endif /* __QUARTZ_PRIVATE_INCLUDED__ */