| 0.9.7

- Main Page
- Modules
- Files

- File List

color_space_YCoCg.hpp
Go to the documentation of this file.
1
42 #pragma once
43
44 // Dependency:
45 #include "../glm.hpp"
46
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")
49 #endif
50
51 namespace glm
52 {
55
58 template <typename T, precision P>
59 GLM_FUNC_DECL tvec3<T, P> rgb2YCoCg(
60 tvec3<T, P> const & rgbColor);
61
64 template <typename T, precision P>
65 GLM_FUNC_DECL tvec3<T, P> YCoCg2rgb(
66 tvec3<T, P> const & YCoCgColor);
67
71 template <typename T, precision P>
72 GLM_FUNC_DECL tvec3<T, P> rgb2YCoCgR(
73 tvec3<T, P> const & rgbColor);
74
78 template <typename T, precision P>
79 GLM_FUNC_DECL tvec3<T, P> YCoCgR2rgb(
80 tvec3<T, P> const & YCoCgColor);
81
83 }//namespace glm
84
85 #include "color_space_YCoCg.inl"
glm::rgb2YCoCgR
GLM_FUNC_DECL tvec3< T, P > rgb2YCoCgR(tvec3< T, P > const &rgbColor)
Convert a color from RGB color space to YCoCgR color space.
glm::rgb2YCoCg
GLM_FUNC_DECL tvec3< T, P > rgb2YCoCg(tvec3< T, P > const &rgbColor)
Convert a color from RGB color space to YCoCg color space.
glm
Definition: _noise.hpp:40
glm::YCoCgR2rgb
GLM_FUNC_DECL tvec3< T, P > YCoCgR2rgb(tvec3< T, P > const &YCoCgColor)
Convert a color from YCoCgR color space to RGB color space.
glm::rgbColor
GLM_FUNC_DECL tvec3< T, P > rgbColor(tvec3< T, P > const &hsvValue)
Converts a color from HSV color space to its color in RGB color space.
glm::YCoCg2rgb
GLM_FUNC_DECL tvec3< T, P > YCoCg2rgb(tvec3< T, P > const &YCoCgColor)
Convert a color from YCoCg color space to RGB color space.