mfplat: Make functionality of GetMediaTypeHandler more clear.
[wine.git] / dlls / quartz / quartz_private.h
blob3431a5836ff4eabd2d5e9bfad12b8c97fc4baddc
1 /* DirectShow private interfaces (QUARTZ.DLL)
3 * Copyright 2002 Lionel Ulmer
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __QUARTZ_PRIVATE_INCLUDED__
21 #define __QUARTZ_PRIVATE_INCLUDED__
23 #include <stdarg.h>
24 #include <wchar.h>
26 #define COBJMACROS
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 #include "wine/debug.h"
35 #include "wine/heap.h"
36 #include "wine/strmbase.h"
37 #include "wine/list.h"
39 static inline const char *debugstr_time(REFERENCE_TIME time)
41 ULONGLONG abstime = time >= 0 ? time : -time;
42 unsigned int i = 0, j = 0;
43 char buffer[23], rev[23];
45 while (abstime || i <= 8)
47 buffer[i++] = '0' + (abstime % 10);
48 abstime /= 10;
49 if (i == 7) buffer[i++] = '.';
51 if (time < 0) buffer[i++] = '-';
53 while (i--) rev[j++] = buffer[i];
54 rev[j] = 0;
56 return wine_dbg_sprintf("%s", rev);
59 /* see IAsyncReader::Request on MSDN for the explanation of this */
60 #define MEDIATIME_FROM_BYTES(x) ((LONGLONG)(x) * 10000000)
61 #define BYTES_FROM_MEDIATIME(time) ((time) / 10000000)
63 HRESULT dsound_render_create(IUnknown *outer, void **out) DECLSPEC_HIDDEN;
64 HRESULT filter_graph_create(IUnknown *outer, void **out) DECLSPEC_HIDDEN;
65 HRESULT filter_graph_no_thread_create(IUnknown *outer, void **out) DECLSPEC_HIDDEN;
66 HRESULT FilterMapper2_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;
67 HRESULT FilterMapper_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;
68 HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
69 HRESULT StdMemAllocator_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
70 HRESULT AVIDec_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
71 HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
72 HRESULT VideoRendererDefault_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
73 HRESULT QUARTZ_CreateSystemClock(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
74 HRESULT ACMWrapper_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
75 HRESULT VMR7Impl_create(IUnknown *pUnkOuter, LPVOID *ppv) DECLSPEC_HIDDEN;
76 HRESULT VMR9Impl_create(IUnknown *pUnkOuter, LPVOID *ppv) DECLSPEC_HIDDEN;
78 HRESULT EnumMonikerImpl_Create(IMoniker ** ppMoniker, ULONG nMonikerCount, IEnumMoniker ** ppEnum) DECLSPEC_HIDDEN;
80 HRESULT IEnumRegFiltersImpl_Construct(REGFILTER * pInRegFilters, const ULONG size, IEnumRegFilters ** ppEnum) DECLSPEC_HIDDEN;
82 extern const char * qzdebugstr_guid(const GUID * id) DECLSPEC_HIDDEN;
83 extern void video_unregister_windowclass(void) DECLSPEC_HIDDEN;
85 BOOL get_media_type(const WCHAR *filename, GUID *majortype, GUID *subtype, GUID *source_clsid) DECLSPEC_HIDDEN;
87 #endif /* __QUARTZ_PRIVATE_INCLUDED__ */