Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (104 KB)
Chapter 5 Data StructuresThis chapter describes the data structures used by Calibrator Tool. KCMSCDatatypedef struct _KCMSCData {
int size; /* number of data sets */
KcsCalibrationData ** data; /* pointers to data sets */ }
KCMSCData;
KCMSCData is a structure that collects data. For monitor calibration, the size element must be equivalent in value to numVisuals in the KCMSCVisuals structure. (For more information on numVisuals, see "KCMSCVisuals" in this chapter.) The members in this structure are described below:
KCMSCVisualstypedef struct _KCMSCVisuals {
Display * display;
int screen;
int numVisuals; /* dynamic array size */
XVisualInfo ** visuals; /* visuals to get data for */
} KCMSCVisuals;
KCMSCVisuals is a structure that identifies to the loadable module the display and visuals upon which to perform measurements. The members in this structure are described below:
XVisualInfoThe XVisualInfo structure has the format shown below. For details on the members of this structure, see the XLib Programming Manual. typedef struct {
Visual* visual;
VisualID visualid;
int screen_num;
unsigned int depth;
int class;
unsigned long red_mask;
unsigned long green_mask;
unsigned long blue_mask;
int colormap_size; /* Same as map_entries member of Visual */
int bits_per_rgb;
} XVisualInfo;
|
||||||||||||