Krita Source Code Documentation
Loading...
Searching...
No Matches
KisRelativeContentLightLevelInformation Struct Reference

#include <kis_hdr_metadata.h>

+ Inheritance diagram for KisRelativeContentLightLevelInformation:

Public Types

enum  CalculationType { XYZLuminance , Rec2020Component , RGBComponent }
 

Public Member Functions

bool operator== (const KisRelativeContentLightLevelInformation &other) const
 

Public Attributes

double maxContentLightLevel = 0.0
 
double maxFrameAverageLightLevel = 0.0
 maxFrameAverage MaxFrameAverageLightLevel or MaxFALL is the average of average pixel brightnesses in the frame sequence.
 
CalculationType type = XYZLuminance
 

Detailed Description

KisRelativeContentLightLevelInformation is a struct that represents HDR10 metadata. It is similar to the same values in MasteringInfo in KisSurfaceColorimetry.h, though typically relative to the diffuse white.

Definition at line 20 of file kis_hdr_metadata.h.

Member Enumeration Documentation

◆ CalculationType

Enumerator
XYZLuminance 

Calculate luminance by converting to xyz.

Rec2020Component 

Calculate luminance by converting to rec2020.

RGBComponent 

Calculate luminance on the RGB components if possible.

Definition at line 32 of file kis_hdr_metadata.h.

32 {
36 };
@ XYZLuminance
Calculate luminance by converting to xyz.
@ Rec2020Component
Calculate luminance by converting to rec2020.
@ RGBComponent
Calculate luminance on the RGB components if possible.

Member Function Documentation

◆ operator==()

bool KisRelativeContentLightLevelInformation::operator== ( const KisRelativeContentLightLevelInformation & other) const

Definition at line 13 of file kis_hdr_metadata.cpp.

13 {
16 && (type == other.type);
17}
static bool qFuzzyCompare(half p1, half p2)
double maxFrameAverageLightLevel
maxFrameAverage MaxFrameAverageLightLevel or MaxFALL is the average of average pixel brightnesses in ...

References maxContentLightLevel, maxFrameAverageLightLevel, qFuzzyCompare(), and type.

Member Data Documentation

◆ maxContentLightLevel

double KisRelativeContentLightLevelInformation::maxContentLightLevel = 0.0

MaxContentLightLevel or MaxCLL is the brightest pixel in the frame sequence.

Definition at line 24 of file kis_hdr_metadata.h.

◆ maxFrameAverageLightLevel

double KisRelativeContentLightLevelInformation::maxFrameAverageLightLevel = 0.0

maxFrameAverage MaxFrameAverageLightLevel or MaxFALL is the average of average pixel brightnesses in the frame sequence.

Definition at line 30 of file kis_hdr_metadata.h.

◆ type

CalculationType KisRelativeContentLightLevelInformation::type = XYZLuminance

Definition at line 38 of file kis_hdr_metadata.h.


The documentation for this struct was generated from the following files: