Package org.gnome.gdk
Class CicpParams.Builder<B extends CicpParams.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theCicpParamsobject.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
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theCicpParamsobject. 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:
buildin classGObject.Builder<B extends CicpParams.Builder<B>>- Returns:
- a new instance of
CicpParamswith 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-primariesproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-
setMatrixCoefficients
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:
matrixCoefficients- the value for thematrix-coefficientsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-
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-functionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.16
-