Type Method

HDR10MetadataWithDisplayInfo:contentInfo:opticalOutputScale:

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

Declaration

+ (CAEDRMetadata *)HDR10MetadataWithDisplayInfo:(NSData *)displayData contentInfo:(NSData *)contentData opticalOutputScale:(float)scale;

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).

contentInfo

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

opticalOutputScale

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

+ HDR10MetadataWithMinLuminance:maxLuminance:opticalOutputScale:

Creates EDR metadata for HDR10 content based on the luminance characteristics of a mastering display.