Blender  V2.93
Functions
BLI_math_color_test.cc File Reference
#include "testing/testing.h"
#include "BLI_math.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)
 

Function Documentation

◆ TEST() [1/7]

TEST ( math_color  ,
LinearRGBTosRGB   
)

Definition at line 59 of file BLI_math_color_test.cc.

References e, and linearrgb_to_srgb().

◆ TEST() [2/7]

TEST ( math_color  ,
LinearRGBTosRGBNearZero   
)

Definition at line 52 of file BLI_math_color_test.cc.

References e, and linearrgb_to_srgb().

◆ TEST() [3/7]

TEST ( math_color  ,
LinearRGBTosRGBRoundtrip   
)

Definition at line 66 of file BLI_math_color_test.cc.

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

◆ TEST() [4/7]

TEST ( math_color  ,
RGBToHSLRoundtrip   
)

Definition at line 16 of file BLI_math_color_test.cc.

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

◆ TEST() [5/7]

TEST ( math_color  ,
RGBToHSVRoundtrip   
)

Definition at line 7 of file BLI_math_color_test.cc.

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

◆ TEST() [6/7]

TEST ( math_color  ,
RGBToYCCRoundtrip   
)

◆ TEST() [7/7]

TEST ( math_color  ,
RGBToYUVRoundtrip   
)

Definition at line 25 of file BLI_math_color_test.cc.

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