1.0.0 API documentation: color_space_YCoCg.hpp Source File

| 1.0.0 API documentation

color_space_YCoCg.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17
18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_color_space_YCoCg is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20 #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
21 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")
22 #endif
23
24 namespace glm
25 {
28
31 template<typename T, qualifier Q>
32 GLM_FUNC_DECL vec<3, T, Q> rgb2YCoCg(
33 vec<3, T, Q> const& rgbColor);
34
37 template<typename T, qualifier Q>
38 GLM_FUNC_DECL vec<3, T, Q> YCoCg2rgb(
39 vec<3, T, Q> const& YCoCgColor);
40
44 template<typename T, qualifier Q>
45 GLM_FUNC_DECL vec<3, T, Q> rgb2YCoCgR(
46 vec<3, T, Q> const& rgbColor);
47
51 template<typename T, qualifier Q>
52 GLM_FUNC_DECL vec<3, T, Q> YCoCgR2rgb(
53 vec<3, T, Q> const& YCoCgColor);
54
56 }//namespace glm
57
58 #include "color_space_YCoCg.inl"
glm::rgb2YCoCgR
GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCgR(vec< 3, T, Q > const &rgbColor)
Convert a color from RGB color space to YCoCgR color space.
glm::rgb2YCoCg
GLM_FUNC_DECL vec< 3, T, Q > rgb2YCoCg(vec< 3, T, Q > const &rgbColor)
Convert a color from RGB color space to YCoCg color space.
glm::rgbColor
GLM_FUNC_DECL vec< 3, T, Q > rgbColor(vec< 3, T, Q > const &hsvValue)
Converts a color from HSV color space to its color in RGB color space.
glm::YCoCg2rgb
GLM_FUNC_DECL vec< 3, T, Q > YCoCg2rgb(vec< 3, T, Q > const &YCoCgColor)
Convert a color from YCoCg color space to RGB color space.
glm::YCoCgR2rgb
GLM_FUNC_DECL vec< 3, T, Q > YCoCgR2rgb(vec< 3, T, Q > const &YCoCgColor)
Convert a color from YCoCgR color space to RGB color space.