ReactOS 0.4.16-dev-91-g764881a
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#include <win32k.h>
12
13// #define NDEBUG
14#include <debug.h>
15
16/************************************************************************/
17/* NtGdiDdBeginMoCompFrame */
18/************************************************************************/
22 PDD_BEGINMOCOMPFRAMEDATA puBeginFrameData)
23{
25
26 if (pfnDdBeginMoCompFrame == NULL)
27 {
28 DPRINT1("Warning: no pfnDdBeginMoCompFrame\n");
30 }
31
32 DPRINT("Calling dxg.sys pfnDdBeginMoCompFrame\n");
33 return pfnDdBeginMoCompFrame(hMoComp,puBeginFrameData);
34}
35
36/************************************************************************/
37/* NtGdiDdCreateMoComp */
38/************************************************************************/
41NtGdiDdCreateMoComp(HANDLE hDirectDraw, PDD_CREATEMOCOMPDATA puCreateMoCompData)
42{
44
45 if (pfnDdCreateMoComp == NULL)
46 {
47 DPRINT1("Warning: no pfnDdCreateMoComp\n");
49 }
50
51 DPRINT("Calling dxg.sys pfnDdCreateMoComp\n");
52 return pfnDdCreateMoComp(hDirectDraw, puCreateMoCompData);
53}
54
55/************************************************************************/
56/* NtGdiDdDestroyMoComp */
57/************************************************************************/
61 PDD_DESTROYMOCOMPDATA puBeginFrameData)
62{
63 PGD_DXDDDESTROYMOCOMP pfnDdDestroyMoComp =
65
66 if (pfnDdDestroyMoComp == NULL)
67 {
68 DPRINT1("Warning: no pfnDdDestroyMoComp\n");
70 }
71
72 DPRINT("Calling dxg.sys pfnDdDestroyMoComp\n");
73 return pfnDdDestroyMoComp(hMoComp, puBeginFrameData);
74}
75
76/************************************************************************/
77/* NtGdiDdEndMoCompFrame */
78/************************************************************************/
82 PDD_ENDMOCOMPFRAMEDATA puEndFrameData)
83{
85
86 if (pfnDdEndMoCompFrame == NULL)
87 {
88 DPRINT1("Warning: no pfnDdEndMoCompFrame\n");
90 }
91
92 DPRINT("Calling dxg.sys pfnDdEndMoCompFrame\n");
93 return pfnDdEndMoCompFrame(hMoComp, puEndFrameData);
94}
95
96/************************************************************************/
97/* NtGdiDdGetInternalMoCompInfo */
98/************************************************************************/
102 PDD_GETINTERNALMOCOMPDATA puGetInternalData)
103{
105
106 if (pfnDdGetInternalMoCompInfo == NULL)
107 {
108 DPRINT1("Warning: no pfnDdGetInternalMoCompInfo\n");
110 }
111
112 DPRINT("Calling dxg.sys pfnDdGetInternalMoCompInfo\n");
113 return pfnDdGetInternalMoCompInfo(hDirectDraw, puGetInternalData);
114}
115
116/************************************************************************/
117/* NtGdiDdGetMoCompBuffInfo */
118/************************************************************************/
119DWORD
122 PDD_GETMOCOMPCOMPBUFFDATA puGetBuffData)
123{
125
126 if (pfnDdGetMoCompBuffInfo == NULL)
127 {
128 DPRINT1("Warning: no pfnDdGetMoCompBuffInfo\n");
130 }
131
132 DPRINT("Calling dxg.sys pfnDdGetMoCompBuffInfo\n");
133 return pfnDdGetMoCompBuffInfo(hDirectDraw, puGetBuffData);
134}
135
136/************************************************************************/
137/* NtGdiDdGetMoCompFormats */
138/************************************************************************/
139DWORD
142 PDD_GETMOCOMPFORMATSDATA puGetMoCompFormatsData)
143{
145
146 if (pfnDdGetMoCompFormats == NULL)
147 {
148 DPRINT1("Warning: no pfnDdGetMoCompFormats\n");
150 }
151
152 DPRINT("Calling dxg.sys pfnDdGetMoCompFormats\n");
153 return pfnDdGetMoCompFormats(hDirectDraw, puGetMoCompFormatsData);
154}
155
156/************************************************************************/
157/* NtGdiDdGetMoCompGuids */
158/************************************************************************/
159DWORD
162 PDD_GETMOCOMPGUIDSDATA puGetMoCompGuidsData)
163{
165
166 if (pfnDdGetMoCompGuids == NULL)
167 {
168 DPRINT1("Warning: no pfnDdGetMoCompGuids\n");
170 }
171
172 DPRINT("Calling dxg.sys pfnDdGetMoCompGuids\n");
173 return pfnDdGetMoCompGuids(hDirectDraw, puGetMoCompGuidsData);
174}
175
176/************************************************************************/
177/* NtGdiDdQueryMoCompStatus */
178/************************************************************************/
179DWORD
182 PDD_QUERYMOCOMPSTATUSDATA puQueryMoCompStatusData)
183{
185
186 if (pfnDdQueryMoCompStatus == NULL)
187 {
188 DPRINT1("Warning: no pfnDdQueryMoCompStatus\n");
190 }
191
192 DPRINT("Calling dxg.sys pfnDdQueryMoCompStatus\n");
193 return pfnDdQueryMoCompStatus(hMoComp, puQueryMoCompStatusData);
194}
195
196/************************************************************************/
197/* NtGdiDdRenderMoComp */
198/************************************************************************/
199DWORD
202 PDD_RENDERMOCOMPDATA puRenderMoCompData)
203{
205
206 if (pfnDdRenderMoComp == NULL)
207 {
208 DPRINT1("Warning: no pfnDdRenderMoComp\n");
210 }
211
212 DPRINT("Calling dxg.sys pfnDdRenderMoComp\n");
213 return pfnDdRenderMoComp(hMoComp, puRenderMoCompData);
214}
#define DPRINT1
Definition: precomp.h:8
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
#define NULL
Definition: types.h:112
#define APIENTRY
Definition: api.h:79
#define DXG_INDEX_DxDdBeginMoCompFrame
Definition: dxg.h:20
#define DXG_INDEX_DxDdGetMoCompGuids
Definition: dxg.h:47
#define DXG_INDEX_DxDdRenderMoComp
Definition: dxg.h:57
#define DXG_INDEX_DxDdGetMoCompBuffInfo
Definition: dxg.h:46
#define DXG_INDEX_DxDdCreateMoComp
Definition: dxg.h:29
#define DXG_INDEX_DxDdGetMoCompFormats
Definition: dxg.h:48
#define DXG_INDEX_DxDdEndMoCompFrame
Definition: dxg.h:36
#define DXG_INDEX_DxDdQueryMoCompStatus
Definition: dxg.h:54
#define DXG_INDEX_DxDdDestroyMoComp
Definition: dxg.h:33
#define DXG_INDEX_DxDdGetInternalMoCompInfo
Definition: dxg.h:45
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD(APIENTRY * PGD_DXDDQUERYMOCOMPSTATUS)(HANDLE, PDD_QUERYMOCOMPSTATUSDATA)
Definition: intddraw.h:76
DWORD(APIENTRY * PGD_DDBEGINMOCOMPFRAME)(HANDLE, PDD_BEGINMOCOMPFRAMEDATA)
Definition: intddraw.h:68
DWORD(APIENTRY * PGD_DXDDDESTROYMOCOMP)(HANDLE, PDD_DESTROYMOCOMPDATA)
Definition: intddraw.h:70
DWORD(APIENTRY * PGD_DXDDGETMOCOMPFORMATS)(HANDLE, PDD_GETMOCOMPFORMATSDATA)
Definition: intddraw.h:75
DWORD(APIENTRY * PGD_DXDDRENDERMOCOMP)(HANDLE, PDD_RENDERMOCOMPDATA)
Definition: intddraw.h:77
DWORD(APIENTRY * PGD_DXDDGETMOCOMPGUIDS)(HANDLE, PDD_GETMOCOMPGUIDSDATA)
Definition: intddraw.h:74
DWORD(APIENTRY * PGD_DXDDGETMOCOMPBUFFINFO)(HANDLE, PDD_GETMOCOMPCOMPBUFFDATA)
Definition: intddraw.h:73
DWORD(APIENTRY * PGD_DXDDGETINTERNALMOCOMPINFO)(HANDLE, PDD_GETINTERNALMOCOMPDATA)
Definition: intddraw.h:72
DWORD(APIENTRY * PGD_DXDDENDMOCOMPFRAME)(HANDLE, PDD_ENDMOCOMPFRAMEDATA)
Definition: intddraw.h:71
HANDLE(APIENTRY * PGD_DXDDCREATEMOCOMP)(HANDLE, PDD_CREATEMOCOMPDATA)
Definition: intddraw.h:69
DWORD APIENTRY NtGdiDdQueryMoCompStatus(HANDLE hMoComp, PDD_QUERYMOCOMPSTATUSDATA puQueryMoCompStatusData)
Definition: mocomp.c:181
DWORD APIENTRY NtGdiDdGetMoCompBuffInfo(HANDLE hDirectDraw, PDD_GETMOCOMPCOMPBUFFDATA puGetBuffData)
Definition: mocomp.c:121
DWORD APIENTRY NtGdiDdDestroyMoComp(HANDLE hMoComp, PDD_DESTROYMOCOMPDATA puBeginFrameData)
Definition: mocomp.c:60
HANDLE APIENTRY NtGdiDdCreateMoComp(HANDLE hDirectDraw, PDD_CREATEMOCOMPDATA puCreateMoCompData)
Definition: mocomp.c:41
DWORD APIENTRY NtGdiDdRenderMoComp(HANDLE hMoComp, PDD_RENDERMOCOMPDATA puRenderMoCompData)
Definition: mocomp.c:201
DWORD APIENTRY NtGdiDdBeginMoCompFrame(HANDLE hMoComp, PDD_BEGINMOCOMPFRAMEDATA puBeginFrameData)
Definition: mocomp.c:21
DWORD APIENTRY NtGdiDdEndMoCompFrame(HANDLE hMoComp, PDD_ENDMOCOMPFRAMEDATA puEndFrameData)
Definition: mocomp.c:81
DWORD APIENTRY NtGdiDdGetMoCompFormats(HANDLE hDirectDraw, PDD_GETMOCOMPFORMATSDATA puGetMoCompFormatsData)
Definition: mocomp.c:141
DWORD APIENTRY NtGdiDdGetMoCompGuids(HANDLE hDirectDraw, PDD_GETMOCOMPGUIDSDATA puGetMoCompGuidsData)
Definition: mocomp.c:161
DWORD APIENTRY NtGdiDdGetInternalMoCompInfo(HANDLE hDirectDraw, PDD_GETINTERNALMOCOMPDATA puGetInternalData)
Definition: mocomp.c:101
#define DPRINT
Definition: sndvol32.h:73
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:24