Debian Codegraph @

mingw-w64-headers/include/evr9.idl

raw
1 /*
2 * Copyright 2020 Nikolay Sivov for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 import "unknwn.idl";
20 import "evr.idl";
21 import "dxva2api.idl";
22
23 typedef struct MFVideoAlphaBitmapParams
24 {
25 DWORD dwFlags;
26 COLORREF clrSrcKey;
27 RECT rcSrc;
28 MFVideoNormalizedRect nrcDest;
29 FLOAT fAlpha;
30 DWORD dwFilterMode;
31 } MFVideoAlphaBitmapParams;
32
33 typedef struct MFVideoAlphaBitmap
34 {
35 BOOL GetBitmapFromDC;
36 union
37 {
38 HDC hdc;
39 IDirect3DSurface9 *pDDS;
40 } bitmap;
41 MFVideoAlphaBitmapParams params;
42 } MFVideoAlphaBitmap;
43
44 typedef enum
45 {
46 MFVideoAlphaBitmap_EntireDDS = 0x1,
47 MFVideoAlphaBitmap_SrcColorKey = 0x2,
48 MFVideoAlphaBitmap_SrcRect = 0x4,
49 MFVideoAlphaBitmap_DestRect = 0x8,
50 MFVideoAlphaBitmap_FilterMode = 0x10,
51 MFVideoAlphaBitmap_Alpha = 0x20,
52 MFVideoAlphaBitmap_BitMask = 0x3f
53 } MFVideoAlphaBitmapFlags;
54
55 [
56 object,
57 uuid(814c7b20-0fdb-4eec-af8f-f957c8f69edc),
58 local
59 ]
60 interface IMFVideoMixerBitmap : IUnknown
61 {
62 HRESULT SetAlphaBitmap(
63 [in] const MFVideoAlphaBitmap *bitmap
64 );
65 HRESULT ClearAlphaBitmap(void);
66 HRESULT UpdateAlphaBitmapParameters(
67 [in] const MFVideoAlphaBitmapParams *params
68 );
69 HRESULT GetAlphaBitmapParameters(
70 [out] MFVideoAlphaBitmapParams *params
71 );
72 }
73
74 [
75 object,
76 uuid(6ab0000c-fece-4d1f-a2ac-a9573530656e),
77 pointer_default(unique)
78 ]
79 interface IMFVideoProcessor : IUnknown
80 {
81 HRESULT GetAvailableVideoProcessorModes(
82 [out] UINT *count,
83 [out, size_is(*count)] GUID **modes
84 );
85 HRESULT GetVideoProcessorCaps(
86 [in] GUID *mode,
87 [out] DXVA2_VideoProcessorCaps *caps
88 );
89 HRESULT GetVideoProcessorMode(
90 [out] GUID *mode
91 );
92 HRESULT SetVideoProcessorMode(
93 [in] GUID *mode
94 );
95 HRESULT GetProcAmpRange(
96 [in] DWORD prop,
97 [out] DXVA2_ValueRange *range
98 );
99 HRESULT GetProcAmpValues(
100 [in] DWORD flags,
101 [out] DXVA2_ProcAmpValues *values
102 );
103 HRESULT SetProcAmpValues(
104 [in] DWORD flags,
105 [in] DXVA2_ProcAmpValues *values
106 );
107 HRESULT GetFilteringRange(
108 [in] DWORD prop,
109 [out] DXVA2_ValueRange *range
110 );
111 HRESULT GetFilteringValue(
112 [in] DWORD prop,
113 [out] DXVA2_Fixed32 *value
114 );
115 HRESULT SetFilteringValue(
116 [in] DWORD prop,
117 [in] DXVA2_Fixed32 *value
118 );
119 HRESULT GetBackgroundColor(
120 [out] COLORREF *color
121 );
122 HRESULT SetBackgroundColor(
123 [in] COLORREF color
124 );
125 }