2015-03-30 07:52:47 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Austin English
|
|
|
|
*
|
|
|
|
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_MFAPI_H
|
|
|
|
#define __WINE_MFAPI_H
|
|
|
|
|
2015-08-07 12:30:10 +02:00
|
|
|
#include <mfobjects.h>
|
|
|
|
#include <mmreg.h>
|
|
|
|
#include <avrt.h>
|
|
|
|
|
2017-05-31 06:37:57 +02:00
|
|
|
#if !defined(MF_VERSION)
|
|
|
|
/* Default to Windows XP */
|
|
|
|
#define MF_SDK_VERSION 0x0001
|
|
|
|
#define MF_API_VERSION 0x0070
|
|
|
|
#define MF_VERSION (MF_SDK_VERSION << 16 | MF_API_VERSION)
|
|
|
|
#endif
|
|
|
|
|
2015-03-30 07:52:47 +02:00
|
|
|
#define MFSTARTUP_NOSOCKET 0x1
|
|
|
|
#define MFSTARTUP_LITE (MFSTARTUP_NOSOCKET)
|
|
|
|
#define MFSTARTUP_FULL 0
|
|
|
|
|
2017-05-31 06:37:57 +02:00
|
|
|
#ifndef MAKEFOURCC
|
|
|
|
#define MAKEFOURCC(ch0, ch1, ch2, ch3) \
|
|
|
|
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \
|
|
|
|
((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 ))
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define DEFINE_MEDIATYPE_GUID(name, format) \
|
|
|
|
DEFINE_GUID(name, format, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
|
|
|
|
|
|
|
|
#ifndef DIRECT3D_VERSION
|
|
|
|
#define D3DFMT_X8R8G8B8 22
|
|
|
|
#endif
|
|
|
|
|
|
|
|
DEFINE_MEDIATYPE_GUID(MFVideoFormat_WMV3, MAKEFOURCC('W','M','V','3'));
|
|
|
|
DEFINE_MEDIATYPE_GUID(MFVideoFormat_RGB32, D3DFMT_X8R8G8B8);
|
|
|
|
|
|
|
|
|
|
|
|
DEFINE_GUID(MF_MT_AVG_BITRATE, 0x20332624, 0xfb0d, 0x4d9e, 0xbd, 0x0d, 0xcb, 0xf6, 0x78, 0x6c, 0x10, 0x2e);
|
|
|
|
DEFINE_GUID(MF_MT_FRAME_RATE, 0xc459a2e8, 0x3d2c, 0x4e44, 0xb1, 0x32, 0xfe, 0xe5, 0x15, 0x6c, 0x7b, 0xb0);
|
|
|
|
DEFINE_GUID(MF_MT_FRAME_SIZE, 0x1652c33d, 0xd6b2, 0x4012, 0xb8, 0x34, 0x72, 0x03, 0x08, 0x49, 0xa3, 0x7d);
|
|
|
|
DEFINE_GUID(MF_MT_INTERLACE_MODE, 0xe2724bb8, 0xe676, 0x4806, 0xb4, 0xb2, 0xa8, 0xd6, 0xef, 0xb4, 0x4c, 0xcd);
|
|
|
|
DEFINE_GUID(MF_MT_MAJOR_TYPE, 0x48eba18e, 0xf8c9, 0x4687, 0xbf, 0x11, 0x0a, 0x74, 0xc9, 0xf9, 0x6a, 0x8f);
|
|
|
|
DEFINE_GUID(MF_MT_PIXEL_ASPECT_RATIO, 0xc6376a1e, 0x8d0a, 0x4027, 0xbe, 0x45, 0x6d, 0x9a, 0x0a, 0xd3, 0x9b, 0xb6);
|
|
|
|
DEFINE_GUID(MF_MT_SUBTYPE, 0xf7e34c9a, 0x42e8, 0x4714, 0xb7, 0x4b, 0xcb, 0x29, 0xd7, 0x2c, 0x35, 0xe5);
|
|
|
|
|
|
|
|
DEFINE_GUID(MFMediaType_Video, 0x73646976, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
|
|
|
|
|
2015-03-30 07:52:47 +02:00
|
|
|
typedef unsigned __int64 MFWORKITEM_KEY;
|
|
|
|
|
|
|
|
HRESULT WINAPI MFCancelWorkItem(MFWORKITEM_KEY key);
|
2018-09-17 02:50:05 +02:00
|
|
|
HRESULT WINAPI MFCopyImage(BYTE *dest, LONG deststride, const BYTE *src, LONG srcstride, DWORD width, DWORD lines);
|
2017-04-21 03:48:12 +02:00
|
|
|
HRESULT WINAPI MFCreateAttributes(IMFAttributes **attributes, UINT32 size);
|
2017-09-06 09:38:58 +02:00
|
|
|
HRESULT WINAPI MFCreateEventQueue(IMFMediaEventQueue **queue);
|
2017-06-27 03:46:28 +02:00
|
|
|
HRESULT WINAPI MFCreateMediaType(IMFMediaType **type);
|
2018-09-13 01:52:11 +02:00
|
|
|
HRESULT WINAPI MFCreateSample(IMFSample **sample);
|
2018-09-07 02:58:41 +02:00
|
|
|
HRESULT WINAPI MFCreateMemoryBuffer(DWORD max_length, IMFMediaBuffer **buffer);
|
2015-03-30 07:52:47 +02:00
|
|
|
HRESULT WINAPI MFGetTimerPeriodicity(DWORD *periodicity);
|
2017-05-09 00:50:50 +02:00
|
|
|
HRESULT WINAPI MFTEnum(GUID category, UINT32 flags, MFT_REGISTER_TYPE_INFO *input_type,
|
|
|
|
MFT_REGISTER_TYPE_INFO *output_type, IMFAttributes *attributes,
|
|
|
|
CLSID **pclsids, UINT32 *pcount);
|
2017-08-14 14:12:23 +02:00
|
|
|
HRESULT WINAPI MFTEnumEx(GUID category, UINT32 flags, const MFT_REGISTER_TYPE_INFO *input_type,
|
|
|
|
const MFT_REGISTER_TYPE_INFO *output_type, IMFActivate ***activate,
|
|
|
|
UINT32 *pcount);
|
2015-03-30 07:52:47 +02:00
|
|
|
HRESULT WINAPI MFLockPlatform(void);
|
2017-05-09 00:50:26 +02:00
|
|
|
HRESULT WINAPI MFTRegister(CLSID clsid, GUID category, LPWSTR name, UINT32 flags, UINT32 cinput,
|
|
|
|
MFT_REGISTER_TYPE_INFO *input_types, UINT32 coutput,
|
|
|
|
MFT_REGISTER_TYPE_INFO *output_types, IMFAttributes *attributes);
|
2018-09-07 02:58:37 +02:00
|
|
|
HRESULT WINAPI MFTRegisterLocal(IClassFactory *factory, REFGUID category, LPCWSTR name,
|
|
|
|
UINT32 flags, UINT32 cinput, const MFT_REGISTER_TYPE_INFO *input_types,
|
|
|
|
UINT32 coutput, const MFT_REGISTER_TYPE_INFO* output_types);
|
2015-03-30 07:52:47 +02:00
|
|
|
HRESULT WINAPI MFShutdown(void);
|
|
|
|
HRESULT WINAPI MFStartup(ULONG version, DWORD flags);
|
|
|
|
HRESULT WINAPI MFUnlockPlatform(void);
|
2017-05-09 00:50:38 +02:00
|
|
|
HRESULT WINAPI MFTUnregister(CLSID clsid);
|
2018-09-07 02:58:38 +02:00
|
|
|
HRESULT WINAPI MFTUnregisterLocal(IClassFactory *factory);
|
2015-08-07 12:30:10 +02:00
|
|
|
HRESULT WINAPI MFGetPluginControl(IMFPluginControl**);
|
2015-03-30 07:52:47 +02:00
|
|
|
|
|
|
|
#endif /* __WINE_MFAPI_H */
|