XcmsWhiteAdjustProc()XcmsWhiteAdjustProc()NameXcmsWhiteAdjustProc – interface definition for the white point adjust‐
ment procedure.
Synopsis
typedef Status (*XcmsWhiteAdjustProc)(ccc, initial_white_point,
target_white_point, target_format, colors_in_out, ncolors,
compression_flags_return)
XcmsCCC ccc;
XcmsColor *initial_white_point;
XcmsColor *target_white_point;
XcmsColorFormat target_format;
XcmsColor colors_in_out[];
unsigned int ncolors;
Bool compression_flags_return[];
Arguments
ccc Specifies the color conversion context.
initial_white_point
Specifies the initial white point.
target_white_point
Specifies the target white point.
target_format
Specifies the target color specification format.
colors_in_out
Specifies an array of color specifications. Pixel members
are ignored and remain unchanged upon return.
ncolors Specifies the number of XcmsColor structures in the color
specification array.
compression_flags_return
Specifies an array of Boolean values (or NULL) for returned
information that indicates if the color was compressed. For
example, if this routine returns XcmsSuccessWithCompression
and compression_flags_
return[3] is True, this indicates that the fourth color spec‐
ified in the color specification array was compressed. If
the calling routine is not interested in knowing which color
was compressed when the return value is XcmsSuccessWithCom‐
pression, it is allowed to pass a NULL for this argument.
Returns
Zero on failure, non-zero on success.
Availability
Release 5 and later.
DescriptionXcmsWhiteAdjustProc is a function that takes the color specifications,
whose associated white point is initial_white_point, and modifies them
for the target_white_point; returning the color specifications in the
format specified by target_format.
See AlsoXcmsSetWhiteAdjustProc().
Xlib - Device-independent Color XcmsWhiteAdjustProc()