Lionel Ulmer | 1fa9624 | 2003-06-13 18:06:44 +0000 | [diff] [blame] | 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 | |
Alexandre Julliard | e37c6e1 | 2003-09-05 23:08:26 +0000 | [diff] [blame] | 26 | #include <stdarg.h> |
| 27 | |
| 28 | #include "windef.h" |
Lionel Ulmer | 1fa9624 | 2003-06-13 18:06:44 +0000 | [diff] [blame] | 29 | #include "winbase.h" |
| 30 | #include "wtypes.h" |
| 31 | #include "wingdi.h" |
| 32 | #include "winuser.h" |
| 33 | #include "dshow.h" |
| 34 | |
Robert Shearman | 0a6f11c | 2003-09-25 23:50:06 +0000 | [diff] [blame] | 35 | #define MEDIATIME_FROM_BYTES(x) ((LONGLONG)(x) * 10000000) |
| 36 | #define SEC_FROM_MEDIATIME(time) ((time) / 10000000) |
| 37 | #define BYTES_FROM_MEDIATIME(time) SEC_FROM_MEDIATIME(time) |
| 38 | #define MSEC_FROM_MEDIATIME(time) ((time) / 10000) |
| 39 | |
Lionel Ulmer | 1fa9624 | 2003-06-13 18:06:44 +0000 | [diff] [blame] | 40 | HRESULT FILTERGRAPH_create(IUnknown *pUnkOuter, LPVOID *ppObj) ; |
Robert Shearman | c71301a | 2003-07-01 04:29:48 +0000 | [diff] [blame] | 41 | HRESULT FilterMapper2_create(IUnknown *pUnkOuter, LPVOID *ppObj); |
Robert Shearman | ad302ff | 2003-08-06 23:00:14 +0000 | [diff] [blame] | 42 | HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv); |
Robert Shearman | 8e538a3 | 2003-09-11 21:18:36 +0000 | [diff] [blame] | 43 | HRESULT StdMemAllocator_create(IUnknown * pUnkOuter, LPVOID * ppv); |
Robert Shearman | d6254fc | 2003-11-18 20:47:48 +0000 | [diff] [blame] | 44 | HRESULT AVISplitter_create(IUnknown * pUnkOuter, LPVOID * ppv); |
Robert Shearman | c71301a | 2003-07-01 04:29:48 +0000 | [diff] [blame] | 45 | |
| 46 | HRESULT EnumMonikerImpl_Create(IMoniker ** ppMoniker, ULONG nMonikerCount, IEnumMoniker ** ppEnum); |
Lionel Ulmer | 1fa9624 | 2003-06-13 18:06:44 +0000 | [diff] [blame] | 47 | |
Robert Shearman | cae7755 | 2003-08-06 22:04:45 +0000 | [diff] [blame] | 48 | typedef struct tagENUMPINDETAILS |
| 49 | { |
| 50 | ULONG cPins; |
| 51 | IPin ** ppPins; |
| 52 | } ENUMPINDETAILS; |
| 53 | |
| 54 | typedef struct tagENUMEDIADETAILS |
| 55 | { |
| 56 | ULONG cMediaTypes; |
| 57 | AM_MEDIA_TYPE * pMediaTypes; |
| 58 | } ENUMMEDIADETAILS; |
| 59 | |
| 60 | HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** ppEnum); |
| 61 | HRESULT IEnumMediaTypesImpl_Construct(const ENUMMEDIADETAILS * pDetails, IEnumMediaTypes ** ppEnum); |
Christian Costa | b0c9f6a | 2004-03-04 06:07:30 +0000 | [diff] [blame^] | 62 | HRESULT IEnumRegFiltersImpl_Construct(REGFILTER * pInRegFilters, const ULONG size, IEnumRegFilters ** ppEnum); |
| 63 | HRESULT IEnumFiltersImpl_Construct(IBaseFilter ** ppFilters, ULONG nFilters, IEnumFilters ** ppEnum); |
Robert Shearman | cae7755 | 2003-08-06 22:04:45 +0000 | [diff] [blame] | 64 | |
| 65 | extern const char * qzdebugstr_guid(const GUID * id); |
| 66 | extern const char * qzdebugstr_State(FILTER_STATE state); |
| 67 | |
Robert Shearman | 8e538a3 | 2003-09-11 21:18:36 +0000 | [diff] [blame] | 68 | HRESULT CopyMediaType(AM_MEDIA_TYPE * pDest, const AM_MEDIA_TYPE *pSrc); |
| 69 | void DeleteMediaType(AM_MEDIA_TYPE * pmt); |
Robert Shearman | cae7755 | 2003-08-06 22:04:45 +0000 | [diff] [blame] | 70 | BOOL CompareMediaTypes(const AM_MEDIA_TYPE * pmt1, const AM_MEDIA_TYPE * pmt2, BOOL bWildcards); |
| 71 | void dump_AM_MEDIA_TYPE(const AM_MEDIA_TYPE * pmt); |
| 72 | |
Lionel Ulmer | 1fa9624 | 2003-06-13 18:06:44 +0000 | [diff] [blame] | 73 | #endif /* __QUARTZ_PRIVATE_INCLUDED__ */ |