| 1 |
cpp_quote("/**") |
| 2 |
cpp_quote(" * This file is part of the mingw-w64 runtime package.") |
| 3 |
cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.") |
| 4 |
cpp_quote(" */") |
| 5 |
cpp_quote("") |
| 6 |
cpp_quote("#include <winapifamily.h>") |
| 7 |
cpp_quote("") |
| 8 |
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") |
| 9 |
|
| 10 |
import "unknwn.idl"; |
| 11 |
import "propidl.idl"; |
| 12 |
import "mfidl.idl"; |
| 13 |
import "mftransform.idl"; |
| 14 |
import "mediaobj.idl"; |
| 15 |
import "strmif.idl"; |
| 16 |
|
| 17 |
interface IMFTrackedSample; |
| 18 |
interface IMFVideoDisplayControl; |
| 19 |
interface IMFVideoPresenter; |
| 20 |
interface IMFVideoPositionMapper; |
| 21 |
interface IMFDesiredSample; |
| 22 |
interface IMFVideoMixerControl; |
| 23 |
interface IMFVideoRenderer; |
| 24 |
interface IMFVideoDeviceID; |
| 25 |
interface IEVRFilterConfig; |
| 26 |
|
| 27 |
cpp_quote("#if defined(__midl)") |
| 28 |
|
| 29 |
#ifndef MAKEFOURCC |
| 30 |
#define MAKEFOURCC(ch0, ch1, ch2, ch3) \ |
| 31 |
((DWORD)(BYTE)(ch0) | ((DWORD)(BYTE)(ch1) << 8) | \ |
| 32 |
((DWORD)(BYTE)(ch2) << 16) | ((DWORD)(BYTE)(ch3) << 24 )) |
| 33 |
#endif |
| 34 |
|
| 35 |
#ifndef D3DFORMAT |
| 36 |
cpp_quote("") |
| 37 |
typedef enum _D3DFORMAT { |
| 38 |
D3DFMT_UNKNOWN = 0, |
| 39 |
D3DFMT_R8G8B8 = 20, |
| 40 |
D3DFMT_A8R8G8B8 = 21, |
| 41 |
D3DFMT_X8R8G8B8 = 22, |
| 42 |
D3DFMT_R5G6B5 = 23, |
| 43 |
D3DFMT_X1R5G5B5 = 24, |
| 44 |
D3DFMT_A1R5G5B5 = 25, |
| 45 |
D3DFMT_A4R4G4B4 = 26, |
| 46 |
D3DFMT_R3G3B2 = 27, |
| 47 |
D3DFMT_A8 = 28, |
| 48 |
D3DFMT_A8R3G3B2 = 29, |
| 49 |
D3DFMT_X4R4G4B4 = 30, |
| 50 |
D3DFMT_A2B10G10R10 = 31, |
| 51 |
D3DFMT_G16R16 = 34, |
| 52 |
D3DFMT_A8P8 = 40, |
| 53 |
D3DFMT_P8 = 41, |
| 54 |
D3DFMT_L8 = 50, |
| 55 |
D3DFMT_A8L8 = 51, |
| 56 |
D3DFMT_A4L4 = 52, |
| 57 |
D3DFMT_V8U8 = 60, |
| 58 |
D3DFMT_L6V5U5 = 61, |
| 59 |
D3DFMT_X8L8V8U8 = 62, |
| 60 |
D3DFMT_Q8W8V8U8 = 63, |
| 61 |
D3DFMT_V16U16 = 64, |
| 62 |
D3DFMT_W11V11U10 = 65, |
| 63 |
D3DFMT_A2W10V10U10 = 67, |
| 64 |
D3DFMT_D16_LOCKABLE = 70, |
| 65 |
D3DFMT_D32 = 71, |
| 66 |
D3DFMT_D15S1 = 73, |
| 67 |
D3DFMT_D24S8 = 75, |
| 68 |
D3DFMT_D16 = 80, |
| 69 |
D3DFMT_D24X8 = 77, |
| 70 |
D3DFMT_D24X4S4 = 79, |
| 71 |
D3DFMT_VERTEXDATA = 100, |
| 72 |
D3DFMT_INDEX16 = 101, |
| 73 |
D3DFMT_INDEX32 = 102, |
| 74 |
D3DFMT_FORCE_DWORD = 0x7fffffff |
| 75 |
} D3DFORMAT; |
| 76 |
#endif |
| 77 |
cpp_quote("#endif") |
| 78 |
|
| 79 |
cpp_quote("") |
| 80 |
typedef enum MFVideoAspectRatioMode { |
| 81 |
MFVideoARMode_None = 0x00, |
| 82 |
MFVideoARMode_PreservePicture = 0x01, |
| 83 |
MFVideoARMode_PreservePixel = 0x02, |
| 84 |
MFVideoARMode_NonLinearStretch = 0x04, |
| 85 |
MFVideoARMode_Mask = 0x07 |
| 86 |
} MFVideoAspectRatioMode; |
| 87 |
|
| 88 |
cpp_quote("") |
| 89 |
typedef enum MFVideoRenderPrefs { |
| 90 |
MFVideoRenderPrefs_DoNotRenderBorder = 0x01, |
| 91 |
MFVideoRenderPrefs_DoNotClipToDevice = 0x02, |
| 92 |
MFVideoRenderPrefs_AllowOutputThrottling = 0x04, |
| 93 |
MFVideoRenderPrefs_ForceOutputThrottling = 0x08, |
| 94 |
MFVideoRenderPrefs_ForceBatching = 0x10, |
| 95 |
MFVideoRenderPrefs_AllowBatching = 0x20, |
| 96 |
MFVideoRenderPrefs_ForceScaling = 0x40, |
| 97 |
MFVideoRenderPrefs_AllowScaling = 0x80, |
| 98 |
MFVideoRenderPrefs_DoNotRepaintOnStop = 0x100, |
| 99 |
MFVideoRenderPrefs_Mask = 0x1ff |
| 100 |
} MFVideoRenderPrefs; |
| 101 |
|
| 102 |
cpp_quote("") |
| 103 |
cpp_quote("#ifndef _MFVideoNormalizedRect_") |
| 104 |
cpp_quote("#define _MFVideoNormalizedRect_") |
| 105 |
typedef struct MFVideoNormalizedRect { |
| 106 |
float left; |
| 107 |
float top; |
| 108 |
float right; |
| 109 |
float bottom; |
| 110 |
} MFVideoNormalizedRect; |
| 111 |
cpp_quote("#endif") |
| 112 |
|
| 113 |
cpp_quote("") |
| 114 |
typedef enum MFVP_MESSAGE_TYPE { |
| 115 |
MFVP_MESSAGE_FLUSH = 0x00, |
| 116 |
MFVP_MESSAGE_INVALIDATEMEDIATYPE = 0x01, |
| 117 |
MFVP_MESSAGE_PROCESSINPUTNOTIFY = 0x02, |
| 118 |
MFVP_MESSAGE_BEGINSTREAMING = 0x03, |
| 119 |
MFVP_MESSAGE_ENDSTREAMING = 0x04, |
| 120 |
MFVP_MESSAGE_ENDOFSTREAM = 0x05, |
| 121 |
MFVP_MESSAGE_STEP = 0x06, |
| 122 |
MFVP_MESSAGE_CANCELSTEP = 0x07 |
| 123 |
} MFVP_MESSAGE_TYPE; |
| 124 |
|
| 125 |
cpp_quote("") |
| 126 |
typedef enum _MFVideoMixPrefs { |
| 127 |
MFVideoMixPrefs_ForceHalfInterlace = 0x01, |
| 128 |
MFVideoMixPrefs_AllowDropToHalfInterlace = 0x02, |
| 129 |
MFVideoMixPrefs_AllowDropToBob = 0x04, |
| 130 |
MFVideoMixPrefs_ForceBob = 0x08, |
| 131 |
MFVideoMixPrefs_EnableRotation = 0x10, |
| 132 |
MFVideoMixPrefs_Mask = 0x1f |
| 133 |
} MFVideoMixPrefs; |
| 134 |
|
| 135 |
cpp_quote("") |
| 136 |
typedef enum _EVRFilterConfig_Prefs { |
| 137 |
EVRFilterConfigPrefs_EnableQoS = 0x01, |
| 138 |
EVRFilterConfigPrefs_Mask = 0x01 |
| 139 |
} EVRFilterConfigPrefs; |
| 140 |
|
| 141 |
cpp_quote("") |
| 142 |
typedef enum _MF_SERVICE_LOOKUP_TYPE { |
| 143 |
MF_SERVICE_LOOKUP_UPSTREAM, |
| 144 |
MF_SERVICE_LOOKUP_UPSTREAM_DIRECT, |
| 145 |
MF_SERVICE_LOOKUP_DOWNSTREAM, |
| 146 |
MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT, |
| 147 |
MF_SERVICE_LOOKUP_ALL, |
| 148 |
MF_SERVICE_LOOKUP_GLOBAL |
| 149 |
} MF_SERVICE_LOOKUP_TYPE; |
| 150 |
|
| 151 |
cpp_quote("") |
| 152 |
cpp_quote("DEFINE_GUID(MR_VIDEO_RENDER_SERVICE, 0x1092a86c, 0xab1a, 0x459a, 0xa3, 0x36, 0x83, 0x1f, 0xbc, 0x4d, 0x11, 0xff);") |
| 153 |
cpp_quote("DEFINE_GUID(MR_VIDEO_MIXER_SERVICE, 0x73cd2fc, 0x6cf4, 0x40b7, 0x88, 0x59, 0xe8, 0x95, 0x52, 0xc8, 0x41, 0xf8);") |
| 154 |
cpp_quote("DEFINE_GUID(MR_VIDEO_ACCELERATION_SERVICE, 0xefef5175, 0x5c7d, 0x4ce2, 0xbb, 0xbd, 0x34, 0xff, 0x8b, 0xca, 0x65, 0x54);") |
| 155 |
cpp_quote("DEFINE_GUID(MR_BUFFER_SERVICE, 0xa562248c, 0x9ac6, 0x4ffc, 0x9f, 0xba, 0x3a, 0xf8, 0xf8, 0xad, 0x1a, 0x4d);") |
| 156 |
cpp_quote("DEFINE_GUID(VIDEO_ZOOM_RECT, 0x7aaa1638, 0x1b7f, 0x4c93, 0xbd, 0x89, 0x5b, 0x9c, 0x9f, 0xb6, 0xfc, 0xf0);") |
| 157 |
|
| 158 |
cpp_quote("") |
| 159 |
[object, uuid(1F6A9F17-E70B-4e24-8AE4-0B2C3BA7A4AE), helpstring("IMFVideoPositionMapper Interface"), local] |
| 160 |
interface IMFVideoPositionMapper : IUnknown { |
| 161 |
HRESULT MapOutputCoordinateToInputStream ([in] float xOut, [in] float yOut, [in] DWORD dwOutputStreamIndex, [in] DWORD dwInputStreamIndex, [out] float* pxIn, [out] float* pyIn); |
| 162 |
}; |
| 163 |
|
| 164 |
cpp_quote("") |
| 165 |
[object, uuid(A38D9567-5A9C-4f3c-B293-8EB415B279BA), helpstring("IMFVideoDeviceID Interface"), local] |
| 166 |
interface IMFVideoDeviceID : IUnknown { |
| 167 |
HRESULT GetDeviceID ([out] IID* pDeviceID); |
| 168 |
}; |
| 169 |
|
| 170 |
cpp_quote("") |
| 171 |
[object, uuid(a490b1e4-ab84-4d31-a1b2-181e03b1077a), helpstring("IMFVideoDisplayControl Interface")] |
| 172 |
interface IMFVideoDisplayControl : IUnknown { |
| 173 |
HRESULT GetNativeVideoSize ([in, out, unique] SIZE* pszVideo, [in, out, unique] SIZE* pszARVideo); |
| 174 |
HRESULT GetIdealVideoSize ([in, out, unique] SIZE* pszMin, [in, out, unique] SIZE* pszMax); |
| 175 |
HRESULT SetVideoPosition ([in, unique] const MFVideoNormalizedRect* pnrcSource, [in, unique] const LPRECT prcDest); |
| 176 |
HRESULT GetVideoPosition ([out] MFVideoNormalizedRect* pnrcSource, [out] LPRECT prcDest); |
| 177 |
HRESULT SetAspectRatioMode ([in] DWORD dwAspectRatioMode); |
| 178 |
HRESULT GetAspectRatioMode ([out] DWORD* pdwAspectRatioMode); |
| 179 |
HRESULT SetVideoWindow ([in] HWND hwndVideo); |
| 180 |
HRESULT GetVideoWindow ([out] HWND* phwndVideo); |
| 181 |
HRESULT RepaintVideo (); |
| 182 |
HRESULT GetCurrentImage ([in, out] BITMAPINFOHEADER* pBih,[out, size_is(, *pcbDib)] BYTE** pDib, [out] DWORD* pcbDib, [in, out, unique] LONGLONG* pTimeStamp); |
| 183 |
HRESULT SetBorderColor ([in] COLORREF Clr); |
| 184 |
HRESULT GetBorderColor ([out] COLORREF* pClr); |
| 185 |
HRESULT SetRenderingPrefs ([in] DWORD dwRenderFlags); |
| 186 |
HRESULT GetRenderingPrefs ([out] DWORD* pdwRenderFlags); |
| 187 |
HRESULT SetFullscreen ([in] BOOL fFullscreen); |
| 188 |
HRESULT GetFullscreen ([out] BOOL* pfFullscreen); |
| 189 |
}; |
| 190 |
|
| 191 |
cpp_quote("") |
| 192 |
[object, uuid(29AFF080-182A-4a5d-AF3B-448F3A6346CB), helpstring("IMFVideoPresenter Interface"), local] |
| 193 |
interface IMFVideoPresenter : IMFClockStateSink { |
| 194 |
HRESULT ProcessMessage (MFVP_MESSAGE_TYPE eMessage, ULONG_PTR ulParam); |
| 195 |
HRESULT GetCurrentMediaType ([out] IMFVideoMediaType** ppMediaType); |
| 196 |
}; |
| 197 |
|
| 198 |
cpp_quote("") |
| 199 |
[object, uuid(56C294D0-753E-4260-8D61-A3D8820B1D54), helpstring("IMFDesiredSample Interface"), local] |
| 200 |
interface IMFDesiredSample : IUnknown { |
| 201 |
HRESULT GetDesiredSampleTimeAndDuration ([out] LONGLONG *phnsSampleTime, [out] LONGLONG *phnsSampleDuration); |
| 202 |
void SetDesiredSampleTimeAndDuration ([in] LONGLONG hnsSampleTime, [in] LONGLONG hnsSampleDuration); |
| 203 |
void Clear(); |
| 204 |
}; |
| 205 |
|
| 206 |
cpp_quote("") |
| 207 |
[object, uuid(245BF8E9-0755-40f7-88A5-AE0F18D55E17), helpstring("IMFTrackedSample Interface"), local] |
| 208 |
interface IMFTrackedSample : IUnknown { |
| 209 |
HRESULT SetAllocator ([in] IMFAsyncCallback *pSampleAllocator, [in, unique] IUnknown *pUnkState); |
| 210 |
}; |
| 211 |
|
| 212 |
cpp_quote("") |
| 213 |
[object, uuid(A5C6C53F-C202-4aa5-9695-175BA8C508A5), helpstring("IMFVideoMixerControl Interface")] |
| 214 |
interface IMFVideoMixerControl : IUnknown { |
| 215 |
HRESULT SetStreamZOrder ([in] DWORD dwStreamID, [in] DWORD dwZ); |
| 216 |
HRESULT GetStreamZOrder ([in] DWORD dwStreamID, [out] DWORD *pdwZ); |
| 217 |
HRESULT SetStreamOutputRect ([in] DWORD dwStreamID, [in] const MFVideoNormalizedRect *pnrcOutput); |
| 218 |
HRESULT GetStreamOutputRect ([in] DWORD dwStreamID, [out] MFVideoNormalizedRect *pnrcOutput); |
| 219 |
}; |
| 220 |
|
| 221 |
cpp_quote("") |
| 222 |
[object, uuid(8459616d-966e-4930-b658-54fa7e5a16d3), helpstring("IMFVideoMixerControl2 Interface")] |
| 223 |
interface IMFVideoMixerControl2 : IMFVideoMixerControl { |
| 224 |
HRESULT SetMixingPrefs ([in] DWORD dwMixFlags); |
| 225 |
HRESULT GetMixingPrefs ([out] DWORD *pdwMixFlags); |
| 226 |
}; |
| 227 |
|
| 228 |
cpp_quote("") |
| 229 |
[object, uuid(DFDFD197-A9CA-43d8-B341-6AF3503792CD), helpstring("IMFVideoRenderer Interface"), local] |
| 230 |
interface IMFVideoRenderer : IUnknown { |
| 231 |
HRESULT InitializeRenderer ([in, unique] IMFTransform* pVideoMixer, [in, unique] IMFVideoPresenter* pVideoPresenter); |
| 232 |
}; |
| 233 |
|
| 234 |
cpp_quote("") |
| 235 |
[object, uuid(83E91E85-82C1-4ea7-801D-85DC50B75086), helpstring("IEVRFilterConfig Interface"), local] |
| 236 |
interface IEVRFilterConfig : IUnknown { |
| 237 |
HRESULT SetNumberOfStreams ([in] DWORD dwMaxStreams); |
| 238 |
HRESULT GetNumberOfStreams ([out,] DWORD* pdwMaxStreams); |
| 239 |
}; |
| 240 |
|
| 241 |
cpp_quote("") |
| 242 |
[object, uuid(aea36028-796d-454f-beee-b48071e24304), helpstring("IEVRFilterConfigEx Interface")] |
| 243 |
interface IEVRFilterConfigEx : IEVRFilterConfig { |
| 244 |
HRESULT SetConfigPrefs ([in] DWORD dwConfigFlags); |
| 245 |
HRESULT GetConfigPrefs ([out] DWORD* pdwConfigFlags); |
| 246 |
}; |
| 247 |
|
| 248 |
cpp_quote("") |
| 249 |
[object, uuid(fa993889-4383-415a-a930-dd472a8cf6f7), helpstring("IMFTopologyServiceLookup Interface"), local] |
| 250 |
interface IMFTopologyServiceLookup : IUnknown { |
| 251 |
HRESULT LookupService([in] MF_SERVICE_LOOKUP_TYPE Type, [in] DWORD dwIndex, [in] REFGUID guidService, [in] REFIID riid, [out, iid_is(riid)] LPVOID *ppvObjects, [in, out] DWORD *pnObjects); |
| 252 |
}; |
| 253 |
|
| 254 |
cpp_quote("") |
| 255 |
[local, object, uuid(fa99388a-4383-415a-a930-dd472a8cf6f7)] |
| 256 |
interface IMFTopologyServiceLookupClient : IUnknown { |
| 257 |
HRESULT InitServicePointers ([in] IMFTopologyServiceLookup * pLookup); |
| 258 |
HRESULT ReleaseServicePointers (); |
| 259 |
}; |
| 260 |
|
| 261 |
cpp_quote("") |
| 262 |
[object, uuid(83A4CE40-7710-494b-A893-A472049AF630), helpstring("IEVRTrustedVideoPlugin Interface"), local] |
| 263 |
interface IEVRTrustedVideoPlugin: IUnknown { |
| 264 |
HRESULT IsInTrustedVideoMode ([out] BOOL *pYes); |
| 265 |
HRESULT CanConstrict ([out] BOOL *pYes); |
| 266 |
HRESULT SetConstriction (DWORD dwKPix); |
| 267 |
HRESULT DisableImageExport (BOOL bDisable); |
| 268 |
}; |
| 269 |
|
| 270 |
cpp_quote("") |
| 271 |
cpp_quote("HRESULT WINAPI MFCreateVideoPresenter(IUnknown *pOwner, REFIID riidDevice, REFIID riid, void **ppVideoPresenter);") |
| 272 |
cpp_quote("HRESULT WINAPI MFCreateVideoMixer(IUnknown *pOwner, REFIID riidDevice, REFIID riid, void **ppv);") |
| 273 |
cpp_quote("HRESULT WINAPI MFCreateVideoMixerAndPresenter(IUnknown *pMixerOwner, IUnknown *pPresenterOwner, REFIID riidMixer, void **ppvVideoMixer, REFIID riidPresenter, void **ppvVideoPresenter);") |
| 274 |
cpp_quote("HRESULT WINAPI MFCreateVideoRenderer( REFIID riidRenderer, void **ppVideoRenderer );") |
| 275 |
cpp_quote("HRESULT WINAPI MFCreateVideoSampleFromSurface(IUnknown *pUnkSurface, IMFSample **ppSample);") |
| 276 |
cpp_quote("HRESULT WINAPI MFCreateVideoSampleAllocator(REFIID riid, void **ppSampleAllocator);") |
| 277 |
|
| 278 |
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") |
| 279 |
cpp_quote("") |