2003-06-13 20:06:44 +02:00
|
|
|
/* DirectShow private interfaces (QUARTZ.DLL)
|
|
|
|
*
|
|
|
|
* Copyright 2002 Lionel Ulmer
|
|
|
|
*
|
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-06-13 20:06:44 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __QUARTZ_PRIVATE_INCLUDED__
|
|
|
|
#define __QUARTZ_PRIVATE_INCLUDED__
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
2019-08-05 17:25:58 +02:00
|
|
|
#include <wchar.h>
|
2003-09-06 01:08:26 +02:00
|
|
|
|
2004-10-07 05:06:48 +02:00
|
|
|
#define COBJMACROS
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "windef.h"
|
2003-06-13 20:06:44 +02:00
|
|
|
#include "winbase.h"
|
|
|
|
#include "wtypes.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "dshow.h"
|
2019-03-04 03:11:49 +01:00
|
|
|
#include "wine/debug.h"
|
2019-03-14 18:12:21 +01:00
|
|
|
#include "wine/heap.h"
|
2010-10-04 16:48:25 +02:00
|
|
|
#include "wine/strmbase.h"
|
2008-06-10 18:06:08 +02:00
|
|
|
#include "wine/list.h"
|
2003-06-13 20:06:44 +02:00
|
|
|
|
2020-01-31 02:05:17 +01:00
|
|
|
static inline const char *debugstr_time(REFERENCE_TIME time)
|
|
|
|
{
|
|
|
|
ULONGLONG abstime = time >= 0 ? time : -time;
|
|
|
|
unsigned int i = 0, j = 0;
|
|
|
|
char buffer[23], rev[23];
|
|
|
|
|
|
|
|
while (abstime || i <= 8)
|
|
|
|
{
|
|
|
|
buffer[i++] = '0' + (abstime % 10);
|
|
|
|
abstime /= 10;
|
|
|
|
if (i == 7) buffer[i++] = '.';
|
|
|
|
}
|
|
|
|
if (time < 0) buffer[i++] = '-';
|
|
|
|
|
|
|
|
while (i--) rev[j++] = buffer[i];
|
|
|
|
rev[j] = 0;
|
|
|
|
|
|
|
|
return wine_dbg_sprintf("%s", rev);
|
|
|
|
}
|
|
|
|
|
2017-06-19 21:15:31 +02:00
|
|
|
/* see IAsyncReader::Request on MSDN for the explanation of this */
|
2003-09-26 01:50:06 +02:00
|
|
|
#define MEDIATIME_FROM_BYTES(x) ((LONGLONG)(x) * 10000000)
|
2019-09-21 00:35:06 +02:00
|
|
|
#define BYTES_FROM_MEDIATIME(time) ((time) / 10000000)
|
2003-09-26 01:50:06 +02:00
|
|
|
|
2019-11-29 00:35:39 +01:00
|
|
|
HRESULT dsound_render_create(IUnknown *outer, void **out) DECLSPEC_HIDDEN;
|
2019-10-03 05:01:06 +02:00
|
|
|
HRESULT filter_graph_create(IUnknown *outer, void **out) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT filter_graph_no_thread_create(IUnknown *outer, void **out) DECLSPEC_HIDDEN;
|
2011-05-13 17:52:39 +02:00
|
|
|
HRESULT FilterMapper2_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT FilterMapper_create(IUnknown *pUnkOuter, LPVOID *ppObj) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT StdMemAllocator_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT AVIDec_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT VideoRendererDefault_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT QUARTZ_CreateSystemClock(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT ACMWrapper_create(IUnknown * pUnkOuter, LPVOID * ppv) DECLSPEC_HIDDEN;
|
2013-11-05 23:59:54 +01:00
|
|
|
HRESULT VMR7Impl_create(IUnknown *pUnkOuter, LPVOID *ppv) DECLSPEC_HIDDEN;
|
2012-04-03 21:37:55 +02:00
|
|
|
HRESULT VMR9Impl_create(IUnknown *pUnkOuter, LPVOID *ppv) DECLSPEC_HIDDEN;
|
2003-07-01 06:29:48 +02:00
|
|
|
|
2011-05-13 17:52:39 +02:00
|
|
|
HRESULT EnumMonikerImpl_Create(IMoniker ** ppMoniker, ULONG nMonikerCount, IEnumMoniker ** ppEnum) DECLSPEC_HIDDEN;
|
2003-06-13 20:06:44 +02:00
|
|
|
|
2011-05-13 17:52:39 +02:00
|
|
|
HRESULT IEnumRegFiltersImpl_Construct(REGFILTER * pInRegFilters, const ULONG size, IEnumRegFilters ** ppEnum) DECLSPEC_HIDDEN;
|
2003-08-07 00:04:45 +02:00
|
|
|
|
2011-05-13 17:52:39 +02:00
|
|
|
extern const char * qzdebugstr_guid(const GUID * id) DECLSPEC_HIDDEN;
|
2010-11-29 10:44:16 +01:00
|
|
|
extern void video_unregister_windowclass(void) DECLSPEC_HIDDEN;
|
2003-08-07 00:04:45 +02:00
|
|
|
|
2019-08-06 21:58:35 +02:00
|
|
|
BOOL get_media_type(const WCHAR *filename, GUID *majortype, GUID *subtype, GUID *source_clsid) DECLSPEC_HIDDEN;
|
2013-02-21 16:29:55 +01:00
|
|
|
|
2003-06-13 20:06:44 +02:00
|
|
|
#endif /* __QUARTZ_PRIVATE_INCLUDED__ */
|