1 | /*
|
---|
2 | * Copyright 2004 Christian Costa
|
---|
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 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "unknwn.idl";
|
---|
29 | import "mmstream.idl";
|
---|
30 |
|
---|
31 | cpp_quote("#ifndef __WINE_DDRAW_H")
|
---|
32 | typedef void * LPDDSURFACEDESC;
|
---|
33 | typedef struct tDDSURFACEDESC DDSURFACEDESC;
|
---|
34 | interface IDirectDraw;
|
---|
35 | interface IDirectDrawSurface;
|
---|
36 | interface IDirectDrawPalette;
|
---|
37 | cpp_quote("#endif")
|
---|
38 | cpp_quote("#include <ddraw.h>")
|
---|
39 |
|
---|
40 | enum {
|
---|
41 | DDSFF_PROGRESSIVERENDER = 0x00000001
|
---|
42 | };
|
---|
43 |
|
---|
44 | interface IDirectDrawMediaStream;
|
---|
45 | interface IDirectDrawStreamSample;
|
---|
46 |
|
---|
47 | [
|
---|
48 | object,
|
---|
49 | local,
|
---|
50 | uuid(F4104FCE-9A70-11d0-8FDE-00C04FD9189D),
|
---|
51 | pointer_default(unique)
|
---|
52 | ]
|
---|
53 | interface IDirectDrawMediaStream : IMediaStream
|
---|
54 | {
|
---|
55 | HRESULT GetFormat(
|
---|
56 | [out] DDSURFACEDESC *pDDSDCurrent,
|
---|
57 | [out] IDirectDrawPalette **ppDirectDrawPalette,
|
---|
58 | [out] DDSURFACEDESC *pDDSDDesired,
|
---|
59 | [out] DWORD *pdwFlags);
|
---|
60 |
|
---|
61 | HRESULT SetFormat(
|
---|
62 | [in] const DDSURFACEDESC *pDDSurfaceDesc,
|
---|
63 | [in] IDirectDrawPalette *pDirectDrawPalette);
|
---|
64 |
|
---|
65 | HRESULT GetDirectDraw(
|
---|
66 | [out] IDirectDraw **ppDirectDraw);
|
---|
67 |
|
---|
68 | HRESULT SetDirectDraw(
|
---|
69 | [in] IDirectDraw *pDirectDraw);
|
---|
70 |
|
---|
71 | HRESULT CreateSample(
|
---|
72 | [in] IDirectDrawSurface *pSurface,
|
---|
73 | [in] const RECT *pRect,
|
---|
74 | [in] DWORD dwFlags,
|
---|
75 | [out] IDirectDrawStreamSample **ppSample);
|
---|
76 |
|
---|
77 | HRESULT GetTimePerFrame(
|
---|
78 | [out] STREAM_TIME *pFrameTime);
|
---|
79 | }
|
---|
80 |
|
---|
81 |
|
---|
82 | [
|
---|
83 | object,
|
---|
84 | local,
|
---|
85 | uuid(F4104FCF-9A70-11d0-8FDE-00C04FD9189D),
|
---|
86 | pointer_default(unique)
|
---|
87 | ]
|
---|
88 | interface IDirectDrawStreamSample : IStreamSample
|
---|
89 | {
|
---|
90 | HRESULT GetSurface(
|
---|
91 | [out] IDirectDrawSurface ** ppDirectDrawSurface,
|
---|
92 | [out] RECT * pRect);
|
---|
93 |
|
---|
94 | HRESULT SetRect(
|
---|
95 | [in] const RECT * pRect);
|
---|
96 |
|
---|
97 | }
|
---|