Class

TransferParameters

Defines the parameters for the ICC parametric curve type 4, as defined in ICC.1:2004-10, section 10.15.

Source set: Common
public data class TransferParameters(
    /** Value g in the equation of the EOTF described above. */
    public val gamma: Double,
    /** Value a in the equation of the EOTF described above. */
    public val a: Double,
    /** Value b in the equation of the EOTF described above. */
    public val b: Double,
    /** Value c in the equation of the EOTF described above. */
    public val c: Double,
    /** Value d in the equation of the EOTF described above. */
    public val d: Double,
    /** Value e in the equation of the EOTF described above. */
    public val e: Double = 0.0,
    /** Value f in the equation of the EOTF described above. */
    public val f: Double = 0.0,
)

Defines the parameters for the ICC parametric curve type 4, as defined in ICC.1:2004-10, section 10.15.

The EOTF is of the form linked here

The corresponding OETF is simply the inverse function.

The parameters defined by this class form a valid transfer function only if all the following conditions are met:

  • No parameter is a Not-a-Number
  • d is in the range `0..1`
  • The function is not constant
  • The function is positive and increasing
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: