ContentLightLevel Class

An immutable content light level (CTA-861.3, the clli box of ISO/IEC 14496-12): the upper bounds of the light level of high dynamic range content, in candelas per square meter.

public sealed class ContentLightLevel : IEquatable<ContentLightLevel>

Remarks

The values are stored as the file declares them and describe the pixels as they were mastered: no operation computes them from the pixels. A value of 0 means that the bound is unknown. Every value is accepted, so that a description round-trips unchanged.

Implements

Constructors

NameDescription
ContentLightLevel(ushort, ushort)Initializes a new instance of the ContentLightLevel class.

ContentLightLevel(ushort, ushort)

ContentLightLevel.cs

Initializes a new instance of the ContentLightLevel class.

public ContentLightLevel(ushort maxContentLightLevel, ushort maxPictureAverageLightLevel)

Parameters

maxContentLightLevel ushort
The light level of the brightest pixel of the content, in candelas per square meter, or 0 when unknown.
maxPictureAverageLightLevel ushort
The largest average light level of a picture of the content, in candelas per square meter, or 0 when unknown.

Properties

NameDescription
MaxContentLightLevelGets the light level of the brightest pixel of the content (MaxCLL), in candelas per square meter, or 0 when unknown.
MaxPictureAverageLightLevelGets the largest average light level of a picture of the content (MaxPALL or MaxFALL), in candelas per square meter, or 0 when unknown.

MaxContentLightLevel

ContentLightLevel.cs

Gets the light level of the brightest pixel of the content (MaxCLL), in candelas per square meter, or 0 when unknown.

public ushort MaxContentLightLevel { get; }

Property value

ushort

MaxPictureAverageLightLevel

ContentLightLevel.cs

Gets the largest average light level of a picture of the content (MaxPALL or MaxFALL), in candelas per square meter, or 0 when unknown.

public ushort MaxPictureAverageLightLevel { get; }

Property value

ushort

Methods

NameDescription
Equals(ContentLightLevel?)Indicates whether the current object is equal to another object of the same type.
Equals(object?)Determines whether the specified object is equal to the current object.
GetHashCode()Serves as the default hash function.
ToString()Returns a string that represents the current object.

Equals overloads

Equals(ContentLightLevel?)

ContentLightLevel.cs

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ContentLightLevel? other)
Parameters
other ContentLightLevel?
An object to compare with this object.
Returns

bool true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

ContentLightLevel.cs

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)
Parameters
obj object?
The object to compare with the current object.
Returns

bool true if the specified object is equal to the current object; otherwise, false.

Serves as the default hash function.

public override int GetHashCode()

Returns

int A hash code for the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.