CicpParams

open class CicpParams(pointer: <Error class: unknown class><<Error class: unknown class>>)

The GdkCicpParams struct contains the parameters that define a colorstate according to 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 method@Gdk.CicpParams.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 method@Gdk.ColorState.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.

Since

4.16

Constructors

Link copied to clipboard
constructor()

Creates a new GdkCicpParams object.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var colorPrimaries: <Error class: unknown class>

The color primaries to use.

Link copied to clipboard
val gdkCicpParamsPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var matrixCoefficients: <Error class: unknown class>

The matrix coefficients (for YUV to RGB conversion).

Link copied to clipboard
open var range: CicpRange

Whether the data is using the full range of values.

Link copied to clipboard
open var transferFunction: <Error class: unknown class>

The transfer function to use.

Functions

Link copied to clipboard
open fun buildColorState(): <Error class: unknown class><ColorState?>

Creates a new GdkColorState object for the cicp parameters in @self.