2003-06-13 18:06:44 +00: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
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __QUARTZ_PRIVATE_INCLUDED__
|
|
|
|
#define __QUARTZ_PRIVATE_INCLUDED__
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
2003-06-13 18:06:44 +00:00
|
|
|
#include "winbase.h"
|
|
|
|
#include "wtypes.h"
|
|
|
|
#include "wingdi.h"
|
|
|
|
#include "winuser.h"
|
|
|
|
#include "dshow.h"
|
|
|
|
|
2003-09-25 23:50:06 +00: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)
|
|
|
|
|
2003-06-13 18:06:44 +00:00
|
|
|
HRESULT FILTERGRAPH_create(IUnknown *pUnkOuter, LPVOID *ppObj) ;
|
2003-07-01 04:29:48 +00:00
|
|
|
HRESULT FilterMapper2_create(IUnknown *pUnkOuter, LPVOID *ppObj);
|
2003-08-06 23:00:14 +00:00
|
|
|
HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2003-09-11 21:18:36 +00:00
|
|
|
HRESULT StdMemAllocator_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2003-11-18 20:47:48 +00:00
|
|
|
HRESULT AVISplitter_create(IUnknown * pUnkOuter, LPVOID * ppv);
|
2004-05-05 23:51:59 +00:00
|
|
|
HRESULT QUARTZ_CreateSystemClock(IUnknown * pUnkOuter, LPVOID * ppv);
|
2003-07-01 04:29:48 +00:00
|
|
|
|
|
|
|
HRESULT EnumMonikerImpl_Create(IMoniker ** ppMoniker, ULONG nMonikerCount, IEnumMoniker ** ppEnum);
|
2003-06-13 18:06:44 +00:00
|
|
|
|
2003-08-06 22:04:45 +00:00
|
|
|
typedef struct tagENUMPINDETAILS
|
|
|
|
{
|
|
|
|
ULONG cPins;
|
|
|
|
IPin ** ppPins;
|
|
|
|
} ENUMPINDETAILS;
|
|
|
|
|
|
|
|
typedef struct tagENUMEDIADETAILS
|
|
|
|
{
|
|
|
|
ULONG cMediaTypes;
|
|
|
|
AM_MEDIA_TYPE * pMediaTypes;
|
|
|
|
} ENUMMEDIADETAILS;
|
|
|
|
|
|
|
|
HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** ppEnum);
|
|
|
|
HRESULT IEnumMediaTypesImpl_Construct(const ENUMMEDIADETAILS * pDetails, IEnumMediaTypes ** ppEnum);
|
2004-03-04 06:07:30 +00:00
|
|
|
HRESULT IEnumRegFiltersImpl_Construct(REGFILTER * pInRegFilters, const ULONG size, IEnumRegFilters ** ppEnum);
|
|
|
|
HRESULT IEnumFiltersImpl_Construct(IBaseFilter ** ppFilters, ULONG nFilters, IEnumFilters ** ppEnum);
|
2003-08-06 22:04:45 +00:00
|
|
|
|
|
|
|
extern const char * qzdebugstr_guid(const GUID * id);
|
|
|
|
extern const char * qzdebugstr_State(FILTER_STATE state);
|
|
|
|
|
2003-09-11 21:18:36 +00:00
|
|
|
HRESULT CopyMediaType(AM_MEDIA_TYPE * pDest, const AM_MEDIA_TYPE *pSrc);
|
|
|
|
void DeleteMediaType(AM_MEDIA_TYPE * pmt);
|
2003-08-06 22:04:45 +00: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);
|
|
|
|
|
2003-06-13 18:06:44 +00:00
|
|
|
#endif /* __QUARTZ_PRIVATE_INCLUDED__ */
|