HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Rec2020.hpp
Go to the documentation of this file.
1// Copyright Take Vos 2021-2022.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
9#pragma once
10
11#include "color_space.hpp"
12#include "../geometry/geometry.hpp"
13#include "../macros.hpp"
14#include <cmath>
15#include <array>
16
17hi_export_module(hikogui.color.Rec2020);
18
19hi_export namespace hi {
20inline namespace v1 {
21
25constexpr matrix3 Rec2020_to_XYZ = color_primaries_to_RGBtoXYZ(0.3127f, 0.3290f, 0.708f, 0.292f, 0.170f, 0.797f, 0.131f, 0.046f);
26
30constexpr matrix3 XYZ_to_Rec2020 = ~Rec2020_to_XYZ;
31
32}} // namespace hi::inline v1
33
Functions to create color conversion matrices.
constexpr matrix3 XYZ_to_Rec2020
XYZ to Rec.2020 color space conversion matrix.
Definition Rec2020.hpp:30
constexpr matrix3 color_primaries_to_RGBtoXYZ(float wx, float wy, float rx, float ry, float gx, float gy, float bx, float by) noexcept
Create a color space conversion matrix.
Definition color_space.hpp:36
constexpr matrix3 Rec2020_to_XYZ
Rec.2020 to XYZ color space conversion matrix.
Definition Rec2020.hpp:25
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
A 2D or 3D homogenius matrix for transforming homogenious vectors and points.
Definition matrix3.hpp:36