~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/include/amvideo.idl

Version: ~ [ wine-1.0-rc1 ] ~ [ wine-0.9.61 ] ~ [ wine-0.9.60 ] ~ [ wine-0.9.59 ] ~ [ wine-0.9.58 ] ~ [ wine-0.9.57 ] ~ [ wine-0.9.56 ] ~ [ wine-0.9.55 ] ~ [ wine-0.9.54 ] ~ [ wine-0.9.53 ] ~ [ wine-0.9.52 ] ~ [ wine-0.9.51 ] ~ [ wine-0.9.50 ] ~ [ wine-0.9.49 ] ~ [ wine-0.9.48 ] ~ [ wine-0.9.47 ] ~ [ wine-0.9.46 ] ~ [ wine-0.9.45 ] ~ [ wine-0.9.44 ] ~ [ wine-0.9.43 ] ~ [ wine-0.9.42 ] ~ [ wine-0.9.41 ] ~ [ wine-0.9.40 ] ~ [ wine-0.9.39 ] ~ [ wine-0.9.38 ] ~ [ wine-0.9.37 ] ~ [ wine-0.9.36 ] ~ [ wine-0.9.35 ] ~ [ wine-0.9.34 ] ~ [ wine-0.9.33 ] ~ [ wine-0.9.32 ] ~ [ wine-0.9.31 ] ~ [ wine-0.9.30 ] ~ [ wine-0.9.29 ] ~ [ wine-0.9.28 ] ~ [ wine-0.9.27 ] ~ [ wine-0.9.26 ] ~ [ wine-0.9.25 ] ~ [ wine-0.9.24 ] ~ [ wine-0.9.23 ] ~ [ wine-0.9.22 ] ~ [ wine-0.9.21 ] ~ [ wine-0.9.20 ] ~ [ wine-0.9.19 ] ~ [ wine-0.9.18 ] ~ [ wine-0.9.17 ] ~ [ wine-0.9.16 ] ~ [ wine-0.9.15 ] ~ [ wine-0.9.14 ] ~ [ wine-0.9.13 ] ~ [ wine-0.9.12 ] ~ [ wine-0.9.11 ] ~ [ wine-0.9.10 ] ~ [ wine-0.9.9 ] ~ [ wine-0.9.8 ] ~ [ wine-0.9.7 ] ~ [ wine-0.9.6 ] ~ [ wine-0.9.5 ] ~ [ wine-0.9.4 ] ~ [ wine-0.9.3 ] ~ [ wine-0.9.2 ] ~ [ wine-0.9.1 ] ~ [ wine-0.9 ] ~ [ wine20050930 ] ~ [ wine20050830 ] ~ [ wine20050725 ] ~ [ wine20050628 ] ~ [ wine20050524 ] ~ [ wine20050419 ] ~ [ wine20050310 ] ~ [ wine20050211 ] ~ [ wine20050111 ] ~ [ wine20041201 ] ~ [ wine20041019 ] ~ [ wine20040914 ] ~ [ wine20040813 ] ~ [ wine20040716 ] ~ [ wine20040615 ] ~ [ wine20040505 ] ~ [ wine20040408 ] ~ [ wine20040309 ] ~ [ wine20040213 ] ~ [ wine20040121 ] ~ [ wine20031212 ] ~ [ wine20031118 ] ~ [ wine20031016 ] ~ [ wine20030911 ] ~ [ wine20030813 ] ~ [ wine20030709 ] ~ [ wine20030618 ] ~ [ wine20030508 ] ~ [ wine20030408 ] ~ [ wine20030318 ] ~ [ wine20030219 ] ~ [ wine20030115 ] ~ [ wine20021219 ] ~ [ wine20021125 ] ~ [ wine20021031 ] ~ [ wine20021007 ] ~ [ wine20020904 ] ~ [ wine20020804 ] ~ [ wine20020710 ] ~ [ wine20020605 ] ~ [ wine20020509 ] ~ [ wine20020411 ] ~ [ wine20020310 ] ~ [ wine20020228 ] ~ [ wine20011226 ] ~ [ wine20011108 ] ~ [ wine20011004 ] ~ [ wine20010824 ] ~ [ wine20010731 ] ~ [ wine20010629 ] ~ [ wine20010510 ] ~ [ wine20010418 ] ~ [ wine20010326 ] ~ [ wine20010305 ] ~ [ wine20010216 ] ~ [ wine20010112 ] ~ [ wine20001222 ] ~ [ wine20001202 ] ~ [ wine20001026 ] ~ [ wine20001002 ] ~ [ wine20000909 ] ~ [ wine20000821 ] ~ [ wine20000801 ] ~ [ wine20000716 ] ~ [ wine20000326 ] ~ [ wine20000227 ] ~ [ wine20000130 ] ~ [ wine20000109 ] ~

  1 /*
  2  * Copyright (C) 2003 Robert Shearman
  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 "objidl.idl";
 20 
 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
 29 {
 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")
 43 
 44 cpp_quote("#include <ddraw.h>")
 45 
 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")
 57 
 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)")
 61 
 62 [
 63     object,
 64     pointer_default(unique),
 65     local
 66 ]
 67 interface IDirectDrawVideo : IUnknown
 68 {
 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);
 85 }
 86 
 87 [
 88     object,
 89     pointer_default(unique),
 90     local
 91 ]
 92 interface IQualProp : IUnknown
 93 {
 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);
100 }
101 
102 [
103     object,
104     pointer_default(unique)
105 ]
106 interface IFullScreenVideo : IUnknown
107 {
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();
125 }
126 
127 [
128     object,
129     pointer_default(unique),
130     local
131 ]
132 interface IFullScreenVideoEx : IFullScreenVideo
133 {
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);
139 }
140 
141 [
142     object,
143     pointer_default(unique),
144     local
145 ]
146 interface IBaseVideoMixer : IUnknown
147 {
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);
155 }
156 
157 #define iPALETTE_COLORS 256
158 #define iMASK_COLORS 3
159 
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")
169 
170 typedef struct tag_TRUECOLORINFO
171 {
172     DWORD dwBitMasks[iMASK_COLORS];
173     RGBQUAD bmiColors[iPALETTE_COLORS];
174 } TRUECOLORINFO;
175 
176 typedef struct tagVIDEOINFOHEADER
177 {
178     RECT rcSource;
179     RECT rcTarget;
180     DWORD dwBitRate;
181     DWORD dwBitErrorRate;
182     REFERENCE_TIME AvgTimePerFrame;
183 
184     BITMAPINFOHEADER bmiHeader;
185 } VIDEOINFOHEADER;
186 
187 typedef struct tagVIDEOINFO
188 {
189     RECT rcSource;
190     RECT rcTarget;
191     DWORD dwBitRate;
192     DWORD dwBitErrorRate;
193     REFERENCE_TIME AvgTimePerFrame;
194 
195     BITMAPINFOHEADER bmiHeader;
196 
197     union
198     {
199         RGBQUAD bmiColors[iPALETTE_COLORS];
200         DWORD dwBitMasks[iMASK_COLORS];
201         TRUECOLORINFO TrueColorInfo;
202     };
203 } VIDEOINFO;
204 
205 typedef struct tagMPEG1VIDEOINFO
206 {
207     VIDEOINFOHEADER hdr;
208     DWORD dwStartTimeCode;
209     DWORD cbSequenceHeader;
210     BYTE bSequenceHeader[1];
211 } MPEG1VIDEOINFO;
212 
213 cpp_quote("#define MAX_SIZE_MPEG1_SEQUENCE_INFO 140")
214 cpp_quote("#define MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader)")
215 
216 typedef struct tagAnalogVideoInfo
217 {
218     RECT rcSource;
219     RECT rcTarget;
220     DWORD dwActiveWidth;
221     DWORD dwActiveHeight;
222     REFERENCE_TIME AvgTimePerFrame;
223 } ANALOGVIDEOINFO;
224 
225 typedef enum
226 {
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;
232 
233 typedef struct _AM_FRAMESTEP_STEP
234 {
235     DWORD dwFramesToStep;
236 } AM_FRAMESTEP_STEP;

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.