ReactOS  0.4.14-dev-1115-gebeeb9d
mocomp.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS kernel
4  * PURPOSE: Native DirectDraw implementation
5  * FILE: win32ss/reactx/ntddraw/mocomp.c
6  * PROGRAMER: Magnus Olsen (magnus@greatlord.com)
7  * REVISION HISTORY:
8  * 19/1-2006 Magnus Olsen
9  */
10 
11 
12 #include <win32k.h>
13 #include <debug.h>
14 
15 /************************************************************************/
16 /* NtGdiDdBeginMoCompFrame */
17 /************************************************************************/
18 DWORD
21  PDD_BEGINMOCOMPFRAMEDATA puBeginFrameData)
22 {
24 
25  if (pfnDdBeginMoCompFrame == NULL)
26  {
27  DPRINT1("Warning: no pfnDdBeginMoCompFrame");
29  }
30 
31  DPRINT1("Calling dxg.sys DdBeginMoCompFrame");
32  return pfnDdBeginMoCompFrame(hMoComp,puBeginFrameData);
33 }
34 
35 /************************************************************************/
36 /* NtGdiDdCreateMoComp */
37 /************************************************************************/
38 HANDLE
40 NtGdiDdCreateMoComp(HANDLE hDirectDraw, PDD_CREATEMOCOMPDATA puCreateMoCompData)
41 {
43 
44  if (pfnDdCreateMoComp == NULL)
45  {
46  DPRINT1("Warning: no pfnDdCreateMoComp");
48  }
49 
50  DPRINT1("Calling dxg.sys DdCreateMoComp");
51  return pfnDdCreateMoComp(hDirectDraw, puCreateMoCompData);
52 }
53 
54 /************************************************************************/
55 /* NtGdiDdDestroyMoComp */
56 /************************************************************************/
57 DWORD
60  PDD_DESTROYMOCOMPDATA puBeginFrameData)
61 {
63 
64  if (pfnDxDdDestroyMoComp == NULL)
65  {
66  DPRINT1("Warning: no pfnDxDdDestroyMoComp");
68  }
69 
70  DPRINT1("Calling dxg.sys DxDdDestroyMoComp");
71  return pfnDxDdDestroyMoComp(hMoComp, puBeginFrameData);
72 }
73 
74 /************************************************************************/
75 /* NtGdiDdEndMoCompFrame */
76 /************************************************************************/
77 DWORD
80  PDD_ENDMOCOMPFRAMEDATA puEndFrameData)
81 {
83 
84  if (pfnDdEndMoCompFrame == NULL)
85  {
86  DPRINT1("Warning: no pfnDdEndMoCompFrame");
88  }
89 
90  DPRINT1("Calling dxg.sys pfnDdEndMoCompFrame");
91  return pfnDdEndMoCompFrame(hMoComp, puEndFrameData);
92 }
93 
94 /************************************************************************/
95 /* NtGdiDdGetInternalMoCompInfo */
96 /************************************************************************/
97 DWORD
100  PDD_GETINTERNALMOCOMPDATA puGetInternalData)
101 {
103 
104  if (pfnDdGetInternalMoCompInfo == NULL)
105  {
106  DPRINT1("Warning: no pfnDdGetInternalMoCompInfo");
108  }
109 
110  DPRINT1("Calling dxg.sys pfnDdGetInternalMoCompInfo");
111  return pfnDdGetInternalMoCompInfo(hDirectDraw, puGetInternalData);
112 }
113 
114 
115 /************************************************************************/
116 /* NtGdiDdGetMoCompBuffInfo */
117 /************************************************************************/
118 DWORD
119 APIENTRY
121  PDD_GETMOCOMPCOMPBUFFDATA puGetBuffData)
122 {
124 
125  if (pfnDdGetMoCompBuffInfo == NULL)
126  {
127  DPRINT1("Warning: no pfnDdGetMoCompBuffInfo");
129  }
130 
131  DPRINT1("Calling dxg.sys pfnDdGetMoCompBuffInfo");
132  return pfnDdGetMoCompBuffInfo(hDirectDraw, puGetBuffData);
133 }
134 
135 /************************************************************************/
136 /* NtGdiDdGetMoCompFormats */
137 /************************************************************************/
138 DWORD
139 APIENTRY
141  PDD_GETMOCOMPFORMATSDATA puGetMoCompFormatsData)
142 {
144 
145  if (pfnDdGetMoCompFormats == NULL)
146  {
147  DPRINT1("Warning: no pfnDdGetMoCompFormats");
149  }
150 
151  DPRINT1("Calling dxg.sys pfnDdGetMoCompFormats");
152  return pfnDdGetMoCompFormats(hDirectDraw, puGetMoCompFormatsData);
153 }
154 
155 
156 /************************************************************************/
157 /* NtGdiDdGetMoCompGuids */
158 /************************************************************************/
159 DWORD
160 APIENTRY
162  PDD_GETMOCOMPGUIDSDATA puGetMoCompGuidsData)
163 {
165 
166  if (pfnDdGetMoCompGuids == NULL)
167  {
168  DPRINT1("Warning: no pfnDdGetMoCompGuids");
170  }
171 
172  DPRINT1("Calling dxg.sys pfnDdGetMoCompGuids");
173  return pfnDdGetMoCompGuids(hDirectDraw, puGetMoCompGuidsData);
174 }
175 
176 
177 
178 /************************************************************************/
179 /* NtGdiDdQueryMoCompStatus */
180 /************************************************************************/
181 DWORD
182 APIENTRY
184  PDD_QUERYMOCOMPSTATUSDATA puQueryMoCompStatusData)
185 {
187 
188  if (pfnDdQueryMoCompStatus == NULL)
189  {
190  DPRINT1("Warning: no pfnDdQueryMoCompStatus");
192  }
193 
194  DPRINT1("Calling dxg.sys pfnDdQueryMoCompStatus");
195  return pfnDdQueryMoCompStatus(hMoComp, puQueryMoCompStatusData);
196 }
197 
198 
199 /************************************************************************/
200 /* NtGdiDdRenderMoComp */
201 /************************************************************************/
202 DWORD
203 APIENTRY
205  PDD_RENDERMOCOMPDATA puRenderMoCompData)
206 {
208 
209  if (pfnDdRenderMoComp == NULL)
210  {
211  DPRINT1("Warning: no pfnDdRenderMoComp");
213  }
214 
215  DPRINT1("Calling dxg.sys pfnDdRenderMoComp");
216  return pfnDdRenderMoComp(hMoComp, puRenderMoCompData);
217 }
218 
DWORD(APIENTRY * PGD_DDBEGINMOCOMPFRAME)(HANDLE, PDD_BEGINMOCOMPFRAMEDATA)
Definition: intddraw.h:69
DWORD(APIENTRY * PGD_DXDDGETMOCOMPFORMATS)(HANDLE, PDD_GETMOCOMPFORMATSDATA)
Definition: intddraw.h:76
DWORD(APIENTRY * PGD_DXDDQUERYMOCOMPSTATUS)(HANDLE, PDD_QUERYMOCOMPSTATUSDATA)
Definition: intddraw.h:77
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
#define DXG_INDEX_DxDdBeginMoCompFrame
Definition: dxg.h:20
DWORD APIENTRY NtGdiDdDestroyMoComp(HANDLE hMoComp, PDD_DESTROYMOCOMPDATA puBeginFrameData)
Definition: mocomp.c:59
#define DXG_INDEX_DxDdGetMoCompFormats
Definition: dxg.h:48
DWORD APIENTRY NtGdiDdGetMoCompGuids(HANDLE hDirectDraw, PDD_GETMOCOMPGUIDSDATA puGetMoCompGuidsData)
Definition: mocomp.c:161
DWORD(APIENTRY * PGD_DXDDRENDERMOCOMP)(HANDLE, PDD_RENDERMOCOMPDATA)
Definition: intddraw.h:78
DWORD(APIENTRY * PGD_DXDDGETINTERNALMOCOMPINFO)(HANDLE, PDD_GETINTERNALMOCOMPDATA)
Definition: intddraw.h:73
DWORD APIENTRY NtGdiDdGetMoCompFormats(HANDLE hDirectDraw, PDD_GETMOCOMPFORMATSDATA puGetMoCompFormatsData)
Definition: mocomp.c:140
#define DXG_INDEX_DxDdGetMoCompBuffInfo
Definition: dxg.h:46
smooth NULL
Definition: ftsmooth.c:416
#define DXG_INDEX_DxDdRenderMoComp
Definition: dxg.h:57
DWORD APIENTRY NtGdiDdRenderMoComp(HANDLE hMoComp, PDD_RENDERMOCOMPDATA puRenderMoCompData)
Definition: mocomp.c:204
HANDLE APIENTRY NtGdiDdCreateMoComp(HANDLE hDirectDraw, PDD_CREATEMOCOMPDATA puCreateMoCompData)
Definition: mocomp.c:40
#define DXG_INDEX_DxDdCreateMoComp
Definition: dxg.h:29
DWORD APIENTRY NtGdiDdQueryMoCompStatus(HANDLE hMoComp, PDD_QUERYMOCOMPSTATUSDATA puQueryMoCompStatusData)
Definition: mocomp.c:183
#define DXG_INDEX_DxDdGetInternalMoCompInfo
Definition: dxg.h:45
DWORD APIENTRY NtGdiDdGetMoCompBuffInfo(HANDLE hDirectDraw, PDD_GETMOCOMPCOMPBUFFDATA puGetBuffData)
Definition: mocomp.c:120
DWORD(APIENTRY * PGD_DXDDGETMOCOMPBUFFINFO)(HANDLE, PDD_GETMOCOMPCOMPBUFFDATA)
Definition: intddraw.h:74
unsigned long DWORD
Definition: ntddk_ex.h:95
#define DXG_INDEX_DxDdEndMoCompFrame
Definition: dxg.h:36
#define DXG_INDEX_DxDdGetMoCompGuids
Definition: dxg.h:47
DWORD(APIENTRY * PGD_DXDDGETMOCOMPGUIDS)(HANDLE, PDD_GETMOCOMPGUIDSDATA)
Definition: intddraw.h:75
DWORD(APIENTRY * PGD_DXDDDESTROYMOCOMP)(HANDLE, PDD_DESTROYMOCOMPDATA)
Definition: intddraw.h:71
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define DPRINT1
Definition: precomp.h:8
#define DXG_INDEX_DxDdDestroyMoComp
Definition: dxg.h:33
DWORD APIENTRY NtGdiDdBeginMoCompFrame(HANDLE hMoComp, PDD_BEGINMOCOMPFRAMEDATA puBeginFrameData)
Definition: mocomp.c:20
DWORD APIENTRY NtGdiDdEndMoCompFrame(HANDLE hMoComp, PDD_ENDMOCOMPFRAMEDATA puEndFrameData)
Definition: mocomp.c:79
DWORD(APIENTRY * PGD_DXDDENDMOCOMPFRAME)(HANDLE, PDD_ENDMOCOMPFRAMEDATA)
Definition: intddraw.h:72
#define APIENTRY
Definition: api.h:79
DWORD APIENTRY NtGdiDdGetInternalMoCompInfo(HANDLE hDirectDraw, PDD_GETINTERNALMOCOMPDATA puGetInternalData)
Definition: mocomp.c:99
HANDLE(APIENTRY * PGD_DXDDCREATEMOCOMP)(HANDLE, PDD_CREATEMOCOMPDATA)
Definition: intddraw.h:70
#define DXG_INDEX_DxDdQueryMoCompStatus
Definition: dxg.h:54