evr.idl 11 KB

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