It derives from <GObject>.
Contains the parameters that define a colorstate with cicp parameters.
Cicp parameters are specified in the ITU-T H.273 specification.
See the documentation of individual properties for supported values.
The ’unspecified’ value (2) is not treated in any special way, and must be replaced by a different value before creating a color state.
<GdkCicpParams> can be used as a builder object
to construct a color state from Cicp data with cicp-params:build-color-state. The function will
return an error if the given parameters are not supported.
You can obtain a <GdkCicpParams> object from a
color state with color-state:create-cicp-params. This can be used
to create a variant of a color state, by changing just one of the cicp
parameters, or just to obtain information about the color state.
The color primaries to use.
Supported values:
Its value is an unsigned 32-bit integer.
Set it with (set! (cicp-params:color-primaries self) value).
The matrix coefficients (for YUV to RGB conversion).
Supported values:
Its value is an unsigned 32-bit integer.
Set it with (set! (cicp-params:matrix-coefficients self) value).
Whether the data is using the full range of values.
The range of the data.
Its value is a <GdkCicpRange> (or, to set it,
one of its symbols).
Set it with (set! (cicp-params:range self) value).
The transfer function to use.
Supported values:
Its value is an unsigned 32-bit integer.
Set it with (set! (cicp-params:transfer-function self) value).
Creates a new <GdkColorState> object for the
cicp parameters in self.
Note that this may fail if the cicp parameters in self are not
supported by GTK. In that case, NULL is returned, and
error is set with an error message that can be presented to the
user.
Passed: a <GdkCicpParams>.
Returned: a <GdkColorState>.
A newly allocated <GdkColorState>
Returns the value of the color-primaries property of self.
Passed: a <GdkCicpParams>.
Returned: an unsigned 32-bit integer.
the color-primaries value
Gets the matrix-coefficients property of self.
Passed: a <GdkCicpParams>.
Returned: an unsigned 32-bit integer.
the matrix-coefficients value
Gets the range property of self.
Passed: a <GdkCicpParams>.
Returned: a <GdkCicpRange>.
the range value
Gets the transfer-function property of self.
Passed: a <GdkCicpParams>.
Returned: an unsigned 32-bit integer.
the transfer-function value
Creates a new <GdkCicpParams> object.
The initial values of the properties are the values for "undefined" and need to be set before a color state object can be built.
Returned: a <GdkCicpParams>.
a new <GdkCicpParams>
Sets the color-primaries property of self.
Passed: a <GdkCicpParams>.
Passed: an unsigned 32-bit integer.
the new color primaries value
self a <GdkCicpParams> Sets the
matrix-coefficients property of self.
Passed: a <GdkCicpParams>.
Passed: an unsigned 32-bit integer.
the new matrix-coefficients value
Sets the range property of self
Passed: a <GdkCicpParams>.
a GdkCipParams
Passed: a <GdkCicpRange>, or one of its symbols.
the range value
Sets the transfer-function property of self.
Passed: a <GdkCicpParams>.
Passed: an unsigned 32-bit integer.
the new transfer-function value