0.9.9 API documenation
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/qualifier.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, qualifier P>
33  GLM_FUNC_DECL vec<3, T, P> convertLinearSRGBToD65XYZ(vec<3, T, P> const& ColorLinearSRGB);
34 
36  template<typename T, qualifier P>
37  GLM_FUNC_DECL vec<3, T, P> convertLinearSRGBToD50XYZ(vec<3, T, P> const& ColorLinearSRGB);
38 
40  template<typename T, qualifier P>
41  GLM_FUNC_DECL vec<3, T, P> convertD65XYZToLinearSRGB(vec<3, T, P> const& ColorD65XYZ);
42 
44  template<typename T, qualifier P>
45  GLM_FUNC_DECL vec<3, T, P> convertD65XYZToD50XYZ(vec<3, T, P> const& ColorD65XYZ);
46 
48 } //namespace glm
49 
50 #include "color_encoding.inl"
GLM_FUNC_DECL vec< 3, T, P > convertLinearSRGBToD50XYZ(vec< 3, T, P > const &ColorLinearSRGB)
Convert a linear sRGB color to D50 YUV.
GLM_FUNC_DECL vec< 3, T, P > convertD65XYZToD50XYZ(vec< 3, T, P > const &ColorD65XYZ)
Convert a D65 YUV color to D50 YUV.
Definition: _noise.hpp:11
GLM_FUNC_DECL vec< 3, T, P > convertD65XYZToLinearSRGB(vec< 3, T, P > const &ColorD65XYZ)
Convert a D65 YUV color to linear sRGB.
GLM_FUNC_DECL vec< 3, T, P > convertLinearSRGBToD65XYZ(vec< 3, T, P > const &ColorLinearSRGB)
Convert a linear sRGB color to D65 YUV.