0.9.9 API documenation: color_encoding.hpp Source File

| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

color_encoding.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependencies
17 #include "../detail/setup.hpp"
18 #include "../detail/precision.hpp"
19 #include "../vec3.hpp"
20 #include <limits>
21
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTC_color_encoding extension included")
24 #endif
25
26 namespace glm
27 {
30
32 template <typename T, precision P>
33 GLM_FUNC_DECL tvec3<T, P> convertLinearSRGBToD65XYZ(tvec3<T, P> const& ColorLinearSRGB);
34
36 template <typename T, precision P>
37 GLM_FUNC_DECL tvec3<T, P> convertD65XYZToLinearSRGB(tvec3<T, P> const& ColorD65XYZ);
38
40 template <typename T, precision P>
41 GLM_FUNC_DECL tvec3<T, P> convertD50XYZToD65XYZ(tvec3<T, P> const& ColorD50XYZ);
42
44 template <typename T, precision P>
45 GLM_FUNC_DECL tvec3<T, P> convertD65XYZToD50XYZ(tvec3<T, P> const& ColorD65XYZ);
46
48 } //namespace glm
49
50 #include "color_encoding.inl"
glm::convertLinearSRGBToD65XYZ
GLM_FUNC_DECL tvec3< T, P > convertLinearSRGBToD65XYZ(tvec3< T, P > const &ColorLinearSRGB)
Convert a linear sRGB color to D65 YUV.
glm::convertD50XYZToD65XYZ
GLM_FUNC_DECL tvec3< T, P > convertD50XYZToD65XYZ(tvec3< T, P > const &ColorD50XYZ)
Convert a D50 YUV color to D65 YUV.
glm::convertD65XYZToD50XYZ
GLM_FUNC_DECL tvec3< T, P > convertD65XYZToD50XYZ(tvec3< T, P > const &ColorD65XYZ)
Convert a D65 YUV color to D50 YUV.
glm
Definition: _noise.hpp:11
glm::convertD65XYZToLinearSRGB
GLM_FUNC_DECL tvec3< T, P > convertD65XYZToLinearSRGB(tvec3< T, P > const &ColorD65XYZ)
Convert a D65 YUV color to linear sRGB.