Class: Gdk::CicpParams

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Gdk::CicpParams

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.

Instance Method Details

#build_color_state ⇒ Gdk::ColorState

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.

Returns:

  • (Gdk::ColorState) —

    A newly allocated GdkColorState

#color_primaries ⇒ Integer

The color primaries to use.

Supported values:

  • 1: BT.709 / sRGB
  • 2: unspecified
  • 5: PAL
  • 6,7: BT.601 / NTSC
  • 9: BT.2020
  • 12: Display P3

Returns:

  • (Integer) —

    color-primaries

#color_primaries=(color_primaries) ⇒ Integer

The color primaries to use.

Supported values:

  • 1: BT.709 / sRGB
  • 2: unspecified
  • 5: PAL
  • 6,7: BT.601 / NTSC
  • 9: BT.2020
  • 12: Display P3

Parameters:

  • color_primaries (Integer)

Returns:

  • (Integer) —

    color-primaries

  • (Integer) —

    color-primaries

#matrix_coefficients ⇒ Integer

The matrix coefficients (for YUV to RGB conversion).

Supported values:

  • 0: RGB
  • 1: BT.709
  • 2: unspecified
  • 5,6: BT.601
  • 9: BT.2020

Returns:

  • (Integer) —

    matrix-coefficients

#matrix_coefficients=(matrix_coefficients) ⇒ Integer

The matrix coefficients (for YUV to RGB conversion).

Supported values:

  • 0: RGB
  • 1: BT.709
  • 2: unspecified
  • 5,6: BT.601
  • 9: BT.2020

Parameters:

  • matrix_coefficients (Integer)

Returns:

  • (Integer) —

    matrix-coefficients

  • (Integer) —

    matrix-coefficients

#range ⇒ Gdk::CicpRange

Whether the data is using the full range of values.

The range of the data.

Returns:

#range=(range) ⇒ Gdk::CicpRange

Whether the data is using the full range of values.

The range of the data.

Parameters:

Returns:

#transfer_function ⇒ Integer

The transfer function to use.

Supported values:

  • 1,6,14,15: BT.709, BT.601, BT.2020
  • 2: unspecified
  • 4: gamma 2.2
  • 5: gamma 2.8
  • 8: linear
  • 13: sRGB
  • 16: BT.2100 PQ
  • 18: BT.2100 HLG

Returns:

  • (Integer) —

    transfer-function

#transfer_function=(transfer_function) ⇒ Integer

The transfer function to use.

Supported values:

  • 1,6,14,15: BT.709, BT.601, BT.2020
  • 2: unspecified
  • 4: gamma 2.2
  • 5: gamma 2.8
  • 8: linear
  • 13: sRGB
  • 16: BT.2100 PQ
  • 18: BT.2100 HLG

Parameters:

  • transfer_function (Integer)

Returns:

  • (Integer) —

    transfer-function

  • (Integer) —

    transfer-function