VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.9.0/xf86Modes.h@ 96236

最後變更 在這個檔案從96236是 96236,由 vboxsync 提交於 2 年 前

src/VBox/Additions/x11/x11include, src/VBox/Devices/PC/ipxe: Convert Latin1 to UTF-8 encoding to match VirtualBox tree conventions.

  • 屬性 svn:eol-style 設為 native
檔案大小: 4.1 KB
 
1/*
2 * Copyright © 2006 Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
13 * Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 * SOFTWARE.
22 *
23 * Authors:
24 * Eric Anholt <[email protected]>
25 *
26 */
27
28#ifndef _XF86MODES_H_
29#define _XF86MODES_H_
30
31#include <stddef.h>
32#include <string.h>
33#include <stdio.h>
34
35#include "xf86.h"
36#include "xorgVersion.h"
37#include "edid.h"
38#include "xf86Parser.h"
39#if XF86_MODES_RENAME
40#include "xf86Rename.h"
41#endif
42
43extern _X_EXPORT double xf86ModeHSync(const DisplayModeRec *mode);
44extern _X_EXPORT double xf86ModeVRefresh(const DisplayModeRec *mode);
45extern _X_EXPORT unsigned int xf86ModeBandwidth(DisplayModePtr mode, int depth);
46
47extern _X_EXPORT int
48xf86ModeWidth (const DisplayModeRec *mode, Rotation rotation);
49
50extern _X_EXPORT int
51xf86ModeHeight (const DisplayModeRec *mode, Rotation rotation);
52
53extern _X_EXPORT DisplayModePtr xf86DuplicateMode(const DisplayModeRec *pMode);
54extern _X_EXPORT DisplayModePtr xf86DuplicateModes(ScrnInfoPtr pScrn,
55 DisplayModePtr modeList);
56extern _X_EXPORT void xf86SetModeDefaultName(DisplayModePtr mode);
57extern _X_EXPORT void xf86SetModeCrtc(DisplayModePtr p, int adjustFlags);
58extern _X_EXPORT Bool xf86ModesEqual(const DisplayModeRec *pMode1,
59 const DisplayModeRec *pMode2);
60extern _X_EXPORT void xf86PrintModeline(int scrnIndex,DisplayModePtr mode);
61extern _X_EXPORT DisplayModePtr xf86ModesAdd(DisplayModePtr modes, DisplayModePtr new);
62
63extern _X_EXPORT DisplayModePtr xf86DDCGetModes(int scrnIndex, xf86MonPtr DDC);
64extern _X_EXPORT DisplayModePtr xf86CVTMode(int HDisplay, int VDisplay, float VRefresh,
65 Bool Reduced, Bool Interlaced);
66extern _X_EXPORT DisplayModePtr xf86GTFMode(int h_pixels, int v_lines, float freq, int interlaced, int margins);
67
68extern _X_EXPORT Bool
69xf86ModeIsReduced(const DisplayModeRec *mode);
70
71extern _X_EXPORT void
72xf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
73 int flags);
74
75extern _X_EXPORT void
76xf86ValidateModesClocks(ScrnInfoPtr pScrn, DisplayModePtr modeList,
77 int *min, int *max, int n_ranges);
78
79extern _X_EXPORT void
80xf86ValidateModesSize(ScrnInfoPtr pScrn, DisplayModePtr modeList,
81 int maxX, int maxY, int maxPitch);
82
83extern _X_EXPORT void
84xf86ValidateModesSync(ScrnInfoPtr pScrn, DisplayModePtr modeList,
85 MonPtr mon);
86
87extern _X_EXPORT void
88xf86ValidateModesBandwidth(ScrnInfoPtr pScrn, DisplayModePtr modeList,
89 unsigned int bandwidth, int depth);
90
91extern _X_EXPORT void
92xf86ValidateModesReducedBlanking(ScrnInfoPtr pScrn, DisplayModePtr modeList);
93
94extern _X_EXPORT void
95xf86PruneInvalidModes(ScrnInfoPtr pScrn, DisplayModePtr *modeList,
96 Bool verbose);
97
98extern _X_EXPORT DisplayModePtr
99xf86PruneDuplicateModes(DisplayModePtr modes);
100
101extern _X_EXPORT void
102xf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
103 int flags);
104
105extern _X_EXPORT void
106xf86ValidateModesUserConfig(ScrnInfoPtr pScrn, DisplayModePtr modeList);
107
108extern _X_EXPORT DisplayModePtr
109xf86GetMonitorModes (ScrnInfoPtr pScrn, XF86ConfMonitorPtr conf_monitor);
110
111extern _X_EXPORT DisplayModePtr
112xf86GetDefaultModes (void);
113
114extern _X_EXPORT void
115xf86DDCApplyQuirks(int scrnIndex, xf86MonPtr DDC);
116
117#endif /* _XF86MODES_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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