Package org.gnome.gdk
Class CicpParams.Builder<B extends CicpParams.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.CicpParams.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
CicpParams
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theCicpParams
object.setColorPrimaries
(int colorPrimaries) The color primaries to use.setMatrixCoefficients
(int matrixCoefficients) The matrix coefficients (for YUV to RGB conversion).Whether the data is using the full range of values.setTransferFunction
(int transferFunction) The transfer function to use.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theCicpParams
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toCicpParams
.- Overrides:
build
in classGObject.Builder<B extends CicpParams.Builder<B>>
- Returns:
- a new instance of
CicpParams
with the properties that were set in the Builder object.
-
setColorPrimaries
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:
colorPrimaries
- the value for thecolor-primaries
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMatrixCoefficients
The matrix coefficients (for YUV to RGB conversion).Supported values:
- 0: RGB
- 2: unspecified
- Parameters:
matrixCoefficients
- the value for thematrix-coefficients
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setRange
-
setTransferFunction
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:
transferFunction
- the value for thetransfer-function
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-