pixfmt-008.rst 742 B

1234567891011121314151617181920212223242526272829303132
  1. .. -*- coding: utf-8; mode: rst -*-
  2. ***************************************
  3. Detailed Transfer Function Descriptions
  4. ***************************************
  5. .. _xf-smpte-2084:
  6. Transfer Function SMPTE 2084 (V4L2_XFER_FUNC_SMPTE2084)
  7. =======================================================
  8. The :ref:`smpte2084` standard defines the transfer function used by
  9. High Dynamic Range content.
  10. Constants:
  11. m1 = (2610 / 4096) / 4
  12. m2 = (2523 / 4096) * 128
  13. c1 = 3424 / 4096
  14. c2 = (2413 / 4096) * 32
  15. c3 = (2392 / 4096) * 32
  16. Transfer function:
  17. L' = ((c1 + c2 * L\ :sup:`m1`) / (1 + c3 * L\ :sup:`m1`))\ :sup:`m2`
  18. Inverse Transfer function:
  19. L = (max(L':sup:`1/m2` - c1, 0) / (c2 - c3 *
  20. L'\ :sup:`1/m2`))\ :sup:`1/m1`