Table of Contents

Class HdrMetadata

Namespace
Egami.Colors
Assembly
Egami.dll

What an HDR file says about the display it was mastered on and the light levels in it (SMPTE ST 2086 and CTA-861.3, as PNG's mDCV and cLLI chunks store them). Tone mapping takes its source peak from here. Luminances are in cd/m².

public sealed record HdrMetadata : IEquatable<HdrMetadata>
Inheritance
HdrMetadata
Implements
Inherited Members

Examples

// What an HDR file says about its mastering display and light levels, alongside its code points.
RasterMetadata metadata = raster.Metadata;
double? peak = metadata.Hdr?.MaxContentLightLevel ?? metadata.Hdr?.MasteringMaxLuminance;
bool pq = metadata.GetColorProfile().IsHdr;

Properties

MasteringMaxLuminance

Gets the mastering display's peak luminance, or null.

public double? MasteringMaxLuminance { get; init; }

Property Value

double?

MasteringMinLuminance

Gets the mastering display's black luminance, or null.

public double? MasteringMinLuminance { get; init; }

Property Value

double?

MasteringPrimaries

Gets the mastering display's primaries and white point, or null.

public ColorPrimaries? MasteringPrimaries { get; init; }

Property Value

ColorPrimaries

MaxContentLightLevel

Gets the maximum content light level (MaxCLL): the brightest pixel's luminance, or null.

public double? MaxContentLightLevel { get; init; }

Property Value

double?

MaxFrameAverageLightLevel

Gets the maximum frame-average light level (MaxFALL), or null.

public double? MaxFrameAverageLightLevel { get; init; }

Property Value

double?