VirtualBox

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

最後變更 在這個檔案是 43251,由 vboxsync 提交於 12 年 前

Additions/x11: added headers for X.Org Server 1.13.

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.4 KB
 
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 pointer 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, pointer *mode,
46 int *dotClock);
47extern _X_EXPORT Bool VidModeGetFirstModeline(int scrnIndex, pointer *mode,
48 int *dotClock);
49extern _X_EXPORT Bool VidModeGetNextModeline(int scrnIndex, pointer *mode,
50 int *dotClock);
51extern _X_EXPORT Bool VidModeDeleteModeline(int scrnIndex, pointer 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, pointer mode);
56extern _X_EXPORT Bool VidModeLockZoom(int scrnIndex, Bool lock);
57extern _X_EXPORT Bool VidModeGetMonitor(int scrnIndex, pointer *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 pointer mode);
62extern _X_EXPORT ModeStatus VidModeCheckModeForDriver(int scrnIndex,
63 pointer mode);
64extern _X_EXPORT void VidModeSetCrtcForMode(int scrnIndex, pointer mode);
65extern _X_EXPORT Bool VidModeAddModeline(int scrnIndex, pointer 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 pointer VidModeCreateMode(void);
73extern _X_EXPORT void VidModeCopyMode(pointer modefrom, pointer modeto);
74extern _X_EXPORT int VidModeGetModeValue(pointer mode, int valtyp);
75extern _X_EXPORT void VidModeSetModeValue(pointer mode, int valtyp, int val);
76extern _X_EXPORT vidMonitorValue VidModeGetMonitorValue(pointer 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
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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