Class: Gdk::CicpParams
- Inherits:
-
Object
- Object
- Gdk::CicpParams
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#build_color_state ⇒ Gdk::ColorState
Creates a new
GdkColorStateobject for the cicp parameters in self. -
#color_primaries ⇒ Integer
The color primaries to use.
-
#color_primaries=(color_primaries) ⇒ Integer
The color primaries to use.
-
#initialize ⇒ Gdk::CicpParams
constructor
Creates a new
GdkCicpParamsobject. -
#matrix_coefficients ⇒ Integer
The matrix coefficients (for YUV to RGB conversion).
-
#matrix_coefficients=(matrix_coefficients) ⇒ Integer
The matrix coefficients (for YUV to RGB conversion).
-
#range ⇒ Gdk::CicpRange
Whether the data is using the full range of values.
-
#range=(range) ⇒ Gdk::CicpRange
Whether the data is using the full range of values.
-
#transfer_function ⇒ Integer
The transfer function to use.
-
#transfer_function=(transfer_function) ⇒ Integer
The transfer function to use.
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.
#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
#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
#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
#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
#range ⇒ Gdk::CicpRange
Whether the data is using the full range of values.
The range of the data.
#range=(range) ⇒ Gdk::CicpRange
Whether the data is using the full range of values.
The range of the data.
#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
#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