colour.models.log_encoding_ACESproxy

colour.models.log_encoding_ACESproxy(lin_AP1, bit_depth=10, out_int=False, constants={10: {'CV_max': 940, 'CV_min': 64, 'mid_CV_offset': 425, 'mid_log_offset': 2.5, 'steps_per_stop': 50}, 12: {'CV_max': 3760, 'CV_min': 256, 'mid_CV_offset': 1700, 'mid_log_offset': 2.5, 'steps_per_stop': 200}})[source]

Defines the ACESproxy colourspace log encoding curve / opto-electronic transfer function.

Parameters:
  • lin_AP1 (numeric or array_like) – lin_AP1 value.
  • bit_depth (int, optional) – {10, 12}, ACESproxy bit depth.
  • out_int (bool, optional) – Whether to return value as integer code value or float equivalent of a code value at a given bit depth.
  • constants (Structure, optional) – ACESproxy constants.
Returns:

ACESproxy non-linear value.

Return type:

numeric or ndarray

Notes

Domain * Scale - Reference Scale - 1
lin_AP1 [0, 1] [0, 1]
Range * Scale - Reference Scale - 1
ACESproxy [0, 1] [0, 1]
  • * This definition has an output integer switch, thus the domain-range scale information is only given for the floating point mode.

References

[TheAcademyofMotionPictureArtsandSciences2014q], [TheAcademyofMotionPictureArtsandSciences2014r], [TheAcademyofMotionPictureArtsandSciences2014s], [TheAcademyofMotionPictureArtsandSciencese]

Examples

>>> log_encoding_ACESproxy(0.18)  # doctest: +ELLIPSIS
0.4164222...
>>> log_encoding_ACESproxy(0.18, out_int=True)
426