Back to Mame

0.9.8: color_space_YCoCg.hpp Source File

3rdparty/glm/doc/api/a00013_source.html

latest2.8 KB
Original Source

| | 0.9.8 |

color_space_YCoCg.hpp

Go to the documentation of this file.

1

13 #pragma once

14

15 // Dependency:

16 #include "../glm.hpp"

17

18 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)

19 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")

20 #endif

21

22 namespace glm

23 {

26

29template <typename T, precision P>

30 GLM_FUNC_DECL tvec3<T, P> rgb2YCoCg(

31 tvec3<T, P> const & rgbColor);

32

35template <typename T, precision P>

36 GLM_FUNC_DECL tvec3<T, P> YCoCg2rgb(

37 tvec3<T, P> const & YCoCgColor);

38

42template <typename T, precision P>

43 GLM_FUNC_DECL tvec3<T, P> rgb2YCoCgR(

44 tvec3<T, P> const & rgbColor);

45

49template <typename T, precision P>

50 GLM_FUNC_DECL tvec3<T, P> YCoCgR2rgb(

51 tvec3<T, P> const & YCoCgColor);

52

54 }//namespace glm

55

56 #include "color_space_YCoCg.inl"

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.

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

Definition: _noise.hpp:11

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::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::YCoCgR2rgb

GLM_FUNC_DECL tvec3< T, P > YCoCgR2rgb(tvec3< T, P > const &YCoCgColor)

Convert a color from YCoCgR color space to RGB color space.


Generated by 1.8.10