comctl32: Use a clip region when collapsing the treeview.
[wine/gsoc_dplay.git] / include / amvideo.idl
blob5e6cdd69b0d49e16aa742749a42e27c369ede335
1 /*
2 * Copyright (C) 2003 Robert Shearman
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.
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.
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
19 import "objidl.idl";
21 /* trick widl into thinking that it knows the DirectDraw types
22 * as there is no IDL file for them (yet) */
23 cpp_quote("#if 0")
24 typedef void * LPDIRECTDRAW;
25 typedef void DDSURFACEDESC,DDCAPS;
26 typedef DWORD RGBQUAD;
27 typedef LONGLONG REFERENCE_TIME;
28 typedef struct
30 DWORD biSize;
31 LONG biWidth;
32 LONG biHeight;
33 WORD biPlanes;
34 WORD biBitCount;
35 DWORD biCompression;
36 DWORD biSizeImage;
37 LONG biXPelsPerMeter;
38 LONG biYPelsPerMeter;
39 DWORD biClrUsed;
40 DWORD biClrImportant;
41 } BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER;
42 cpp_quote("#endif")
44 cpp_quote("#include <ddraw.h>")
46 cpp_quote("#define AMDDS_NONE 0x00")
47 cpp_quote("#define AMDDS_DCIPS 0x01")
48 cpp_quote("#define AMDDS_PS 0x02")
49 cpp_quote("#define AMDDS_RGBOVR 0x04")
50 cpp_quote("#define AMDDS_YUVOVR 0x08")
51 cpp_quote("#define AMDDS_RGBOFF 0x10")
52 cpp_quote("#define AMDDS_YUVOFF 0x20")
53 cpp_quote("#define AMDDS_RGBFLP 0x40")
54 cpp_quote("#define AMDDS_YUVFLP 0x80")
55 cpp_quote("#define AMDDS_ALL 0xFF")
56 cpp_quote("#define AMDDS_DEFAULT AMDDS_ALL")
58 cpp_quote("#define AMDDS_YUV (AMDDS_YUVOFF | AMDDS_YUVOVR | AMDDS_YUVFLP)")
59 cpp_quote("#define AMDDS_RGB (AMDDS_RGBOFF | AMDDS_RGBOVR | AMDDS_RGBFLP)")
60 cpp_quote("#define AMDSS_PRIMARY (AMDDS_DCIPS | AMDDS_PS)")
63 object,
64 pointer_default(unique),
65 local
67 interface IDirectDrawVideo : IUnknown
69 HRESULT GetSwitches([out] DWORD * pSwitches);
70 HRESULT SetSwitches([in] DWORD Switches);
71 HRESULT GetCaps([out] DDCAPS * pCaps);
72 HRESULT GetEmulatedCaps([out] DDCAPS *pCaps);
73 HRESULT GetSurfaceDesc([out] DDSURFACEDESC * pSurfaceDesc);
74 HRESULT GetFourCCCodes([out] DWORD * pCount, [out] DWORD * pCodes);
75 HRESULT SetDirectDraw([in] LPDIRECTDRAW pDirectDraw);
76 HRESULT GetDirectDraw([out] LPDIRECTDRAW * ppDirectDraw);
77 HRESULT GetSurfaceType([out] DWORD * pSurfaceType);
78 HRESULT SetDefault();
79 HRESULT UseScanLine([in] long UseScanLine);
80 HRESULT CanUseScanLine([out] long * UseScanLine);
81 HRESULT UseOverlayStretch([in] long UseOverlayStretch);
82 HRESULT CanUseOverlayStretch([out] long * UseOverlayStretch);
83 HRESULT UseWhenFullScreen([in] long UseWhenFullScreen);
84 HRESULT WillUseFullScreen([out] long * UseWhenFullScreen);
88 object,
89 pointer_default(unique),
90 local
92 interface IQualProp : IUnknown
94 [propget] HRESULT FramesDroppedInRenderer([out] int * pcFrames);
95 [propget] HRESULT FramesDrawn([out] int * pcFramesDrawn);
96 [propget] HRESULT AvgFrameRate([out] int * piAvgFrameRate);
97 [propget] HRESULT Jitter([out] int * iJitter);
98 [propget] HRESULT AvgSyncOffset([out] int * piAvg);
99 [propget] HRESULT DevSyncOffset([out] int * piDev);
103 object,
104 pointer_default(unique)
106 interface IFullScreenVideo : IUnknown
108 HRESULT CountModes([out] long * pModes);
109 HRESULT GetModeInfo([in] long Mode, [out] long * pWidth, [out] long * pHeight, [out] long * pDepth);
110 HRESULT GetCurrentMode([out] long * pMode);
111 HRESULT IsModeAvailable([in] long Mode);
112 HRESULT IsModeEnabled([in] long Mode);
113 HRESULT SetEnabled([in] long Mode, [in] long bEnabled);
114 HRESULT GetClipFactor([out] long * pClipFactor);
115 HRESULT SetClipFactor([in] long ClipFactor);
116 HRESULT SetMessageDrain([in] HWND hwnd);
117 HRESULT GetMessageDrain([out] HWND * hwnd);
118 HRESULT SetMonitor([in] long Monitor);
119 HRESULT GetMonitor([out] long * Monitor);
120 HRESULT HideOnDeactivate([in] long Hide);
121 HRESULT IsHideOnDeactivate();
122 HRESULT SetCaption([in] BSTR strCaption);
123 HRESULT GetCaption([out] BSTR * pstrCaption);
124 HRESULT SetDefault();
128 object,
129 pointer_default(unique),
130 local
132 interface IFullScreenVideoEx : IFullScreenVideo
134 HRESULT SetAcceleratorTable([in] HWND hwnd, [in] HACCEL hAccel);
135 HRESULT GetAcceleratorTable([out] HWND * phwnd, [out] HACCEL * phAccel);
136 HRESULT KeepPixelAspectRatio([in] long KeepAspect);
137 /* FIXME: not sure is this next method is an [out] */
138 HRESULT IsKeepPixelAspectRatio([out] long * pKeepAspect);
142 object,
143 pointer_default(unique),
144 local
146 interface IBaseVideoMixer : IUnknown
148 HRESULT SetLeadPin([in] int iPin);
149 HRESULT GetLeadPin([out] int * piPin);
150 HRESULT GetInputPinCount([out] int * piPinCount);
151 HRESULT IsUsingClock([out] int * pbValue);
152 HRESULT SetUsingClock([in] int bValue);
153 HRESULT GetClockPeriod([out] int * pbValue);
154 HRESULT SetClockPeriod([in] int bValue);
157 #define iPALETTE_COLORS 256
158 #define iMASK_COLORS 3
160 cpp_quote("#define iPALETTE_COLORS 256")
161 cpp_quote("#define iEGA_COLORS 16")
162 cpp_quote("#define iMASK_COLORS 3")
163 cpp_quote("#define iTRUECOLOR 16")
164 cpp_quote("#define iRED 0")
165 cpp_quote("#define iGREEN 1")
166 cpp_quote("#define iBLUE 2")
167 cpp_quote("#define iPALETTE 8")
168 cpp_quote("#define iMAXBITS 8")
170 typedef struct tag_TRUECOLORINFO
172 DWORD dwBitMasks[iMASK_COLORS];
173 RGBQUAD bmiColors[iPALETTE_COLORS];
174 } TRUECOLORINFO;
176 typedef struct tagVIDEOINFOHEADER
178 RECT rcSource;
179 RECT rcTarget;
180 DWORD dwBitRate;
181 DWORD dwBitErrorRate;
182 REFERENCE_TIME AvgTimePerFrame;
184 BITMAPINFOHEADER bmiHeader;
185 } VIDEOINFOHEADER;
187 typedef struct tagVIDEOINFO
189 RECT rcSource;
190 RECT rcTarget;
191 DWORD dwBitRate;
192 DWORD dwBitErrorRate;
193 REFERENCE_TIME AvgTimePerFrame;
195 BITMAPINFOHEADER bmiHeader;
197 union
199 RGBQUAD bmiColors[iPALETTE_COLORS];
200 DWORD dwBitMasks[iMASK_COLORS];
201 TRUECOLORINFO TrueColorInfo;
203 } VIDEOINFO;
205 typedef struct tagMPEG1VIDEOINFO
207 VIDEOINFOHEADER hdr;
208 DWORD dwStartTimeCode;
209 DWORD cbSequenceHeader;
210 BYTE bSequenceHeader[1];
211 } MPEG1VIDEOINFO;
213 cpp_quote("#define MAX_SIZE_MPEG1_SEQUENCE_INFO 140")
214 cpp_quote("#define MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader)")
216 typedef struct tagAnalogVideoInfo
218 RECT rcSource;
219 RECT rcTarget;
220 DWORD dwActiveWidth;
221 DWORD dwActiveHeight;
222 REFERENCE_TIME AvgTimePerFrame;
223 } ANALOGVIDEOINFO;
225 typedef enum
227 AM_PROPERTY_FRAMESTEP_STEP = 0x01,
228 AM_PROPERTY_FRAMESTEP_CANCEL = 0x02,
229 AM_PROPERTY_FRAMESTEP_CANSTEP = 0x03,
230 AM_PROPERTY_FRAMESTEP_CANSTEPMULTIPLE = 0x04
231 } AM_PROPERTY_FRAMESTEP;
233 typedef struct _AM_FRAMESTEP_STEP
235 DWORD dwFramesToStep;
236 } AM_FRAMESTEP_STEP;