2005-05-07 20:00:33 +02:00
|
|
|
/*
|
|
|
|
* Qcap main header file
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Rolf Kalbermatter
|
|
|
|
*
|
|
|
|
* 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
|
2005-05-07 20:00:33 +02:00
|
|
|
*/
|
|
|
|
#ifndef _QCAP_MAIN_H_DEFINED
|
|
|
|
#define _QCAP_MAIN_H_DEFINED
|
|
|
|
|
2010-10-04 16:48:25 +02:00
|
|
|
#include "wine/strmbase.h"
|
|
|
|
|
2011-05-13 17:50:04 +02:00
|
|
|
extern DWORD ObjectRefCount(BOOL increment) DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
extern IUnknown * WINAPI QCAP_createAudioCaptureFilter(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
extern IUnknown * WINAPI QCAP_createAVICompressor(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
extern IUnknown * WINAPI QCAP_createVFWCaptureFilter(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
extern IUnknown * WINAPI QCAP_createVFWCaptureFilterPropertyPage(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
2013-12-19 15:31:52 +01:00
|
|
|
extern IUnknown * WINAPI QCAP_createAVICompressor(IUnknown*,HRESULT*) DECLSPEC_HIDDEN;
|
2013-11-20 22:48:04 +01:00
|
|
|
extern IUnknown * WINAPI QCAP_createAVIMux(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
extern IUnknown * WINAPI QCAP_createAVIMuxPropertyPage(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
extern IUnknown * WINAPI QCAP_createAVIMuxPropertyPage1(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
2011-05-13 17:50:04 +02:00
|
|
|
extern IUnknown * WINAPI QCAP_createFileWriter(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
extern IUnknown * WINAPI QCAP_createCaptureGraphBuilder2(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
extern IUnknown * WINAPI QCAP_createInfinitePinTeeFilter(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
extern IUnknown * WINAPI QCAP_createSmartTeeFilter(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
extern IUnknown * WINAPI QCAP_createAudioInputMixerPropertyPage(IUnknown *pUnkOuter, HRESULT *phr) DECLSPEC_HIDDEN;
|
|
|
|
|
|
|
|
void dump_AM_MEDIA_TYPE(const AM_MEDIA_TYPE * pmt) DECLSPEC_HIDDEN;
|
2005-05-14 13:03:44 +02:00
|
|
|
|
2005-05-24 14:51:01 +02:00
|
|
|
enum YUV_Format {
|
|
|
|
/* Last 2 numbers give the skip info, the smaller they are the better
|
|
|
|
* Planar:
|
|
|
|
* HSKIP : VSKIP */
|
|
|
|
YUVP_421, /* 2 : 1 */
|
|
|
|
YUVP_422, /* 2 : 2 */
|
|
|
|
YUVP_441, /* 4 : 1 */
|
|
|
|
YUVP_444, /* 4 : 4 */
|
|
|
|
ENDPLANAR, /* No format, just last planar item so we can check on it */
|
|
|
|
|
|
|
|
/* Non-planar */
|
|
|
|
YUYV, /* Order: YUYV (Guess why it's named like that) */
|
|
|
|
UYVY, /* Order: UYVY (Looks like someone got bored and swapped the Y's) */
|
|
|
|
UYYVYY, /* YUV411 linux style, perhaps YUV420 is YYUYYV? */
|
|
|
|
};
|
|
|
|
|
2011-05-13 17:50:04 +02:00
|
|
|
void YUV_Init(void) DECLSPEC_HIDDEN;
|
|
|
|
void YUV_To_RGB24(enum YUV_Format format, unsigned char *target, const unsigned char *source, int width, int height) DECLSPEC_HIDDEN;
|
2005-05-24 14:51:01 +02:00
|
|
|
|
2013-12-19 15:31:52 +01:00
|
|
|
static inline void * __WINE_ALLOC_SIZE(1) heap_alloc(size_t len)
|
|
|
|
{
|
|
|
|
return HeapAlloc(GetProcessHeap(), 0, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void * __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t len)
|
|
|
|
{
|
|
|
|
return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline BOOL heap_free(void *mem)
|
|
|
|
{
|
|
|
|
return HeapFree(GetProcessHeap(), 0, mem);
|
|
|
|
}
|
|
|
|
|
2005-05-07 20:00:33 +02:00
|
|
|
#endif /* _QCAP_MAIN_H_DEFINED */
|