Contents

hdr10(displayInfo:contentInfo:opticalOutputScale:)

Creates EDR metadata for HDR10 content based on mastering display color information and content light levels.

Declaration

class func hdr10(displayInfo displayData: Data?, contentInfo contentData: Data?, opticalOutputScale scale: Float) -> CAEDRMetadata

Parameters

  • displayData:

    A value of 24 bytes that contains a big-endian structure, as defined in D.2.28 (Mastering Display Colour Volume SEI message).

  • contentData:

    A value of 4 bytes that contains a big-endian structure, as defined in D.2.35 (Content Light Level Information SEI message).

  • scale:

    A scale factor relating (display-referred linear) EDR values to the optical output of the reference display.

Discussion

The MDCV and CLLI message formats are defined in ISO/IEC 23008-2:2017.

The values in the drawable’s texture are assumed to be proportional to the optical output (in cd/m^2) of the reference display. For example, if the optical output scale is 100, then a value of 1.0 is assumed to be 100 nits.

See Also

Retrieving HDR10 Metadata