colour.models.log_encoding_ACESproxy#

colour.models.log_encoding_ACESproxy(lin_AP1: Domain1, bit_depth: Literal[10, 12] = 10, out_int: bool = False, constants: dict | None = None) Annotated[NDArrayFloat | NDArrayInt, 1][source]#

Apply the ACESproxy log encoding opto-electronic transfer function (OETF).

Parameters:
  • lin_AP1 (Domain1) – Linear AP1 colourspace value.

  • bit_depth (Literal[10, 12]) – ACESproxy bit-depth.

  • out_int (bool) – Whether to return value as int code value or float equivalent of a code value at a specified bit-depth.

  • constants (dict | None) – ACESproxy constants.

Returns:

ACESproxy non-linear encoded value.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

lin_AP1

1

1

Range

Scale - Reference

Scale - 1

ACESproxy

1

1

  • This definition has an output int switch, thus the domain-range scale information is only specified for the floating point mode.

References

[TheAoMPAaSciencesScienceaTCouncilAcademyCESACESPSubcommittee14b], [TheAoMPAaSciencesScienceaTCouncilAcademyCESACESPSubcommittee14c], [TheAoMPAaSciencesScienceaTCouncilAcademyCESACESPSubcommittee13], [TheAoMPAaSciencesScienceaTCouncilAcademyCESACESPSubcommitteea]

Examples

>>> log_encoding_ACESproxy(0.18)
np.float64(0.4164222...)
>>> log_encoding_ACESproxy(0.18, out_int=True)
np.int64(426)