Cross Reference:
xref
: /
vbox
/
src
/
VBox
/
Additions
/
linux
/
x11include
/
7.0
/
xorg
/
vdif.h
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
vdif.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
0
N/A
/* $XFree86:
xc
/
programs
/
Xserver
/
hw
/
xfree86
/
ddc
/
vdif.h
,v 1.4tsi Exp $ */
2362
N/A
0
N/A
#
ifndef
_VDIF_H
0
N/A
#
define
_VDIF_H
0
N/A
0
N/A
#
define
VDIF_MONITOR_MONOCHROME
0
0
N/A
#
define
VDIF_MONITOR_COLOR
1
0
N/A
#
define
VDIF_VIDEO_TTL
0
0
N/A
#
define
VDIF_VIDEO_ANALOG
1
0
N/A
#
define
VDIF_VIDEO_ECL
2
0
N/A
#
define
VDIF_VIDEO_DECL
3
0
N/A
#
define
VDIF_VIDEO_OTHER
4
0
N/A
#
define
VDIF_SYNC_SEPARATE
0
0
N/A
#
define
VDIF_SYNC_C
1
0
N/A
#
define
VDIF_SYNC_CP
2
0
N/A
#
define
VDIF_SYNC_G
3
0
N/A
#
define
VDIF_SYNC_GP
4
0
N/A
#
define
VDIF_SYNC_OTHER
5
2362
N/A
#
define
VDIF_SCAN_NONINTERLACED
0
2362
N/A
#
define
VDIF_SCAN_INTERLACED
1
2362
N/A
#
define
VDIF_SCAN_OTHER
2
0
N/A
#
define
VDIF_POLARITY_NEGATIVE
0
0
N/A
#
define
VDIF_POLARITY_POSITIVE
1
0
N/A
0
N/A
#
include
<
X11
/
Xmd.h
>
0
N/A
0
N/A
#
undef
CARD32
0
N/A
#
define
CARD32
unsigned
int
/* ... on all supported platforms */
0
N/A
0
N/A
typedef
struct
_VDIF
{
/* Monitor Description: */
0
N/A
CARD8
VDIFId
[
4
];
/* alway "VDIF" */
0
N/A
CARD32
FileLength
;
/* lenght of the whole file */
0
N/A
CARD32
Checksum
;
/* sum of all bytes in the file after*/
0
N/A
/* this field */
0
N/A
CARD16
VDIFVersion
;
/* structure version number */
0
N/A
CARD16
VDIFRevision
;
/* structure revision number */
0
N/A
CARD16
Date
[
3
];
/* file date
Year
/
Month
/
Day
*/
0
N/A
CARD16
DateManufactured
[
3
];
/* date
Year
/
Month
/
Day
*/
0
N/A
CARD32
FileRevision
;
/* file revision string */
0
N/A
CARD32
Manufacturer
;
/* ASCII ID of the manufacturer */
0
N/A
CARD32
ModelNumber
;
/* ASCII ID of the model */
0
N/A
CARD32
MinVDIFIndex
;
/* ASCII ID of Minimum VDIF index */
0
N/A
CARD32
Version
;
/* ASCII ID of the model version */
0
N/A
CARD32
SerialNumber
;
/* ASCII ID of the serial number */
0
N/A
CARD8
MonitorType
;
/* Monochrome or Color */
0
N/A
CARD8
CRTSize
;
/* inches */
0
N/A
CARD8
BorderRed
;
/* percent */
0
N/A
CARD8
BorderGreen
;
/* percent */
0
N/A
CARD8
BorderBlue
;
/* percent */
0
N/A
CARD8
Reserved1
;
/* padding */
0
N/A
CARD16
Reserved2
;
/* padding */
0
N/A
CARD32
RedPhosphorDecay
;
/* microseconds */
0
N/A
CARD32
GreenPhosphorDecay
;
/* microseconds */
0
N/A
CARD32
BluePhosphorDecay
;
/* microseconds */
0
N/A
CARD16
WhitePoint_x
;
/* WhitePoint in CIExyY (scale 1000) */
0
N/A
CARD16
WhitePoint_y
;
0
N/A
CARD16
WhitePoint_Y
;
0
N/A
CARD16
RedChromaticity_x
;
/* Red chromaticity in x,y */
0
N/A
CARD16
RedChromaticity_y
;
0
N/A
CARD16
GreenChromaticity_x
;
/* Green chromaticity in x,y */
0
N/A
CARD16
GreenChromaticity_y
;
0
N/A
CARD16
BlueChromaticity_x
;
/* Blue chromaticity in x,y */
0
N/A
CARD16
BlueChromaticity_y
;
0
N/A
CARD16
RedGamma
;
/* Gamme curve exponent (scale 1000) */
0
N/A
CARD16
GreenGamma
;
0
N/A
CARD16
BlueGamma
;
0
N/A
CARD32
NumberOperationalLimits
;
0
N/A
CARD32
OffsetOperationalLimits
;
0
N/A
CARD32
NumberOptions
;
/* optinal sections (gamma table) */
0
N/A
CARD32
OffsetOptions
;
0
N/A
CARD32
OffsetStringTable
;
0
N/A
}
xf86VdifRec
, *
xf86VdifPtr
;
0
N/A
0
N/A
typedef
enum
{
/* Tags for section identification */
0
N/A
VDIF_OPERATIONAL_LIMITS_TAG
=
1
,
0
N/A
VDIF_PREADJUSTED_TIMING_TAG
,
0
N/A
VDIF_GAMMA_TABLE_TAG
0
N/A
}
VDIFScnTag
;
0
N/A
0
N/A
typedef
struct
_VDIFScnHdr
{
/* Generic Section Header: */
0
N/A
CARD32
ScnLength
;
/* lenght of section */
0
N/A
CARD32
ScnTag
;
/* tag for section identification */
0
N/A
}
VDIFScnHdrRec
, *
VDIFScnHdrPtr
;
0
N/A
0
N/A
typedef
struct
_VDIFLimits
{
/* Operational Limits: */
0
N/A
VDIFScnHdrRec
Header
;
/* common section info */
0
N/A
CARD16
MaxHorPixel
;
/* pixels */
0
N/A
CARD16
MaxVerPixel
;
/* lines */
0
N/A
CARD16
MaxHorActiveLength
;
/* millimeters */
0
N/A
CARD16
MaxVerActiveHeight
;
/* millimeters */
0
N/A
CARD8
VideoType
;
/* TTL / Analog / ECL / DECL */
0
N/A
CARD8
SyncType
;
/* TTL / Analog / ECL / DECL */
0
N/A
CARD8
SyncConfiguration
;
/* separate / composite / other */
0
N/A
CARD8
Reserved1
;
/* padding */
0
N/A
CARD16
Reserved2
;
/* padding */
0
N/A
CARD16
TerminationResistance
;
/* */
0
N/A
CARD16
WhiteLevel
;
/* millivolts */
0
N/A
CARD16
BlackLevel
;
/* millivolts */
0
N/A
CARD16
BlankLevel
;
/* millivolts */
0
N/A
CARD16
SyncLevel
;
/* millivolts */
0
N/A
CARD32
MaxPixelClock
;
/* kiloHertz */
0
N/A
CARD32
MinHorFrequency
;
/* Hertz */
0
N/A
CARD32
MaxHorFrequency
;
/* Hertz */
0
N/A
CARD32
MinVerFrequency
;
/* milliHertz */
0
N/A
CARD32
MaxVerFrequency
;
/* milliHertz */
0
N/A
CARD16
MinHorRetrace
;
/* nanoseconds */
0
N/A
CARD16
MinVerRetrace
;
/* microseconds */
0
N/A
CARD32
NumberPreadjustedTimings
;
0
N/A
CARD32
OffsetNextLimits
;
0
N/A
}
xf86VdifLimitsRec
, *
xf86VdifLimitsPtr
;
0
N/A
0
N/A
typedef
struct
_VDIFTiming
{
/* Preadjusted Timing: */
0
N/A
VDIFScnHdrRec
Header
;
/* common section info */
0
N/A
CARD32
PreadjustedTimingName
;
/*
SVGA
/
SVPMI
mode number */
0
N/A
CARD16
HorPixel
;
/* pixels */
0
N/A
CARD16
VerPixel
;
/* lines */
0
N/A
CARD16
HorAddrLength
;
/* millimeters */
0
N/A
CARD16
VerAddrHeight
;
/* millimeters */
0
N/A
CARD8
PixelWidthRatio
;
/* gives H:V */
0
N/A
CARD8
PixelHeightRatio
;
0
N/A
CARD8
Reserved1
;
/* padding */
0
N/A
CARD8
ScanType
;
/* noninterlaced / interlaced / other*/
0
N/A
CARD8
HorSyncPolarity
;
/* negative / positive */
0
N/A
CARD8
VerSyncPolarity
;
/* negative / positive */
0
N/A
CARD16
CharacterWidth
;
/* pixels */
0
N/A
CARD32
PixelClock
;
/* kiloHertz */
0
N/A
CARD32
HorFrequency
;
/* Hertz */
0
N/A
CARD32
VerFrequency
;
/* milliHertz */
0
N/A
CARD32
HorTotalTime
;
/* nanoseconds */
0
N/A
CARD32
VerTotalTime
;
/* microseconds */
0
N/A
CARD16
HorAddrTime
;
/* nanoseconds */
0
N/A
CARD16
HorBlankStart
;
/* nanoseconds */
0
N/A
CARD16
HorBlankTime
;
/* nanoseconds */
0
N/A
CARD16
HorSyncStart
;
/* nanoseconds */
0
N/A
CARD16
HorSyncTime
;
/* nanoseconds */
0
N/A
CARD16
VerAddrTime
;
/* microseconds */
0
N/A
CARD16
VerBlankStart
;
/* microseconds */
0
N/A
CARD16
VerBlankTime
;
/* microseconds */
0
N/A
CARD16
VerSyncStart
;
/* microseconds */
0
N/A
CARD16
VerSyncTime
;
/* microseconds */
0
N/A
}
xf86VdifTimingRec
, *
xf86VdifTimingPtr
;
0
N/A
0
N/A
typedef
struct
_VDIFGamma
{
/* Gamma Table: */
0
N/A
VDIFScnHdrRec
Header
;
/* common section info */
0
N/A
CARD16
GammaTableEntries
;
/* count of grays or RGB 3-tuples */
0
N/A
CARD16
Unused1
;
0
N/A
}
xf86VdifGammaRec
, *
xf86VdifGammaPtr
;
0
N/A
0
N/A
/* access macros */
0
N/A
#
define
VDIF_OPERATIONAL_LIMITS
(
vdif
) \
0
N/A
((
xf86VdifLimitsPtr
)((
char
*)(
vdif
) + (
vdif
)->
OffsetOperationalLimits
))
0
N/A
#
define
VDIF_NEXT_OPERATIONAL_LIMITS
(
limits
)
limits
= \
0
N/A
((
xf86VdifLimitsPtr
)((
char
*)(
limits
) + (
limits
)->
OffsetNextLimits
))
0
N/A
#
define
VDIF_PREADJUSTED_TIMING
(
limits
) \
0
N/A
((
xf86VdifTimingPtr
)((
char
*)(
limits
) + (
limits
)->
Header
.
ScnLength
))
0
N/A
#
define
VDIF_NEXT_PREADJUSTED_TIMING
(
timing
)
timing
= \
0
N/A
((
xf86VdifTimingPtr
)((
char
*)(
timing
) + (
timing
)->
Header
.
ScnLength
))
0
N/A
#
define
VDIF_OPTIONS
(
vdif
) \
0
N/A
((
VDIFScnHdrPtr
)((
char
*)(
vdif
) + (
vdif
)->
OffsetOptions
))
0
N/A
#
define
VDIF_NEXT_OPTIONS
(
options
)
options
= \
0
N/A
((
xf86VdifGammaPtr
)((
char
*)(
options
) + (
options
)->
Header
.
ScnLength
))
0
N/A
#
define
VDIF_STRING
(
vdif
,
string
) \
0
N/A
((
char
*)((
char
*)
vdif
+
vdif
->
OffsetStringTable
+ (
string
)))
0
N/A
0
N/A
typedef
struct
_vdif
{
0
N/A
xf86VdifPtr
vdif
;
0
N/A
xf86VdifLimitsPtr
*
limits
;
0
N/A
xf86VdifTimingPtr
*
timings
;
0
N/A
xf86VdifGammaPtr
*
gamma
;
0
N/A
char
*
strings
;
0
N/A
}
xf86vdif
, *
xf86vdifPtr
;
0
N/A
0
N/A
#
undef
CARD32
0
N/A
0
N/A
#
endif
0
N/A