ReactOS 0.4.15-dev-7889-g76290a6
dvp.c File Reference
#include <win32k.h>
#include <debug.h>
Include dependency graph for dvp.c:

Go to the source code of this file.

Functions

DWORD APIENTRY NtGdiDvpCanCreateVideoPort (HANDLE hDirectDraw, PDD_CANCREATEVPORTDATA puCanCreateVPortData)
 
DWORD APIENTRY NtGdiDvpColorControl (HANDLE hVideoPort, PDD_VPORTCOLORDATA puVPortColorData)
 
HANDLE APIENTRY NtGdiDvpCreateVideoPort (HANDLE hDirectDraw, PDD_CREATEVPORTDATA puCreateVPortData)
 
DWORD APIENTRY NtGdiDvpDestroyVideoPort (HANDLE hVideoPort, PDD_DESTROYVPORTDATA puDestroyVPortData)
 
DWORD APIENTRY NtGdiDvpFlipVideoPort (HANDLE hVideoPort, HANDLE hDDSurfaceCurrent, HANDLE hDDSurfaceTarget, PDD_FLIPVPORTDATA puFlipVPortData)
 
DWORD APIENTRY NtGdiDvpGetVideoPortBandwidth (HANDLE hVideoPort, PDD_GETVPORTBANDWIDTHDATA puGetVPortBandwidthData)
 
DWORD APIENTRY NtGdiDvpGetVideoPortFlipStatus (HANDLE hDirectDraw, PDD_GETVPORTFLIPSTATUSDATA puGetVPortFlipStatusData)
 
DWORD APIENTRY NtGdiDvpGetVideoPortInputFormats (HANDLE hVideoPort, PDD_GETVPORTINPUTFORMATDATA puGetVPortInputFormatData)
 
DWORD APIENTRY NtGdiDvpGetVideoPortLine (HANDLE hVideoPort, PDD_GETVPORTLINEDATA puGetVPortLineData)
 
DWORD APIENTRY NtGdiDvpGetVideoPortOutputFormats (HANDLE hVideoPort, PDD_GETVPORTOUTPUTFORMATDATA puGetVPortOutputFormatData)
 
DWORD APIENTRY NtGdiDvpGetVideoPortConnectInfo (HANDLE hDirectDraw, PDD_GETVPORTCONNECTDATA puGetVPortConnectData)
 
DWORD APIENTRY NtGdiDvpGetVideoSignalStatus (HANDLE hVideoPort, PDD_GETVPORTSIGNALDATA puGetVPortSignalData)
 
DWORD APIENTRY NtGdiDvpUpdateVideoPort (HANDLE hVideoPort, HANDLE *phSurfaceVideo, HANDLE *phSurfaceVbi, PDD_UPDATEVPORTDATA puUpdateVPortData)
 
DWORD APIENTRY NtGdiDvpWaitForVideoPortSync (HANDLE hVideoPort, PDD_WAITFORVPORTSYNCDATA puWaitForVPortSyncData)
 
DWORD APIENTRY NtGdiDvpAcquireNotification (HANDLE hVideoPort, HANDLE *hEvent, LPDDVIDEOPORTNOTIFY pNotify)
 
DWORD APIENTRY NtGdiDvpReleaseNotification (HANDLE hVideoPort, HANDLE hEvent)
 
DWORD APIENTRY NtGdiDvpGetVideoPortField (HANDLE hVideoPort, PDD_GETVPORTFIELDDATA puGetVPortFieldData)
 

Function Documentation

◆ NtGdiDvpAcquireNotification()

DWORD APIENTRY NtGdiDvpAcquireNotification ( HANDLE  hVideoPort,
HANDLE hEvent,
LPDDVIDEOPORTNOTIFY  pNotify 
)

Definition at line 307 of file dvp.c.

310{
312
313 if (pfnDvpAcquireNotification == NULL)
314 {
315 DPRINT1("Warning: no pfnDvpAcquireNotification\n");
317 }
318
319 DPRINT("Calling dxg.sys pfnDvpAcquireNotification\n");
320 return pfnDvpAcquireNotification(hVideoPort, hEvent, pNotify);
321}
#define DPRINT1
Definition: precomp.h:8
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
#define NULL
Definition: types.h:112
#define DXG_INDEX_DxDvpAcquireNotification
Definition: dxg.h:85
DWORD(APIENTRY * PGD_DXDVPACQUIRENOTIFICATION)(HANDLE, HANDLE *, LPDDVIDEOPORTNOTIFY)
Definition: intddraw.h:63
static HANDLE hEvent
Definition: comm.c:54
#define DPRINT
Definition: sndvol32.h:71
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:24

◆ NtGdiDvpCanCreateVideoPort()

DWORD APIENTRY NtGdiDvpCanCreateVideoPort ( HANDLE  hDirectDraw,
PDD_CANCREATEVPORTDATA  puCanCreateVPortData 
)

Definition at line 21 of file dvp.c.

23{
25
26 if (pfnDvpCanCreateVideoPort == NULL)
27 {
28 DPRINT1("Warning: no pfnDvpCanCreateVideoPort\n");
30 }
31
32 DPRINT("Calling dxg.sys pfnDvpCanCreateVideoPort\n");
33 return pfnDvpCanCreateVideoPort(hDirectDraw, puCanCreateVPortData);
34}
#define DXG_INDEX_DxDvpCanCreateVideoPort
Definition: dxg.h:70
DWORD(APIENTRY * PGD_DVPCANCREATEVIDEOPORT)(HANDLE, PDD_CANCREATEVPORTDATA)
Definition: intddraw.h:49

◆ NtGdiDvpColorControl()

DWORD APIENTRY NtGdiDvpColorControl ( HANDLE  hVideoPort,
PDD_VPORTCOLORDATA  puVPortColorData 
)

Definition at line 41 of file dvp.c.

43{
45
46 if (pfnDvpColorControl == NULL)
47 {
48 DPRINT1("Warning: no pfnDvpColorControl\n");
50 }
51
52 DPRINT("Calling dxg.sys pfnDvpColorControl\n");
53 return pfnDvpColorControl(hVideoPort, puVPortColorData);
54}
#define DXG_INDEX_DxDvpColorControl
Definition: dxg.h:71
DWORD(APIENTRY * PGD_DVPCOLORCONTROL)(HANDLE, PDD_VPORTCOLORDATA)
Definition: intddraw.h:50

◆ NtGdiDvpCreateVideoPort()

HANDLE APIENTRY NtGdiDvpCreateVideoPort ( HANDLE  hDirectDraw,
PDD_CREATEVPORTDATA  puCreateVPortData 
)

Definition at line 61 of file dvp.c.

63{
65
66 if (pfnDvpCreateVideoPort == NULL)
67 {
68 DPRINT1("Warning: no pfnDvpCreateVideoPort\n");
70 }
71
72 DPRINT("Calling dxg.sys pfnDvpCreateVideoPort\n");
73 return pfnDvpCreateVideoPort(hDirectDraw, puCreateVPortData);
74}
#define DXG_INDEX_DxDvpCreateVideoPort
Definition: dxg.h:72
HANDLE(APIENTRY * PGD_DVPCREATEVIDEOPORT)(HANDLE, PDD_CREATEVPORTDATA)
Definition: intddraw.h:51

◆ NtGdiDvpDestroyVideoPort()

DWORD APIENTRY NtGdiDvpDestroyVideoPort ( HANDLE  hVideoPort,
PDD_DESTROYVPORTDATA  puDestroyVPortData 
)

Definition at line 81 of file dvp.c.

83{
84 PGD_DVPDESTROYVIDEOPORT pfnDvpDestroyVideoPort =
86
87 if (pfnDvpDestroyVideoPort == NULL)
88 {
89 DPRINT1("Warning: no pfnDvpDestroyVideoPort\n");
91 }
92
93 DPRINT("Calling dxg.sys pfnDvpDestroyVideoPort\n");
94 return pfnDvpDestroyVideoPort(hVideoPort, puDestroyVPortData);
95}
#define DXG_INDEX_DxDvpDestroyVideoPort
Definition: dxg.h:73
DWORD(APIENTRY * PGD_DVPDESTROYVIDEOPORT)(HANDLE, PDD_DESTROYVPORTDATA)
Definition: intddraw.h:52

◆ NtGdiDvpFlipVideoPort()

DWORD APIENTRY NtGdiDvpFlipVideoPort ( HANDLE  hVideoPort,
HANDLE  hDDSurfaceCurrent,
HANDLE  hDDSurfaceTarget,
PDD_FLIPVPORTDATA  puFlipVPortData 
)

Definition at line 102 of file dvp.c.

106{
107 PGD_DVPFLIPVIDEOPORT pfnDvpFlipVideoPort =
109
110 if (pfnDvpFlipVideoPort == NULL)
111 {
112 DPRINT1("Warning: no pfnDvpFlipVideoPort\n");
114 }
115
116 DPRINT("Calling dxg.sys pfnDvpFlipVideoPort\n");
117 return pfnDvpFlipVideoPort(hVideoPort, hDDSurfaceCurrent, hDDSurfaceTarget, puFlipVPortData);
118}
#define DXG_INDEX_DxDvpFlipVideoPort
Definition: dxg.h:74
DWORD(APIENTRY * PGD_DVPFLIPVIDEOPORT)(HANDLE, HANDLE, HANDLE, PDD_FLIPVPORTDATA)
Definition: intddraw.h:53

◆ NtGdiDvpGetVideoPortBandwidth()

DWORD APIENTRY NtGdiDvpGetVideoPortBandwidth ( HANDLE  hVideoPort,
PDD_GETVPORTBANDWIDTHDATA  puGetVPortBandwidthData 
)

Definition at line 125 of file dvp.c.

127{
129
130 if (pfnDvpGetVideoPortBandwidth == NULL)
131 {
132 DPRINT1("Warning: no pfnDvpGetVideoPortBandwidth\n");
134 }
135
136 DPRINT("Calling dxg.sys pfnDvpGetVideoPortBandwidth\n");
137 return pfnDvpGetVideoPortBandwidth(hVideoPort, puGetVPortBandwidthData);
138}
#define DXG_INDEX_DxDvpGetVideoPortBandwidth
Definition: dxg.h:75
DWORD(APIENTRY * PGD_DVPGETVIDEOPORTBANDWITH)(HANDLE, PDD_GETVPORTBANDWIDTHDATA)
Definition: intddraw.h:54

◆ NtGdiDvpGetVideoPortConnectInfo()

DWORD APIENTRY NtGdiDvpGetVideoPortConnectInfo ( HANDLE  hDirectDraw,
PDD_GETVPORTCONNECTDATA  puGetVPortConnectData 
)

Definition at line 225 of file dvp.c.

227{
229
230 if (pfnDvpGetVideoPortConnectInfo == NULL)
231 {
232 DPRINT1("Warning: no pfnDvpGetVideoPortConnectInfo\n");
234 }
235
236 DPRINT("Calling dxg.sys pfnDvpGetVideoPortConnectInfo\n");
237 return pfnDvpGetVideoPortConnectInfo(hDirectDraw, puGetVPortConnectData);
238}
#define DXG_INDEX_DxDvpGetVideoPortConnectInfo
Definition: dxg.h:81
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTCONNECTINFO)(HANDLE, PDD_GETVPORTCONNECTDATA)
Definition: intddraw.h:59

◆ NtGdiDvpGetVideoPortField()

DWORD APIENTRY NtGdiDvpGetVideoPortField ( HANDLE  hVideoPort,
PDD_GETVPORTFIELDDATA  puGetVPortFieldData 
)

Definition at line 348 of file dvp.c.

350{
352
353 if (pfnDvpGetVideoPortField == NULL)
354 {
355 DPRINT1("Warning: no pfnDvpGetVideoPortField\n");
357 }
358
359 DPRINT("Calling dxg.sys pfnDvpGetVideoPortField\n");
360 return pfnDvpGetVideoPortField(hVideoPort, puGetVPortFieldData);
361}
#define DXG_INDEX_DxDvpGetVideoPortField
Definition: dxg.h:76
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTFIELD)(HANDLE, PDD_GETVPORTFIELDDATA)
Definition: intddraw.h:65

◆ NtGdiDvpGetVideoPortFlipStatus()

DWORD APIENTRY NtGdiDvpGetVideoPortFlipStatus ( HANDLE  hDirectDraw,
PDD_GETVPORTFLIPSTATUSDATA  puGetVPortFlipStatusData 
)

Definition at line 145 of file dvp.c.

147{
149
150 if (pfnDvpGetVideoPortFlipStatus == NULL)
151 {
152 DPRINT1("Warning: no pfnDvpGetVideoPortFlipStatus\n");
154 }
155
156 DPRINT("Calling dxg.sys pfnDvpGetVideoPortFlipStatus\n");
157 return pfnDvpGetVideoPortFlipStatus(hDirectDraw, puGetVPortFlipStatusData);
158}
#define DXG_INDEX_DxDvpGetVideoPortFlipStatus
Definition: dxg.h:77
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTFLIPSTATUS)(HANDLE, PDD_GETVPORTFLIPSTATUSDATA)
Definition: intddraw.h:55

◆ NtGdiDvpGetVideoPortInputFormats()

DWORD APIENTRY NtGdiDvpGetVideoPortInputFormats ( HANDLE  hVideoPort,
PDD_GETVPORTINPUTFORMATDATA  puGetVPortInputFormatData 
)

Definition at line 165 of file dvp.c.

167{
169
170 if (pfnDvpGetVideoPortInputFormats == NULL)
171 {
172 DPRINT1("Warning: no pfnDvpGetVideoPortInputFormats\n");
174 }
175
176 DPRINT("Calling dxg.sys pfnDvpGetVideoPortInputFormats\n");
177 return pfnDvpGetVideoPortInputFormats(hVideoPort, puGetVPortInputFormatData);
178}
#define DXG_INDEX_DxDvpGetVideoPortInputFormats
Definition: dxg.h:78
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTINPUTFORMATS)(HANDLE, PDD_GETVPORTINPUTFORMATDATA)
Definition: intddraw.h:56

◆ NtGdiDvpGetVideoPortLine()

DWORD APIENTRY NtGdiDvpGetVideoPortLine ( HANDLE  hVideoPort,
PDD_GETVPORTLINEDATA  puGetVPortLineData 
)

Definition at line 185 of file dvp.c.

187{
189
190 if (pfnDvpGetVideoPortLine == NULL)
191 {
192 DPRINT1("Warning: no pfnDvpGetVideoPortLine\n");
194 }
195
196 DPRINT("Calling dxg.sys pfnDvpGetVideoPortLine\n");
197 return pfnDvpGetVideoPortLine(hVideoPort, puGetVPortLineData);
198}
#define DXG_INDEX_DxDvpGetVideoPortLine
Definition: dxg.h:79
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTLINE)(HANDLE, PDD_GETVPORTLINEDATA)
Definition: intddraw.h:57

◆ NtGdiDvpGetVideoPortOutputFormats()

DWORD APIENTRY NtGdiDvpGetVideoPortOutputFormats ( HANDLE  hVideoPort,
PDD_GETVPORTOUTPUTFORMATDATA  puGetVPortOutputFormatData 
)

Definition at line 205 of file dvp.c.

207{
209
210 if (pfnDvpGetVideoPortOutputFormats == NULL)
211 {
212 DPRINT1("Warning: no pfnDvpGetVideoPortOutputFormats\n");
214 }
215
216 DPRINT("Calling dxg.sys pfnDvpGetVideoPortOutputFormats\n");
217 return pfnDvpGetVideoPortOutputFormats(hVideoPort, puGetVPortOutputFormatData);
218}
#define DXG_INDEX_DxDvpGetVideoPortOutputFormats
Definition: dxg.h:80
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTOUTPUTFORMATS)(HANDLE, PDD_GETVPORTOUTPUTFORMATDATA)
Definition: intddraw.h:58

◆ NtGdiDvpGetVideoSignalStatus()

DWORD APIENTRY NtGdiDvpGetVideoSignalStatus ( HANDLE  hVideoPort,
PDD_GETVPORTSIGNALDATA  puGetVPortSignalData 
)

Definition at line 245 of file dvp.c.

247{
249
250 if (pfnDvpGetVideoSignalStatus == NULL)
251 {
252 DPRINT1("Warning: no pfnDvpGetVideoSignalStatus\n");
254 }
255
256 DPRINT("Calling dxg.sys pfnDvpGetVideoSignalStatus\n");
257 return pfnDvpGetVideoSignalStatus(hVideoPort, puGetVPortSignalData);
258}
#define DXG_INDEX_DxDvpGetVideoSignalStatus
Definition: dxg.h:82
DWORD(APIENTRY * PGD_DXDVPGETVIDEOSIGNALSTATUS)(HANDLE, PDD_GETVPORTSIGNALDATA)
Definition: intddraw.h:60

◆ NtGdiDvpReleaseNotification()

DWORD APIENTRY NtGdiDvpReleaseNotification ( HANDLE  hVideoPort,
HANDLE  hEvent 
)

Definition at line 328 of file dvp.c.

330{
332
333 if (pfnDvpReleaseNotification == NULL)
334 {
335 DPRINT1("Warning: no pfnDvpReleaseNotification\n");
337 }
338
339 DPRINT("Calling dxg.sys pfnDvpReleaseNotification\n");
340 return pfnDvpReleaseNotification(hVideoPort, hEvent);
341}
#define DXG_INDEX_DxDvpReleaseNotification
Definition: dxg.h:86
DWORD(APIENTRY * PGD_DXDVPRELEASENOTIFICATION)(HANDLE, HANDLE)
Definition: intddraw.h:64

◆ NtGdiDvpUpdateVideoPort()

DWORD APIENTRY NtGdiDvpUpdateVideoPort ( HANDLE  hVideoPort,
HANDLE phSurfaceVideo,
HANDLE phSurfaceVbi,
PDD_UPDATEVPORTDATA  puUpdateVPortData 
)

Definition at line 265 of file dvp.c.

269{
271
272 if (pfnDvpUpdateVideoPort == NULL)
273 {
274 DPRINT1("Warning: no pfnDvpUpdateVideoPort\n");
276 }
277
278 DPRINT("Calling dxg.sys pfnDvpUpdateVideoPort\n");
279 return pfnDvpUpdateVideoPort(hVideoPort, phSurfaceVideo, phSurfaceVbi, puUpdateVPortData);
280}
#define DXG_INDEX_DxDvpUpdateVideoPort
Definition: dxg.h:83
DWORD(APIENTRY * PGD_DXDVPUPDATEVIDEOPORT)(HANDLE, HANDLE *, HANDLE *, PDD_UPDATEVPORTDATA)
Definition: intddraw.h:61

◆ NtGdiDvpWaitForVideoPortSync()

DWORD APIENTRY NtGdiDvpWaitForVideoPortSync ( HANDLE  hVideoPort,
PDD_WAITFORVPORTSYNCDATA  puWaitForVPortSyncData 
)

Definition at line 287 of file dvp.c.

289{
291
292 if (pfnDvpWaitForVideoPortSync == NULL)
293 {
294 DPRINT1("Warning: no pfnDvpWaitForVideoPortSync\n");
296 }
297
298 DPRINT("Calling dxg.sys pfnDvpWaitForVideoPortSync\n");
299 return pfnDvpWaitForVideoPortSync(hVideoPort, puWaitForVPortSyncData);
300}
#define DXG_INDEX_DxDvpWaitForVideoPortSync
Definition: dxg.h:84
DWORD(APIENTRY * PGD_DXDVPWAITFORVIDEOPORTSYNC)(HANDLE, PDD_WAITFORVPORTSYNCDATA)
Definition: intddraw.h:62