GLM  0.9.5
color_space_YCoCg.hpp
Go to the documentation of this file.
1 
38 #ifndef glm_gtx_color_space_YCoCg
39 #define glm_gtx_color_space_YCoCg
40 
41 // Dependency:
42 #include "../glm.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  template <typename T, precision P>
56  detail::tvec3<T, P> rgb2YCoCg(
57  detail::tvec3<T, P> const & rgbColor);
58 
61  template <typename T, precision P>
62  detail::tvec3<T, P> YCoCg2rgb(
63  detail::tvec3<T, P> const & YCoCgColor);
64 
68  template <typename T, precision P>
69  detail::tvec3<T, P> rgb2YCoCgR(
70  detail::tvec3<T, P> const & rgbColor);
71 
75  template <typename T, precision P>
76  detail::tvec3<T, P> YCoCgR2rgb(
77  detail::tvec3<T, P> const & YCoCgColor);
78 
80 }//namespace glm
81 
82 #include "color_space_YCoCg.inl"
83 
84 #endif//glm_gtx_color_space_YCoCg
detail::tvec3< T, P > YCoCgR2rgb(detail::tvec3< T, P > const &YCoCgColor)
Convert a color from YCoCgR color space to RGB color space.
detail::tvec3< T, P > rgb2YCoCgR(detail::tvec3< T, P > const &rgbColor)
Convert a color from RGB color space to YCoCgR color space.
detail::tvec3< T, P > YCoCg2rgb(detail::tvec3< T, P > const &YCoCgColor)
Convert a color from YCoCg color space to RGB color space.
detail::tvec3< T, P > rgbColor(detail::tvec3< T, P > const &hsvValue)
Converts a color from HSV color space to its color in RGB color space.
detail::tvec3< T, P > rgb2YCoCg(detail::tvec3< T, P > const &rgbColor)
Convert a color from RGB color space to YCoCg color space.