gdi32: Remove double parentheses, not a misplaced pair (PVS-Studio).
[wine.git] / include / mediaobj.idl
blob04c82e890a090ab0dc1a504d6bd0e4b395ff655f
1 /*
2 * Copyright (C) 2002 Alexandre Julliard
3 * Copyright (C) 2004 Vincent BĂ©ron
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 import "unknwn.idl";
21 import "objidl.idl";
22 import "strmif.idl";
24 interface IDMOQualityControl;
25 interface IDMOVideoOutputOptimizations;
27 typedef struct _DMOMediaType
29 GUID majortype;
30 GUID subtype;
31 BOOL bFixedSizeSamples;
32 BOOL bTemporalCompression;
33 ULONG lSampleSize;
34 GUID formattype;
35 IUnknown *pUnk;
36 ULONG cbFormat;
37 BYTE *pbFormat;
38 } DMO_MEDIA_TYPE;
40 /*****************************************************************************
41 * IEnumDMO interface
44 object,
45 uuid(2C3CD98A-2BFA-4A53-9C27-5249BA64BA0F),
46 pointer_default(unique)
48 interface IEnumDMO : IUnknown
50 [local]
51 HRESULT Next(
52 [in] DWORD cItemsToFetch,
53 [out] CLSID *pCLSID,
54 [out] WCHAR **Names,
55 [out] DWORD *pcItemsFetched
58 HRESULT Skip(
59 [in] DWORD cItemsToSkip
62 HRESULT Reset();
64 HRESULT Clone(
65 [out] IEnumDMO **ppEnum
69 /*****************************************************************************
70 * IMediaBuffer interface
73 object,
74 uuid(59eff8b9-938c-4a26-82f2-95cb84cdc837),
75 local
77 interface IMediaBuffer : IUnknown
79 HRESULT SetLength(
80 DWORD cbLength
83 HRESULT GetMaxLength(
84 [out] DWORD *pcbMaxLength
87 HRESULT GetBufferAndLength(
88 [out] BYTE **ppBuffer,
89 [out] DWORD *pcbLength
93 typedef struct _DMO_OUTPUT_DATA_BUFFER {
94 IMediaBuffer *pBuffer;
95 DWORD dwStatus;
96 REFERENCE_TIME rtTimestamp;
97 REFERENCE_TIME rtTimelength;
98 } DMO_OUTPUT_DATA_BUFFER, *PDMO_OUTPUT_DATA_BUFFER;
100 enum _DMO_INPLACE_PROCESS_FLAGS {
101 DMO_INPLACE_NORMAL = 0x00000000,
102 DMO_INPLACE_ZERO = 0x00000001
105 /*****************************************************************************
106 * IMediaObject interface
109 object,
110 uuid(d8ad0f58-5494-4102-97c5-ec798e59bcf4),
111 local
113 interface IMediaObject : IUnknown
115 HRESULT GetStreamCount(
116 [out] DWORD *pcInputStreams,
117 [out] DWORD *pcOutputStreams
120 HRESULT GetInputStreamInfo(
121 DWORD dwInputStreamIndex,
122 [out] DWORD *pdwFlags
125 HRESULT GetOutputStreamInfo(
126 DWORD dwOutputStreamIndex,
127 [out] DWORD *pdwFlags
130 HRESULT GetInputType(
131 DWORD dwInputStreamIndex,
132 DWORD dwTypeIndex,
133 [out] DMO_MEDIA_TYPE *pmt
136 HRESULT GetOutputType(
137 DWORD dwOutputStreamIndex,
138 DWORD dwTypeIndex,
139 [out] DMO_MEDIA_TYPE *pmt
142 HRESULT SetInputType(
143 DWORD dwInputStreamIndex,
144 [in] const DMO_MEDIA_TYPE *pmt,
145 DWORD dwFlags
148 HRESULT SetOutputType(
149 DWORD dwOutputStreamIndex,
150 [in] const DMO_MEDIA_TYPE *pmt,
151 DWORD dwFlags
154 HRESULT GetInputCurrentType(
155 DWORD dwInputStreamIndex,
156 [out] DMO_MEDIA_TYPE *pmt
159 HRESULT GetOutputCurrentType(
160 DWORD dwOutputStreamIndex,
161 [out] DMO_MEDIA_TYPE *pmt
164 HRESULT GetInputSizeInfo(
165 DWORD dwInputStreamIndex,
166 [out] DWORD *pcbSize,
167 [out] DWORD *pcbMaxLookahead,
168 [out] DWORD *pcbAlignment
171 HRESULT GetOutputSizeInfo(
172 DWORD dwOutputStreamIndex,
173 [out] DWORD *pcbSize,
174 [out] DWORD *pcbAlignment
177 HRESULT GetInputMaxLatency(
178 DWORD dwInputStreamIndex,
179 [out] REFERENCE_TIME *prtMaxLatency
182 HRESULT SetInputMaxLatency(
183 DWORD dwInputStreamIndex,
184 REFERENCE_TIME rtMaxLatency
187 HRESULT Flush();
189 HRESULT Discontinuity(DWORD dwInputStreamIndex);
191 HRESULT AllocateStreamingResources();
193 HRESULT FreeStreamingResources();
195 HRESULT GetInputStatus(
196 DWORD dwInputStreamIndex,
197 [out] DWORD *dwFlags
200 HRESULT ProcessInput(
201 DWORD dwInputStreamIndex,
202 IMediaBuffer *pBuffer,
203 DWORD dwFlags,
204 REFERENCE_TIME rtTimestamp,
205 REFERENCE_TIME rtTimelength
208 HRESULT ProcessOutput(
209 DWORD dwFlags,
210 DWORD cOutputBufferCount,
211 [in,out] DMO_OUTPUT_DATA_BUFFER *pOutputBuffers,
212 [out] DWORD *pdwStatus
215 HRESULT Lock(LONG bLock);
218 /*****************************************************************************
219 * IMediaObjectInPlace interface
223 object,
224 uuid(651b9ad0-0fc7-4aa9-9538-d89931010741),
225 local
227 interface IMediaObjectInPlace : IUnknown {
228 HRESULT Process(
229 [in] ULONG ulSize,
230 [in,out] BYTE* pData,
231 [in] REFERENCE_TIME refTimeStart,
232 [in] DWORD dwFlags
235 HRESULT Clone(
236 [out] IMediaObjectInPlace **ppMediaObject
239 HRESULT GetLatency(
240 [out] REFERENCE_TIME *pLatencyTime