VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.16.0/vidmodeproc.h@ 99743

Last change on this file since 99743 was 52145, checked in by vboxsync, 10 years ago

Additions/x11/x11include: add header files for X.Org Server 1.16.

  • Property svn:eol-style set to native
File size: 3.4 KB
Line 
1
2/* Prototypes for DGA functions that the DDX must provide */
3
4#ifdef HAVE_DIX_CONFIG_H
5#include <dix-config.h>
6#endif
7
8#ifndef _VIDMODEPROC_H_
9#define _VIDMODEPROC_H_
10
11typedef enum {
12 VIDMODE_H_DISPLAY,
13 VIDMODE_H_SYNCSTART,
14 VIDMODE_H_SYNCEND,
15 VIDMODE_H_TOTAL,
16 VIDMODE_H_SKEW,
17 VIDMODE_V_DISPLAY,
18 VIDMODE_V_SYNCSTART,
19 VIDMODE_V_SYNCEND,
20 VIDMODE_V_TOTAL,
21 VIDMODE_FLAGS,
22 VIDMODE_CLOCK
23} VidModeSelectMode;
24
25typedef enum {
26 VIDMODE_MON_VENDOR,
27 VIDMODE_MON_MODEL,
28 VIDMODE_MON_NHSYNC,
29 VIDMODE_MON_NVREFRESH,
30 VIDMODE_MON_HSYNC_LO,
31 VIDMODE_MON_HSYNC_HI,
32 VIDMODE_MON_VREFRESH_LO,
33 VIDMODE_MON_VREFRESH_HI
34} VidModeSelectMonitor;
35
36typedef union {
37 const void *ptr;
38 int i;
39 float f;
40} vidMonitorValue;
41
42extern Bool VidModeExtensionInit(ScreenPtr pScreen);
43
44extern _X_EXPORT Bool VidModeAvailable(int scrnIndex);
45extern _X_EXPORT Bool VidModeGetCurrentModeline(int scrnIndex, void **mode,
46 int *dotClock);
47extern _X_EXPORT Bool VidModeGetFirstModeline(int scrnIndex, void **mode,
48 int *dotClock);
49extern _X_EXPORT Bool VidModeGetNextModeline(int scrnIndex, void **mode,
50 int *dotClock);
51extern _X_EXPORT Bool VidModeDeleteModeline(int scrnIndex, void *mode);
52extern _X_EXPORT Bool VidModeZoomViewport(int scrnIndex, int zoom);
53extern _X_EXPORT Bool VidModeGetViewPort(int scrnIndex, int *x, int *y);
54extern _X_EXPORT Bool VidModeSetViewPort(int scrnIndex, int x, int y);
55extern _X_EXPORT Bool VidModeSwitchMode(int scrnIndex, void *mode);
56extern _X_EXPORT Bool VidModeLockZoom(int scrnIndex, Bool lock);
57extern _X_EXPORT Bool VidModeGetMonitor(int scrnIndex, void **monitor);
58extern _X_EXPORT int VidModeGetNumOfClocks(int scrnIndex, Bool *progClock);
59extern _X_EXPORT Bool VidModeGetClocks(int scrnIndex, int *Clocks);
60extern _X_EXPORT ModeStatus VidModeCheckModeForMonitor(int scrnIndex,
61 void *mode);
62extern _X_EXPORT ModeStatus VidModeCheckModeForDriver(int scrnIndex,
63 void *mode);
64extern _X_EXPORT void VidModeSetCrtcForMode(int scrnIndex, void *mode);
65extern _X_EXPORT Bool VidModeAddModeline(int scrnIndex, void *mode);
66extern _X_EXPORT int VidModeGetDotClock(int scrnIndex, int Clock);
67extern _X_EXPORT int VidModeGetNumOfModes(int scrnIndex);
68extern _X_EXPORT Bool VidModeSetGamma(int scrnIndex, float red, float green,
69 float blue);
70extern _X_EXPORT Bool VidModeGetGamma(int scrnIndex, float *red, float *green,
71 float *blue);
72extern _X_EXPORT void *VidModeCreateMode(void);
73extern _X_EXPORT void VidModeCopyMode(void *modefrom, void *modeto);
74extern _X_EXPORT int VidModeGetModeValue(void *mode, int valtyp);
75extern _X_EXPORT void VidModeSetModeValue(void *mode, int valtyp, int val);
76extern _X_EXPORT vidMonitorValue VidModeGetMonitorValue(void *monitor,
77 int valtyp, int indx);
78extern _X_EXPORT Bool VidModeSetGammaRamp(int, int, CARD16 *, CARD16 *,
79 CARD16 *);
80extern _X_EXPORT Bool VidModeGetGammaRamp(int, int, CARD16 *, CARD16 *,
81 CARD16 *);
82extern _X_EXPORT int VidModeGetGammaRampSize(int scrnIndex);
83
84#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette