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 <cmath>
13#include <array>
14
15namespace hi {
16inline namespace v1 {
17
21constexpr matrix3 Rec2020_to_XYZ = color_primaries_to_RGBtoXYZ(0.3127f, 0.3290f, 0.708f, 0.292f, 0.170f, 0.797f, 0.131f, 0.046f);
22
26constexpr matrix3 XYZ_to_Rec2020 = ~Rec2020_to_XYZ;
27
28}} // namespace hi::inline v1
29
Functions to create color conversion matrices.
constexpr matrix3 XYZ_to_Rec2020
XYZ to Rec.2020 color space conversion matrix.
Definition Rec2020.hpp:26
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:32
constexpr matrix3 Rec2020_to_XYZ
Rec.2020 to XYZ color space conversion matrix.
Definition Rec2020.hpp:21
DOXYGEN BUG.
Definition algorithm.hpp:13
geometry/margins.hpp
Definition cache.hpp:11
A 2D or 3D homogenius matrix for transforming homogenious vectors and points.
Definition matrix.hpp:33