ReactOS  0.4.15-dev-3303-g1ade494
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 317 of file dvp.c.

320 {
322 
323  if (pfnDvpAcquireNotification == NULL)
324  {
325  DPRINT1("Warning: no pfnDvpAcquireNotification");
327  }
328 
329  DPRINT1("Calling dxg.sys pfnDvpAcquireNotification");
330  return pfnDvpAcquireNotification(hVideoPort, hEvent, pNotify);
331 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DWORD(APIENTRY * PGD_DXDVPACQUIRENOTIFICATION)(HANDLE, HANDLE *, LPDDVIDEOPORTNOTIFY)
Definition: intddraw.h:64
static HANDLE hEvent
Definition: comm.c:54
#define DXG_INDEX_DxDvpAcquireNotification
Definition: dxg.h:85
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ NtGdiDvpCanCreateVideoPort()

DWORD APIENTRY NtGdiDvpCanCreateVideoPort ( HANDLE  hDirectDraw,
PDD_CANCREATEVPORTDATA  puCanCreateVPortData 
)

Definition at line 20 of file dvp.c.

22 {
24 
25  if (pfnDvpCanCreateVideoPort == NULL)
26  {
27  DPRINT1("Warning: no pfnDvpCanCreateVideoPort");
29  }
30 
31  DPRINT1("Calling dxg.sys pfnDvpCanCreateVideoPort");
32  return pfnDvpCanCreateVideoPort(hDirectDraw, puCanCreateVPortData);
33 }
DWORD(APIENTRY * PGD_DVPCANCREATEVIDEOPORT)(HANDLE, PDD_CANCREATEVPORTDATA)
Definition: intddraw.h:50
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8
#define DXG_INDEX_DxDvpCanCreateVideoPort
Definition: dxg.h:70

◆ NtGdiDvpColorControl()

DWORD APIENTRY NtGdiDvpColorControl ( HANDLE  hVideoPort,
PDD_VPORTCOLORDATA  puVPortColorData 
)

Definition at line 40 of file dvp.c.

42 {
44 
45  if (pfnDvpColorControl == NULL)
46  {
47  DPRINT1("Warning: no pfnDvpColorControl");
49  }
50 
51  DPRINT1("Calling dxg.sys pfnDvpColorControl");
52  return pfnDvpColorControl(hVideoPort, puVPortColorData);
53 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DWORD(APIENTRY * PGD_DVPCOLORCONTROL)(HANDLE, PDD_VPORTCOLORDATA)
Definition: intddraw.h:51
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8
#define DXG_INDEX_DxDvpColorControl
Definition: dxg.h:71

◆ NtGdiDvpCreateVideoPort()

HANDLE APIENTRY NtGdiDvpCreateVideoPort ( HANDLE  hDirectDraw,
PDD_CREATEVPORTDATA  puCreateVPortData 
)

Definition at line 60 of file dvp.c.

62 {
64 
65  if (pfnDvpCreateVideoPort == NULL)
66  {
67  DPRINT1("Warning: no pfnDvpCreateVideoPort");
69  }
70 
71  DPRINT1("Calling dxg.sys pfnDvpCreateVideoPort");
72  return pfnDvpCreateVideoPort(hDirectDraw, puCreateVPortData);
73 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
HANDLE(APIENTRY * PGD_DVPCREATEVIDEOPORT)(HANDLE, PDD_CREATEVPORTDATA)
Definition: intddraw.h:52
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define DXG_INDEX_DxDvpCreateVideoPort
Definition: dxg.h:72
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ NtGdiDvpDestroyVideoPort()

DWORD APIENTRY NtGdiDvpDestroyVideoPort ( HANDLE  hVideoPort,
PDD_DESTROYVPORTDATA  puDestroyVPortData 
)

Definition at line 80 of file dvp.c.

82 {
84 
85  if (pfnDvpDestroyVideoPort == NULL)
86  {
87  DPRINT1("Warning: no pfnDvpDestroyVideoPort");
89  }
90 
91  DPRINT1("Calling dxg.sys pfnDvpDestroyVideoPort");
92  return pfnDvpDestroyVideoPort(hVideoPort, puDestroyVPortData);
93 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
#define DXG_INDEX_DxDvpDestroyVideoPort
Definition: dxg.h:73
DWORD(APIENTRY * PGD_DVPDESTROYVIDEOPORT)(HANDLE, PDD_DESTROYVPORTDATA)
Definition: intddraw.h:53
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ NtGdiDvpFlipVideoPort()

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

Definition at line 100 of file dvp.c.

104 {
106 
107  if (pfnDvpFlipVideoPort == NULL)
108  {
109  DPRINT1("Warning: no pfnDvpFlipVideoPort");
111  }
112 
113  DPRINT1("Calling dxg.sys pfnDvpFlipVideoPort");
114  return pfnDvpFlipVideoPort(hVideoPort, hDDSurfaceCurrent, hDDSurfaceTarget, puFlipVPortData);
115 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DWORD(APIENTRY * PGD_DVPFLIPVIDEOPORT)(HANDLE, HANDLE, HANDLE, PDD_FLIPVPORTDATA)
Definition: intddraw.h:54
#define DXG_INDEX_DxDvpFlipVideoPort
Definition: dxg.h:74
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ NtGdiDvpGetVideoPortBandwidth()

DWORD APIENTRY NtGdiDvpGetVideoPortBandwidth ( HANDLE  hVideoPort,
PDD_GETVPORTBANDWIDTHDATA  puGetVPortBandwidthData 
)

Definition at line 123 of file dvp.c.

125 {
127 
128  if (pfnDvpGetVideoPortBandwidth == NULL)
129  {
130  DPRINT1("Warning: no pfnDvpGetVideoPortBandwidth");
132  }
133 
134  DPRINT1("Calling dxg.sys pfnDvpGetVideoPortBandwidth");
135  return pfnDvpGetVideoPortBandwidth(hVideoPort, puGetVPortBandwidthData);
136 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DWORD(APIENTRY * PGD_DVPGETVIDEOPORTBANDWITH)(HANDLE, PDD_GETVPORTBANDWIDTHDATA)
Definition: intddraw.h:55
#define DXG_INDEX_DxDvpGetVideoPortBandwidth
Definition: dxg.h:75
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ NtGdiDvpGetVideoPortConnectInfo()

DWORD APIENTRY NtGdiDvpGetVideoPortConnectInfo ( HANDLE  hDirectDraw,
PDD_GETVPORTCONNECTDATA  puGetVPortConnectData 
)

Definition at line 229 of file dvp.c.

231 {
233 
234  if (pfnDvpGetVideoPortConnectInfo == NULL)
235  {
236  DPRINT1("Warning: no pfnDvpGetVideoPortConnectInfo");
238  }
239 
240  DPRINT1("Calling dxg.sys pfnDvpGetVideoPortConnectInfo");
241  return pfnDvpGetVideoPortConnectInfo(hDirectDraw, puGetVPortConnectData);
242 }
#define DXG_INDEX_DxDvpGetVideoPortConnectInfo
Definition: dxg.h:81
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTCONNECTINFO)(HANDLE, PDD_GETVPORTCONNECTDATA)
Definition: intddraw.h:60

◆ NtGdiDvpGetVideoPortField()

DWORD APIENTRY NtGdiDvpGetVideoPortField ( HANDLE  hVideoPort,
PDD_GETVPORTFIELDDATA  puGetVPortFieldData 
)

Definition at line 361 of file dvp.c.

363 {
365 
366  if (pfnDvpGetVideoPortField == NULL)
367  {
368  DPRINT1("Warning: no pfnDvpGetVideoPortField");
370  }
371 
372  DPRINT1("Calling dxg.sys pfnDvpGetVideoPortField");
373  return pfnDvpGetVideoPortField(hVideoPort, puGetVPortFieldData);
374 
375 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
#define DXG_INDEX_DxDvpGetVideoPortField
Definition: dxg.h:76
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTFIELD)(HANDLE, PDD_GETVPORTFIELDDATA)
Definition: intddraw.h:66
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ NtGdiDvpGetVideoPortFlipStatus()

DWORD APIENTRY NtGdiDvpGetVideoPortFlipStatus ( HANDLE  hDirectDraw,
PDD_GETVPORTFLIPSTATUSDATA  puGetVPortFlipStatusData 
)

Definition at line 144 of file dvp.c.

146 {
148 
149  if (pfnDvpGetVideoPortFlipStatus == NULL)
150  {
151  DPRINT1("Warning: no pfnDvpGetVideoPortFlipStatus");
153  }
154 
155  DPRINT1("Calling dxg.sys pfnDvpGetVideoPortFlipStatus");
156  return pfnDvpGetVideoPortFlipStatus(hDirectDraw, puGetVPortFlipStatusData);
157 }
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTFLIPSTATUS)(HANDLE, PDD_GETVPORTFLIPSTATUSDATA)
Definition: intddraw.h:56
#define DXG_INDEX_DxDvpGetVideoPortFlipStatus
Definition: dxg.h:77
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ 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");
174  }
175 
176  DPRINT1("Calling dxg.sys pfnDvpGetVideoPortInputFormats");
177  return pfnDvpGetVideoPortInputFormats(hVideoPort, puGetVPortInputFormatData);
178 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTINPUTFORMATS)(HANDLE, PDD_GETVPORTINPUTFORMATDATA)
Definition: intddraw.h:57
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8
#define DXG_INDEX_DxDvpGetVideoPortInputFormats
Definition: dxg.h:78

◆ NtGdiDvpGetVideoPortLine()

DWORD APIENTRY NtGdiDvpGetVideoPortLine ( HANDLE  hVideoPort,
PDD_GETVPORTLINEDATA  puGetVPortLineData 
)

Definition at line 186 of file dvp.c.

188 {
190 
191  if (pfnDvpGetVideoPortLine == NULL)
192  {
193  DPRINT1("Warning: no pfnDvpGetVideoPortLine");
195  }
196 
197  DPRINT1("Calling dxg.sys pfnDvpGetVideoPortLine");
198  return pfnDvpGetVideoPortLine(hVideoPort, puGetVPortLineData);
199 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTLINE)(HANDLE, PDD_GETVPORTLINEDATA)
Definition: intddraw.h:58
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8
#define DXG_INDEX_DxDvpGetVideoPortLine
Definition: dxg.h:79

◆ NtGdiDvpGetVideoPortOutputFormats()

DWORD APIENTRY NtGdiDvpGetVideoPortOutputFormats ( HANDLE  hVideoPort,
PDD_GETVPORTOUTPUTFORMATDATA  puGetVPortOutputFormatData 
)

Definition at line 207 of file dvp.c.

209 {
211 
212  if (pfnDvpGetVideoPortOutputFormats == NULL)
213  {
214  DPRINT1("Warning: no pfnDvpGetVideoPortOutputFormats");
216  }
217 
218  DPRINT1("Calling dxg.sys pfnDvpGetVideoPortOutputFormats");
219  return pfnDvpGetVideoPortOutputFormats(hVideoPort, puGetVPortOutputFormatData);
220 
221 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DWORD(APIENTRY * PGD_DXDVPGETVIDEOPORTOUTPUTFORMATS)(HANDLE, PDD_GETVPORTOUTPUTFORMATDATA)
Definition: intddraw.h:59
#define DXG_INDEX_DxDvpGetVideoPortOutputFormats
Definition: dxg.h:80
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ NtGdiDvpGetVideoSignalStatus()

DWORD APIENTRY NtGdiDvpGetVideoSignalStatus ( HANDLE  hVideoPort,
PDD_GETVPORTSIGNALDATA  puGetVPortSignalData 
)

Definition at line 250 of file dvp.c.

252 {
254 
255  if (pfnDvpGetVideoSignalStatus == NULL)
256  {
257  DPRINT1("Warning: no pfnDvpGetVideoSignalStatus");
259  }
260 
261  DPRINT1("Calling dxg.sys pfnDvpGetVideoSignalStatus");
262  return pfnDvpGetVideoSignalStatus(hVideoPort, puGetVPortSignalData);
263 
264 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DWORD(APIENTRY * PGD_DXDVPGETVIDEOSIGNALSTATUS)(HANDLE, PDD_GETVPORTSIGNALDATA)
Definition: intddraw.h:61
#define DXG_INDEX_DxDvpGetVideoSignalStatus
Definition: dxg.h:82
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ NtGdiDvpReleaseNotification()

DWORD APIENTRY NtGdiDvpReleaseNotification ( HANDLE  hVideoPort,
HANDLE  hEvent 
)

Definition at line 339 of file dvp.c.

341 {
343 
344  if (pfnDvpReleaseNotification == NULL)
345  {
346  DPRINT1("Warning: no pfnDvpReleaseNotification");
348  }
349 
350  DPRINT1("Calling dxg.sys pfnDvpReleaseNotification");
351  return pfnDvpReleaseNotification(hVideoPort, hEvent);
352 
353 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
static HANDLE hEvent
Definition: comm.c:54
#define DXG_INDEX_DxDvpReleaseNotification
Definition: dxg.h:86
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8
DWORD(APIENTRY * PGD_DXDVPRELEASENOTIFICATION)(HANDLE, HANDLE)
Definition: intddraw.h:65

◆ NtGdiDvpUpdateVideoPort()

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

Definition at line 272 of file dvp.c.

276 {
278 
279  if (pfnDvpUpdateVideoPort == NULL)
280  {
281  DPRINT1("Warning: no pfnDvpUpdateVideoPort");
283  }
284 
285  DPRINT1("Calling dxg.sys pfnDvpUpdateVideoPort");
286  return pfnDvpUpdateVideoPort(hVideoPort, phSurfaceVideo, phSurfaceVbi, puUpdateVPortData);
287 
288 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
#define DXG_INDEX_DxDvpUpdateVideoPort
Definition: dxg.h:83
DWORD(APIENTRY * PGD_DXDVPUPDATEVIDEOPORT)(HANDLE, HANDLE *, HANDLE *, PDD_UPDATEVPORTDATA)
Definition: intddraw.h:62
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8

◆ NtGdiDvpWaitForVideoPortSync()

DWORD APIENTRY NtGdiDvpWaitForVideoPortSync ( HANDLE  hVideoPort,
PDD_WAITFORVPORTSYNCDATA  puWaitForVPortSyncData 
)

Definition at line 296 of file dvp.c.

298 {
300 
301  if (pfnDvpWaitForVideoPortSync == NULL)
302  {
303  DPRINT1("Warning: no pfnDvpWaitForVideoPortSync");
305  }
306 
307  DPRINT1("Calling dxg.sys pfnDvpWaitForVideoPortSync");
308  return pfnDvpWaitForVideoPortSync(hVideoPort, puWaitForVPortSyncData);
309 }
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:23
DWORD(APIENTRY * PGD_DXDVPWAITFORVIDEOPORTSYNC)(HANDLE, PDD_WAITFORVPORTSYNCDATA)
Definition: intddraw.h:63
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8
#define DXG_INDEX_DxDvpWaitForVideoPortSync
Definition: dxg.h:84