Class CicpParams.Builder<B extends CicpParams.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
CicpParams

public static class CicpParams.Builder<B extends CicpParams.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
4.16
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public CicpParams build()
      Finish building the CicpParams object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to CicpParams.
      Overrides:
      build in class GObject.Builder<B extends CicpParams.Builder<B>>
      Returns:
      a new instance of CicpParams with the properties that were set in the Builder object.
    • setColorPrimaries

      public B setColorPrimaries(int colorPrimaries)

      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 the color-primaries property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.16
    • setMatrixCoefficients

      public B setMatrixCoefficients(int matrixCoefficients)

      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 the matrix-coefficients property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.16
    • setRange

      public B setRange(CicpRange range)

      Whether the data is using the full range of values.

      The range of the data.

      Parameters:
      range - the value for the range property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.16
    • setTransferFunction

      public B setTransferFunction(int transferFunction)

      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 the transfer-function property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.16