deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define CARD32 unsigned int /* ... on all supported platforms */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD32 Checksum; /* sum of all bytes in the file after*/
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync /* this field */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD16 VDIFRevision; /* structure revision number */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD16 DateManufactured[3]; /* date Year/Month/Day */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD32 Manufacturer; /* ASCII ID of the manufacturer */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD32 MinVDIFIndex; /* ASCII ID of Minimum VDIF index */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD32 Version; /* ASCII ID of the model version */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD32 SerialNumber; /* ASCII ID of the serial number */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD16 WhitePoint_x; /* WhitePoint in CIExyY (scale 1000) */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD16 RedChromaticity_x; /* Red chromaticity in x,y */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD16 GreenChromaticity_x; /* Green chromaticity in x,y */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD16 BlueChromaticity_x; /* Blue chromaticity in x,y */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD16 RedGamma; /* Gamme curve exponent (scale 1000) */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD32 NumberOptions; /* optinal sections (gamma table) */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsynctypedef enum { /* Tags for section identification */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsynctypedef struct _VDIFScnHdr { /* Generic Section Header: */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD32 ScnTag; /* tag for section identification */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsynctypedef struct _VDIFLimits { /* Operational Limits: */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD8 SyncConfiguration; /* separate / composite / other */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsynctypedef struct _VDIFTiming { /* Preadjusted Timing: */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD32 PreadjustedTimingName; /* SVGA/SVPMI mode number */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD8 ScanType; /* noninterlaced / interlaced / other*/
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync CARD16 GammaTableEntries; /* count of grays or RGB 3-tuples */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync/* access macros */
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync((xf86VdifLimitsPtr)((char*)(vdif) + (vdif)->OffsetOperationalLimits))
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define VDIF_NEXT_OPERATIONAL_LIMITS(limits) limits = \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync ((xf86VdifLimitsPtr)((char*)(limits) + (limits)->OffsetNextLimits))
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync((xf86VdifTimingPtr)((char*)(limits) + (limits)->Header.ScnLength))
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#define VDIF_NEXT_PREADJUSTED_TIMING(timing) timing = \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync ((xf86VdifTimingPtr)((char*)(timing) + (timing)->Header.ScnLength))
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync ((VDIFScnHdrPtr)((char*)(vdif) + (vdif)->OffsetOptions))
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync ((xf86VdifGammaPtr)((char*)(options) + (options)->Header.ScnLength))
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync ((char*)((char*)vdif + vdif->OffsetStringTable + (string)))