Blender V4.3
BLI_math_color_test.cc File Reference
#include "testing/testing.h"
#include "BLI_math_color.h"

Go to the source code of this file.

Functions

 TEST (math_color, RGBToHSVRoundtrip)
 
 TEST (math_color, RGBToHSLRoundtrip)
 
 TEST (math_color, RGBToYUVRoundtrip)
 
 TEST (math_color, RGBToYCCRoundtrip)
 
 TEST (math_color, LinearRGBTosRGBNearZero)
 
 TEST (math_color, LinearRGBTosRGB)
 
 TEST (math_color, LinearRGBTosRGBRoundtrip)
 
 TEST (math_color, linearrgb_to_srgb_v3_v3)
 
 TEST (math_color, srgb_to_linearrgb_v3_v3)
 

Function Documentation

◆ TEST() [1/9]

TEST ( math_color ,
linearrgb_to_srgb_v3_v3  )

Definition at line 80 of file BLI_math_color_test.cc.

References linearrgb_to_srgb_v3_v3().

◆ TEST() [2/9]

TEST ( math_color ,
LinearRGBTosRGB  )

Definition at line 61 of file BLI_math_color_test.cc.

References e, and linearrgb_to_srgb().

◆ TEST() [3/9]

TEST ( math_color ,
LinearRGBTosRGBNearZero  )

Definition at line 54 of file BLI_math_color_test.cc.

References e, and linearrgb_to_srgb().

◆ TEST() [4/9]

TEST ( math_color ,
LinearRGBTosRGBRoundtrip  )

Definition at line 68 of file BLI_math_color_test.cc.

References e, float, linearrgb_to_srgb(), N, and srgb_to_linearrgb().

◆ TEST() [5/9]

TEST ( math_color ,
RGBToHSLRoundtrip  )

Definition at line 18 of file BLI_math_color_test.cc.

References e, hsl_to_rgb_v(), and rgb_to_hsl_v().

◆ TEST() [6/9]

TEST ( math_color ,
RGBToHSVRoundtrip  )

Definition at line 9 of file BLI_math_color_test.cc.

References e, hsv_to_rgb_v(), and rgb_to_hsv_v().

◆ TEST() [7/9]

TEST ( math_color ,
RGBToYCCRoundtrip  )

◆ TEST() [8/9]

TEST ( math_color ,
RGBToYUVRoundtrip  )

Definition at line 27 of file BLI_math_color_test.cc.

References BLI_YUV_ITU_BT709, e, rgb_to_yuv(), and yuv_to_rgb().

◆ TEST() [9/9]

TEST ( math_color ,
srgb_to_linearrgb_v3_v3  )

Definition at line 112 of file BLI_math_color_test.cc.

References srgb_to_linearrgb_v3_v3().