2003-06-13 20:06:44 +02:00
|
|
|
/* DirectShow private interfaces (QUARTZ.DLL)
|
|
|
|
*
|
|
|
|
* Copyright 2002 Lionel Ulmer
|
|
|
|
*
|
|
|
|
* This file contains the (internal) driver registration functions,
|
|
|
|
* driver enumeration APIs and DirectDraw creation functions.
|
|
|
|
*
|
|
|
|
* 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>
|
|
|
|
|
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"
|
2008-06-10 18:06:08 +02:00
|
|
|
#include "wine/list.h"
|
2003-06-13 20:06:44 +02:00
|
|
|
|
2003-09-26 01:50:06 +02:00
|
|
|
#define MEDIATIME_FROM_BYTES(x) ((LONGLONG)(x) * 10000000)
|
|
|
|
#define SEC_FROM_MEDIATIME(time) ((time) / 10000000)
|
|
|
|
#define BYTES_FROM_MEDIATIME(time) SEC_FROM_MEDIATIME(time)
|
|
|
|
#define MSEC_FROM_MEDIATIME(time) ((time) / 10000)
|
|
|
|
|
2004-08-13 02:44:22 +02:00
|
|
|
#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
|
|
|
|
|
2005-05-05 11:50:35 +02:00
|
|
|
HRESULT FilterGraph_create(IUnknown *pUnkOuter, LPVOID *ppObj);
|
|
|
|
HRESULT FilterGraphNoThread_create(IUnknown *pUnkOuter, LPVOID *ppObj);
|
2003-07-01 06:29:48 +02:00
|
|
|
HRESULT FilterMapper2_create(IUnknown *pUnkOuter, LPVOID *ppObj);
|
2007-03-03 09:21:08 +01:00
|
|
|
HRESULT FilterMapper_create(IUnknown *pUnkOuter, LPVOID *ppObj);
|
2003-08-07 01:00:14 +02:00
|
|
|
HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2003-09-11 23:18:36 +02:00
|
|
|
HRESULT StdMemAllocator_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2003-11-18 21:47:48 +01:00
|
|
|
HRESULT AVISplitter_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2007-04-24 14:28:14 +02:00
|
|
|
HRESULT MPEGSplitter_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2004-08-24 04:28:35 +02:00
|
|
|
HRESULT AVIDec_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
|
|
|
HRESULT DSoundRender_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
|
|
|
HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2008-03-12 18:12:18 +01:00
|
|
|
HRESULT NullRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2008-02-02 10:47:34 +01:00
|
|
|
HRESULT VideoRendererDefault_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2004-05-06 01:51:59 +02:00
|
|
|
HRESULT QUARTZ_CreateSystemClock(IUnknown * pUnkOuter, LPVOID * ppv);
|
2005-02-01 15:22:00 +01:00
|
|
|
HRESULT ACMWrapper_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2005-02-10 18:13:18 +01:00
|
|
|
HRESULT WAVEParser_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2008-04-09 22:12:55 +02:00
|
|
|
HRESULT SeekingPassThru_create(IUnknown *pUnkOuter, LPVOID *ppObj);
|
2003-07-01 06:29:48 +02:00
|
|
|
|
|
|
|
HRESULT EnumMonikerImpl_Create(IMoniker ** ppMoniker, ULONG nMonikerCount, IEnumMoniker ** ppEnum);
|
2003-06-13 20:06:44 +02:00
|
|
|
|
2003-08-07 00:04:45 +02:00
|
|
|
typedef struct tagENUMEDIADETAILS
|
|
|
|
{
|
|
|
|
ULONG cMediaTypes;
|
|
|
|
AM_MEDIA_TYPE * pMediaTypes;
|
|
|
|
} ENUMMEDIADETAILS;
|
|
|
|
|
2008-04-25 23:25:49 +02:00
|
|
|
typedef HRESULT (* FNOBTAINPIN)(IBaseFilter *iface, ULONG pos, IPin **pin, DWORD *lastsynctick);
|
|
|
|
|
|
|
|
HRESULT IEnumPinsImpl_Construct(IEnumPins ** ppEnum, FNOBTAINPIN receive_pin, IBaseFilter *base);
|
2003-08-07 00:04:45 +02:00
|
|
|
HRESULT IEnumMediaTypesImpl_Construct(const ENUMMEDIADETAILS * pDetails, IEnumMediaTypes ** ppEnum);
|
2004-03-04 07:07:30 +01:00
|
|
|
HRESULT IEnumRegFiltersImpl_Construct(REGFILTER * pInRegFilters, const ULONG size, IEnumRegFilters ** ppEnum);
|
|
|
|
HRESULT IEnumFiltersImpl_Construct(IBaseFilter ** ppFilters, ULONG nFilters, IEnumFilters ** ppEnum);
|
2003-08-07 00:04:45 +02:00
|
|
|
|
|
|
|
extern const char * qzdebugstr_guid(const GUID * id);
|
|
|
|
|
2003-09-11 23:18:36 +02:00
|
|
|
HRESULT CopyMediaType(AM_MEDIA_TYPE * pDest, const AM_MEDIA_TYPE *pSrc);
|
2005-05-06 16:34:02 +02:00
|
|
|
void FreeMediaType(AM_MEDIA_TYPE * pmt);
|
2003-09-11 23:18:36 +02:00
|
|
|
void DeleteMediaType(AM_MEDIA_TYPE * pmt);
|
2003-08-07 00:04:45 +02:00
|
|
|
BOOL CompareMediaTypes(const AM_MEDIA_TYPE * pmt1, const AM_MEDIA_TYPE * pmt2, BOOL bWildcards);
|
|
|
|
void dump_AM_MEDIA_TYPE(const AM_MEDIA_TYPE * pmt);
|
2008-03-20 02:31:45 +01:00
|
|
|
HRESULT updatehres( HRESULT original, HRESULT new );
|
2003-08-07 00:04:45 +02:00
|
|
|
|
2008-06-10 18:06:08 +02:00
|
|
|
typedef struct StdMediaSample2
|
|
|
|
{
|
|
|
|
const IMediaSample2Vtbl * lpvtbl;
|
|
|
|
|
|
|
|
LONG ref;
|
|
|
|
AM_SAMPLE2_PROPERTIES props;
|
|
|
|
IMemAllocator * pParent;
|
|
|
|
struct list listentry;
|
|
|
|
LONGLONG tMediaStart;
|
|
|
|
LONGLONG tMediaEnd;
|
|
|
|
} StdMediaSample2;
|
|
|
|
|
2003-06-13 20:06:44 +02:00
|
|
|
#endif /* __QUARTZ_PRIVATE_INCLUDED__ */
|