VirtualBox

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

Last change on this file since 33428 was 25078, checked in by vboxsync, 15 years ago

Additions/x11/x11include: exported and set eol-style on new headers

  • Property svn:eol-style set to native
File size: 3.1 KB
Line 
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
43double xf86ModeHSync(DisplayModePtr mode);
44double xf86ModeVRefresh(DisplayModePtr mode);
45
46int
47xf86ModeWidth (DisplayModePtr mode, Rotation rotation);
48
49int
50xf86ModeHeight (DisplayModePtr mode, Rotation rotation);
51
52DisplayModePtr xf86DuplicateMode(DisplayModePtr pMode);
53DisplayModePtr xf86DuplicateModes(ScrnInfoPtr pScrn,
54 DisplayModePtr modeList);
55void xf86SetModeDefaultName(DisplayModePtr mode);
56void xf86SetModeCrtc(DisplayModePtr p, int adjustFlags);
57Bool xf86ModesEqual(DisplayModePtr pMode1, DisplayModePtr pMode2);
58void xf86PrintModeline(int scrnIndex,DisplayModePtr mode);
59DisplayModePtr xf86ModesAdd(DisplayModePtr modes, DisplayModePtr new);
60
61DisplayModePtr xf86DDCGetModes(int scrnIndex, xf86MonPtr DDC);
62DisplayModePtr xf86CVTMode(int HDisplay, int VDisplay, float VRefresh,
63 Bool Reduced, Bool Interlaced);
64
65void
66xf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
67 int flags);
68
69void
70xf86ValidateModesClocks(ScrnInfoPtr pScrn, DisplayModePtr modeList,
71 int *min, int *max, int n_ranges);
72
73void
74xf86ValidateModesSize(ScrnInfoPtr pScrn, DisplayModePtr modeList,
75 int maxX, int maxY, int maxPitch);
76
77void
78xf86ValidateModesSync(ScrnInfoPtr pScrn, DisplayModePtr modeList,
79 MonPtr mon);
80
81void
82xf86PruneInvalidModes(ScrnInfoPtr pScrn, DisplayModePtr *modeList,
83 Bool verbose);
84
85void
86xf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
87 int flags);
88
89void
90xf86ValidateModesUserConfig(ScrnInfoPtr pScrn, DisplayModePtr modeList);
91
92DisplayModePtr
93xf86GetMonitorModes (ScrnInfoPtr pScrn, XF86ConfMonitorPtr conf_monitor);
94
95DisplayModePtr
96xf86GetDefaultModes (Bool interlaceAllowed, Bool doubleScanAllowed);
97
98#endif /* _XF86MODES_H_ */
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