NAME
XcmsCreateCCC, XcmsFreeCCC - creating and destroying CCCs
SYNTAX
XcmsCCC XcmsCreateCCC(Display *_d_i_s_p_l_a_y, int _s_c_r_e_e_n___n_u_m_b_e_r,
Visual *_v_i_s_u_a_l, XcmsColor *_c_l_i_e_n_t___w_h_i_t_e___p_o_i_n_t,
XcmsCompressionProc _c_o_m_p_r_e_s_s_i_o_n___p_r_o_c, XPointer
_c_o_m_p_r_e_s_s_i_o_n___c_l_i_e_n_t___d_a_t_a, XcmsWhiteAdjustProc
_w_h_i_t_e___a_d_j_u_s_t___p_r_o_c, XPointer _w_h_i_t_e___a_d_j_u_s_t___c_l_i_e_n_t___d_a_t_a);
void XcmsFreeCCC(XcmsCCC _c_c_c);
ARGUMENTS
-
_d_i_s_p_l_a_y
Specifies the connection to the X server.
-
-
_c_c_c
Specifies the CCC.
-
-
_c_l_i_e_n_t___w_h_i_t_e___p_o_i_n_t
Specifies the Client White Point.
-
If NULL is specified,
the Client White Point is to be assumed to be the same as the
Screen White Point.
Note that the pixel member is ignored.
-
_c_o_m_p_r_e_s_s_i_o_n___c_l_i_e_n_t___d_a_t_a
Specifies client data for use by the gamut compression procedure or NULL.
-
-
_c_o_m_p_r_e_s_s_i_o_n___p_r_o_c
Specifies the gamut compression procedure that is to be applied
-
when a color lies outside the screen's color gamut.
If NULL is specified and a function using this CCC must convert
a color specification to a device-dependent format and encounters a color
that lies outside the screen's color gamut,
that function will return
_X_c_m_s_F_a_i_l_u_r_e.
-
_s_c_r_e_e_n___n_u_m_b_e_r
Specifies the appropriate screen number on the host server.
-
-
_v_i_s_u_a_l
Specifies the visual type.
-
-
_w_h_i_t_e___a_d_j_u_s_t___c_l_i_e_n_t___d_a_t_a
Specifies client data for use with the white point adjustment procedure or NULL.
-
-
_w_h_i_t_e___a_d_j_u_s_t___p_r_o_c
Specifies the white adjustment procedure that is to be applied
-
when the Client White Point differs from the Screen White Point.
NULL indicates that no white point adjustment is desired.
DESCRIPTION
The
_X_c_m_s_C_r_e_a_t_e_C_C_C
function creates a CCC for the specified display, screen, and visual.
The
_X_c_m_s_F_r_e_e_C_C_C
function frees the memory used for the specified CCC.
Note that default CCCs and those currently associated with colormaps
are ignored.
SEE ALSO
DisplayOfCCC(3X11),
XcmsCCCOfColormap(3X11),
XcmsConvertColors(3X11),
XcmsDefaultCCC(3X11),
XcmsSetWhitePoint(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e