Blender  V3.3
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)
 
 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 78 of file BLI_math_color_test.cc.

References linearrgb_to_srgb_v3_v3().

◆ TEST() [2/9]

TEST ( math_color  ,
LinearRGBTosRGB   
)

Definition at line 59 of file BLI_math_color_test.cc.

References e, and linearrgb_to_srgb().

◆ TEST() [3/9]

TEST ( math_color  ,
LinearRGBTosRGBNearZero   
)

Definition at line 52 of file BLI_math_color_test.cc.

References e, and linearrgb_to_srgb().

◆ TEST() [4/9]

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() [5/9]

TEST ( math_color  ,
RGBToHSLRoundtrip   
)

Definition at line 16 of file BLI_math_color_test.cc.

References e, hsl_to_rgb_v(), usdtokens::rgb(), and rgb_to_hsl_v().

◆ TEST() [6/9]

TEST ( math_color  ,
RGBToHSVRoundtrip   
)

Definition at line 7 of file BLI_math_color_test.cc.

References e, hsv_to_rgb_v(), usdtokens::rgb(), and rgb_to_hsv_v().

◆ TEST() [7/9]

TEST ( math_color  ,
RGBToYCCRoundtrip   
)

◆ TEST() [8/9]

TEST ( math_color  ,
RGBToYUVRoundtrip   
)

Definition at line 25 of file BLI_math_color_test.cc.

References BLI_YUV_ITU_BT709, e, usdtokens::rgb(), 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().