libwine: Compute relative paths for bin and dll directories at compile time.
[wine/multimedia.git] / dlls / qcap / qcap_main.h
blob023af47d65b6ba14f15aa9877618bae28aaf1b83
1 /*
2 * Qcap main header file
4 * Copyright (C) 2005 Rolf Kalbermatter
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #ifndef _QCAP_MAIN_H_DEFINED
21 #define _QCAP_MAIN_H_DEFINED
23 extern DWORD ObjectRefCount(BOOL increment);
25 extern IUnknown * WINAPI QCAP_createAudioCaptureFilter(IUnknown *pUnkOuter, HRESULT *phr);
26 extern IUnknown * WINAPI QCAP_createAVICompressor(IUnknown *pUnkOuter, HRESULT *phr);
27 extern IUnknown * WINAPI QCAP_createVFWCaptureFilter(IUnknown *pUnkOuter, HRESULT *phr);
28 extern IUnknown * WINAPI QCAP_createVFWCaptureFilterPropertyPage(IUnknown *pUnkOuter, HRESULT *phr);
29 extern IUnknown * WINAPI QCAP_createAVImux(IUnknown *pUnkOuter, HRESULT *phr);
30 extern IUnknown * WINAPI QCAP_createAVImuxPropertyPage(IUnknown *pUnkOuter, HRESULT *phr);
31 extern IUnknown * WINAPI QCAP_createAVImuxPropertyPage1(IUnknown *pUnkOuter, HRESULT *phr);
32 extern IUnknown * WINAPI QCAP_createFileWriter(IUnknown *pUnkOuter, HRESULT *phr);
33 extern IUnknown * WINAPI QCAP_createCaptureGraphBuilder2(IUnknown *pUnkOuter, HRESULT *phr);
34 extern IUnknown * WINAPI QCAP_createInfinitePinTeeFilter(IUnknown *pUnkOuter, HRESULT *phr);
35 extern IUnknown * WINAPI QCAP_createSmartTeeFilter(IUnknown *pUnkOuter, HRESULT *phr);
36 extern IUnknown * WINAPI QCAP_createAudioInputMixerPropertyPage(IUnknown *pUnkOuter, HRESULT *phr);
38 typedef struct tagENUMPINDETAILS
40 ULONG cPins;
41 IPin ** ppPins;
42 } ENUMPINDETAILS;
44 typedef struct tagENUMEDIADETAILS
46 ULONG cMediaTypes;
47 AM_MEDIA_TYPE * pMediaTypes;
48 } ENUMMEDIADETAILS;
50 HRESULT IEnumPinsImpl_Construct(const ENUMPINDETAILS * pDetails, IEnumPins ** ppEnum);
51 HRESULT IEnumMediaTypesImpl_Construct(const ENUMMEDIADETAILS * pDetails, IEnumMediaTypes ** ppEnum);
53 HRESULT CopyMediaType(AM_MEDIA_TYPE * pDest, const AM_MEDIA_TYPE *pSrc);
54 void FreeMediaType(AM_MEDIA_TYPE * pmt);
55 void DeleteMediaType(AM_MEDIA_TYPE * pmt);
56 BOOL CompareMediaTypes(const AM_MEDIA_TYPE * pmt1, const AM_MEDIA_TYPE * pmt2, BOOL bWildcards);
57 void dump_AM_MEDIA_TYPE(const AM_MEDIA_TYPE * pmt);
59 enum YUV_Format {
60 /* Last 2 numbers give the skip info, the smaller they are the better
61 * Planar:
62 * HSKIP : VSKIP */
63 YUVP_421, /* 2 : 1 */
64 YUVP_422, /* 2 : 2 */
65 YUVP_441, /* 4 : 1 */
66 YUVP_444, /* 4 : 4 */
67 ENDPLANAR, /* No format, just last planar item so we can check on it */
69 /* Non-planar */
70 YUYV, /* Order: YUYV (Guess why it's named like that) */
71 UYVY, /* Order: UYVY (Looks like someone got bored and swapped the Y's) */
72 UYYVYY, /* YUV411 linux style, perhaps YUV420 is YYUYYV? */
75 void YUV_Init(void);
76 void YUV_To_RGB24(enum YUV_Format format, unsigned char *target, const unsigned char *source, int width, int height);
78 #endif /* _QCAP_MAIN_H_DEFINED */