HdrStaticMetadata

data class HdrStaticMetadata(val masteringPrimaries: DisplayPrimaries? = null, val masteringMinNits: Float? = null, val masteringMaxNits: Float? = null, val maxContentLightNits: Int? = null, val maxFrameAverageNits: Int? = null)

The static HDR metadata of a stream or a frame: the display it was graded on, as SMPTE ST 2086 describes it, and how bright the content gets, as CTA-861.3 describes it. A tone mapper reads the content's real peak from it instead of assuming one. Every field is null when the source did not say.

Constructors

Link copied to clipboard
constructor(masteringPrimaries: DisplayPrimaries? = null, masteringMinNits: Float? = null, masteringMaxNits: Float? = null, maxContentLightNits: Int? = null, maxFrameAverageNits: Int? = null)

Properties

Link copied to clipboard

The mastering display's peak white, in nits.

Link copied to clipboard

The mastering display's darkest black, in nits.

Link copied to clipboard

The mastering display's primaries and white point.

Link copied to clipboard

The brightest pixel of the content, in nits: MaxCLL.

Link copied to clipboard

The brightest frame average of the content, in nits: MaxFALL.

Link copied to clipboard

The content's peak for a tone map, in nits: the brightest pixel when it is between 100 and 10000 nits, else the mastering display's peak in that range, else null. The brightest pixel comes first because it measures the content, where the mastering peak describes a display, as mpv's renderer also takes it.