Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_hdr_metadata.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KIS_HDR_METADATA_H
7#define KIS_HDR_METADATA_H
8
9#include <QPointF>
10#include <KoColorimetryUtils.h>
11#include <boost/operators.hpp>
12
13#include "kritaimage_export.h"
20struct KRITAIMAGE_EXPORT KisRelativeContentLightLevelInformation: public boost::equality_comparable<KisRelativeContentLightLevelInformation> {
24 double maxContentLightLevel = 0.0;
25
30 double maxFrameAverageLightLevel = 0.0;
31
35 RGBComponent
36 };
37
38 CalculationType type = XYZLuminance;
39
40 bool operator==(const KisRelativeContentLightLevelInformation & other) const;;
41};
42
48struct KRITAIMAGE_EXPORT KisColorVolumeInformation: public boost::equality_comparable<KisColorVolumeInformation> {
53
54 double maxLuminance = 0.0;
55 double minLuminance = 0.0;
56
57 bool operator==(const KisColorVolumeInformation & other) const;;
58
59 static const KisColorVolumeInformation BT2100PQ;
60 static const KisColorVolumeInformation DCIP3D65;
61};
62
64
65#endif // KIS_HDR_METADATA_H
bool operator==(const KisRegion &lhs, const KisRegion &rhs)
Q_DECLARE_METATYPE(KisRelativeContentLightLevelInformation::CalculationType)
The KisColorVolumeInformation class is a struct that represents the 'mastering' display....
KoColorimetryUtils::xy blue
xyY location of the blue colorant.
KoColorimetryUtils::xy white
xyY location of the whitepoint.
KoColorimetryUtils::xy red
xyY location of the red colorant.
KoColorimetryUtils::xy green
xyY location of the green colorant.
@ XYZLuminance
Calculate luminance by converting to xyz.
@ Rec2020Component
Calculate luminance by converting to rec2020.