Blender V5.3
blender::imbuf::tests Namespace Reference

Classes

class  ColorManagementConfigSwitchTest
class  ColorManagementInteropIDTest
class  ColorManagementProjectConfigTest
class  ImBufScalingTest
class  ImBufTransformTest

Functions

static std::string blender_config_path ()
 TEST_F (ColorManagementConfigSwitchTest, colorspace_pointers_survive_switch)
static std::string write_config_with_extra_colorspace (const std::string &config_path)
 TEST_F (ColorManagementConfigSwitchTest, removed_colorspace_is_retained)
 TEST_F (ColorManagementConfigSwitchTest, active_inactive_color_spaces_by_index)
 TEST_F (ColorManagementInteropIDTest, stored_color_spaces_resolve_by_interop_id)
 TEST_F (ColorManagementConfigSwitchTest, alternate_interop_id)
 TEST_F (ColorManagementProjectConfigTest, blender_config_without_environment)
 TEST_F (ColorManagementProjectConfigTest, ocio_env_is_used)
 TEST_F (ColorManagementProjectConfigTest, blender_ocio_env_replaces_ocio_env)
 TEST_F (ColorManagementProjectConfigTest, empty_blender_ocio_env_hides_ocio_env)
 TEST_F (ColorManagementProjectConfigTest, broken_ocio_env_falls_back_to_blender)
 TEST_F (ColorManagementProjectConfigTest, broken_ocio_env_falls_back_to_project)
 TEST_F (ColorManagementProjectConfigTest, project_config_through_project_root)
 TEST_F (ColorManagementProjectConfigTest, broken_project_config_falls_back_to_blender)
 TEST_F (ColorManagementProjectConfigTest, config_follows_project)
 TEST_F (ColorManagementProjectConfigTest, reload_only_when_config_changes)
static ImBuf * create_6x2_test_image ()
static ImBuf * create_6x2_test_image_fl (int channels)
static ImBuf * scale_2x_smaller (bool nearest, bool threaded, int float_channels=0)
static ImBuf * scale_to_1x1 (bool nearest, bool threaded, int float_channels=0)
static ImBuf * scale_fractional_larger (bool nearest, bool threaded, int float_channels=0)
 TEST_F (ImBufScalingTest, nearest_2x_smaller)
 TEST_F (ImBufScalingTest, threaded_2x_smaller)
 TEST_F (ImBufScalingTest, bilinear_2x_smaller)
 TEST_F (ImBufScalingTest, nearest_to_1x1)
 TEST_F (ImBufScalingTest, threaded_to_1x1)
 TEST_F (ImBufScalingTest, bilinear_to_1x1)
 TEST_F (ImBufScalingTest, nearest_fractional_larger)
 TEST_F (ImBufScalingTest, bilinear_fractional_larger)
 TEST_F (ImBufScalingTest, nearest_2x_smaller_fl1)
 TEST_F (ImBufScalingTest, nearest_2x_smaller_fl2)
 TEST_F (ImBufScalingTest, nearest_2x_smaller_fl3)
 TEST_F (ImBufScalingTest, nearest_2x_smaller_fl4)
 TEST_F (ImBufScalingTest, nearest_to_1x1_fl3)
 TEST_F (ImBufScalingTest, threaded_to_1x1_fl3)
 TEST_F (ImBufScalingTest, bilinear_to_1x1_fl3)
 TEST_F (ImBufScalingTest, bilinear_2x_smaller_fl3)
 TEST_F (ImBufScalingTest, bilinear_2x_smaller_fl4)
 TEST_F (ImBufScalingTest, threaded_2x_smaller_fl3)
 TEST_F (ImBufScalingTest, threaded_2x_smaller_fl4)
static ImBuf * create_6x2_test_image ()
static ImBuf * transform_2x_smaller (eIMBInterpolationFilterMode filter)
static ImBuf * transform_fractional_larger (eIMBInterpolationFilterMode filter)
 TEST_F (ImBufTransformTest, nearest_2x_smaller)
 TEST_F (ImBufTransformTest, box_2x_smaller)
 TEST_F (ImBufTransformTest, bilinear_2x_smaller)
 TEST_F (ImBufTransformTest, cubic_bspline_2x_smaller)
 TEST_F (ImBufTransformTest, cubic_mitchell_2x_smaller)
 TEST_F (ImBufTransformTest, cubic_mitchell_fractional_larger)
 TEST_F (ImBufTransformTest, nearest_very_large_scale)

Variables

static const char * extra_colorspace_name = "test_extra_space"
static constexpr float EPS = 0.0001f

Function Documentation

◆ blender_config_path()

◆ create_6x2_test_image() [1/2]

◆ create_6x2_test_image() [2/2]

ImBuf * blender::imbuf::tests::create_6x2_test_image ( )
static

◆ create_6x2_test_image_fl()

◆ scale_2x_smaller()

ImBuf * blender::imbuf::tests::scale_2x_smaller ( bool nearest,
bool threaded,
int float_channels = 0 )
static

◆ scale_fractional_larger()

ImBuf * blender::imbuf::tests::scale_fractional_larger ( bool nearest,
bool threaded,
int float_channels = 0 )
static

◆ scale_to_1x1()

ImBuf * blender::imbuf::tests::scale_to_1x1 ( bool nearest,
bool threaded,
int float_channels = 0 )
static

◆ TEST_F() [1/41]

◆ TEST_F() [2/41]

◆ TEST_F() [3/41]

◆ TEST_F() [4/41]

◆ TEST_F() [5/41]

◆ TEST_F() [6/41]

blender::imbuf::tests::TEST_F ( ColorManagementProjectConfigTest ,
blender_config_without_environment  )

Definition at line 395 of file IMB_colormanagement_test.cc.

References blender::Blender, blender_config_path(), and TEST_F().

◆ TEST_F() [7/41]

◆ TEST_F() [8/41]

blender::imbuf::tests::TEST_F ( ColorManagementProjectConfigTest ,
broken_ocio_env_falls_back_to_blender  )

◆ TEST_F() [9/41]

blender::imbuf::tests::TEST_F ( ColorManagementProjectConfigTest ,
broken_ocio_env_falls_back_to_project  )

◆ TEST_F() [10/41]

blender::imbuf::tests::TEST_F ( ColorManagementProjectConfigTest ,
broken_project_config_falls_back_to_blender  )

◆ TEST_F() [11/41]

blender::imbuf::tests::TEST_F ( ColorManagementProjectConfigTest ,
config_follows_project  )

◆ TEST_F() [12/41]

blender::imbuf::tests::TEST_F ( ColorManagementProjectConfigTest ,
empty_blender_ocio_env_hides_ocio_env  )

◆ TEST_F() [13/41]

◆ TEST_F() [14/41]

◆ TEST_F() [15/41]

blender::imbuf::tests::TEST_F ( ColorManagementProjectConfigTest ,
reload_only_when_config_changes  )

◆ TEST_F() [16/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
bilinear_2x_smaller  )

◆ TEST_F() [17/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
bilinear_2x_smaller_fl3  )

◆ TEST_F() [18/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
bilinear_2x_smaller_fl4  )

◆ TEST_F() [19/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
bilinear_fractional_larger  )

◆ TEST_F() [20/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
bilinear_to_1x1  )

◆ TEST_F() [21/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
bilinear_to_1x1_fl3  )

◆ TEST_F() [22/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
nearest_2x_smaller  )

◆ TEST_F() [23/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
nearest_2x_smaller_fl1  )

◆ TEST_F() [24/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
nearest_2x_smaller_fl2  )

◆ TEST_F() [25/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
nearest_2x_smaller_fl3  )

◆ TEST_F() [26/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
nearest_2x_smaller_fl4  )

◆ TEST_F() [27/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
nearest_fractional_larger  )

◆ TEST_F() [28/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
nearest_to_1x1  )

◆ TEST_F() [29/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
nearest_to_1x1_fl3  )

◆ TEST_F() [30/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
threaded_2x_smaller  )

◆ TEST_F() [31/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
threaded_2x_smaller_fl3  )

◆ TEST_F() [32/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
threaded_2x_smaller_fl4  )

◆ TEST_F() [33/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
threaded_to_1x1  )

◆ TEST_F() [34/41]

blender::imbuf::tests::TEST_F ( ImBufScalingTest ,
threaded_to_1x1_fl3  )

◆ TEST_F() [35/41]

blender::imbuf::tests::TEST_F ( ImBufTransformTest ,
bilinear_2x_smaller  )

◆ TEST_F() [36/41]

blender::imbuf::tests::TEST_F ( ImBufTransformTest ,
box_2x_smaller  )

◆ TEST_F() [37/41]

blender::imbuf::tests::TEST_F ( ImBufTransformTest ,
cubic_bspline_2x_smaller  )

◆ TEST_F() [38/41]

blender::imbuf::tests::TEST_F ( ImBufTransformTest ,
cubic_mitchell_2x_smaller  )

◆ TEST_F() [39/41]

◆ TEST_F() [40/41]

◆ TEST_F() [41/41]

◆ transform_2x_smaller()

◆ transform_fractional_larger()

◆ write_config_with_extra_colorspace()

std::string blender::imbuf::tests::write_config_with_extra_colorspace ( const std::string & config_path)
static

Variable Documentation

◆ EPS

float blender::imbuf::tests::EPS = 0.0001f
staticconstexpr

◆ extra_colorspace_name

const char* blender::imbuf::tests::extra_colorspace_name = "test_extra_space"
static

Definition at line 121 of file IMB_colormanagement_test.cc.

Referenced by TEST_F(), and write_config_with_extra_colorspace().