Blender V4.5
OCIO_matrix.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9namespace blender::ocio {
10
11/* Standard XYZ (D65) to linear Rec.709 transform. */
12static const float3x3 XYZ_TO_REC709{{3.2404542f, -0.9692660f, 0.0556434f},
13 {-1.5371385f, 1.8760108f, -0.2040259f},
14 {-0.4985314f, 0.0415560f, 1.0572252f}};
15
16/* Standard ACES to XYZ (D65) transform.
17 * Matches OpenColorIO builtin transform: UTILITY - ACES-AP0_to_CIE-XYZ-D65_BFD. */
18static const float3x3 ACES_TO_XYZ = {{0.938280f, 0.337369f, 0.001174f},
19 {-0.004451f, 0.729522f, -0.003711f},
20 {0.016628f, -0.066890f, 1.091595f}};
21
22} // namespace blender::ocio
static const float3x3 ACES_TO_XYZ
static const float3x3 XYZ_TO_REC709
MatBase< float, 3, 3 > float3x3