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

Functions

static ImBufcreate_6x2_test_image ()
 
static ImBufcreate_6x2_test_image_fl (int channels)
 
static ImBufscale_2x_smaller (bool nearest, bool threaded, int float_channels=0)
 
static ImBufscale_to_1x1 (bool nearest, bool threaded, int float_channels=0)
 
static ImBufscale_fractional_larger (bool nearest, bool threaded, int float_channels=0)
 
 TEST (imbuf_scaling, nearest_2x_smaller)
 
 TEST (imbuf_scaling, threaded_2x_smaller)
 
 TEST (imbuf_scaling, bilinear_2x_smaller)
 
 TEST (imbuf_scaling, nearest_to_1x1)
 
 TEST (imbuf_scaling, threaded_to_1x1)
 
 TEST (imbuf_scaling, bilinear_to_1x1)
 
 TEST (imbuf_scaling, nearest_fractional_larger)
 
 TEST (imbuf_scaling, bilinear_fractional_larger)
 
 TEST (imbuf_scaling, nearest_2x_smaller_fl1)
 
 TEST (imbuf_scaling, nearest_2x_smaller_fl2)
 
 TEST (imbuf_scaling, nearest_2x_smaller_fl3)
 
 TEST (imbuf_scaling, nearest_2x_smaller_fl4)
 
 TEST (imbuf_scaling, nearest_to_1x1_fl3)
 
 TEST (imbuf_scaling, threaded_to_1x1_fl3)
 
 TEST (imbuf_scaling, bilinear_to_1x1_fl3)
 
 TEST (imbuf_scaling, bilinear_2x_smaller_fl3)
 
 TEST (imbuf_scaling, bilinear_2x_smaller_fl4)
 
 TEST (imbuf_scaling, threaded_2x_smaller_fl3)
 
 TEST (imbuf_scaling, threaded_2x_smaller_fl4)
 
static ImBufcreate_6x2_test_image ()
 
static ImBuftransform_2x_smaller (eIMBInterpolationFilterMode filter)
 
static ImBuftransform_fractional_larger (eIMBInterpolationFilterMode filter)
 
 TEST (imbuf_transform, nearest_2x_smaller)
 
 TEST (imbuf_transform, box_2x_smaller)
 
 TEST (imbuf_transform, bilinear_2x_smaller)
 
 TEST (imbuf_transform, cubic_bspline_2x_smaller)
 
 TEST (imbuf_transform, cubic_mitchell_2x_smaller)
 
 TEST (imbuf_transform, cubic_mitchell_fractional_larger)
 
 TEST (imbuf_transform, nearest_very_large_scale)
 

Variables

static constexpr float EPS = 0.0001f
 

Function Documentation

◆ create_6x2_test_image() [1/2]

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

◆ create_6x2_test_image() [2/2]

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

◆ create_6x2_test_image_fl()

static ImBuf * blender::imbuf::tests::create_6x2_test_image_fl ( int channels)
static

◆ scale_2x_smaller()

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

◆ scale_fractional_larger()

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

Definition at line 89 of file IMB_scaling_test.cc.

References Bilinear, Box, create_6x2_test_image(), create_6x2_test_image_fl(), IMB_scale(), and Nearest.

Referenced by TEST(), and TEST().

◆ scale_to_1x1()

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

◆ TEST() [1/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
bilinear_2x_smaller  )

◆ TEST() [2/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
bilinear_2x_smaller_fl3  )

◆ TEST() [3/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
bilinear_2x_smaller_fl4  )

◆ TEST() [4/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
bilinear_fractional_larger  )

◆ TEST() [5/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
bilinear_to_1x1  )

◆ TEST() [6/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
bilinear_to_1x1_fl3  )

◆ TEST() [7/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
nearest_2x_smaller  )

◆ TEST() [8/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
nearest_2x_smaller_fl1  )

◆ TEST() [9/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
nearest_2x_smaller_fl2  )

◆ TEST() [10/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
nearest_2x_smaller_fl3  )

◆ TEST() [11/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
nearest_2x_smaller_fl4  )

◆ TEST() [12/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
nearest_fractional_larger  )

◆ TEST() [13/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
nearest_to_1x1  )

◆ TEST() [14/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
nearest_to_1x1_fl3  )

◆ TEST() [15/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
threaded_2x_smaller  )

◆ TEST() [16/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
threaded_2x_smaller_fl3  )

◆ TEST() [17/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
threaded_2x_smaller_fl4  )

◆ TEST() [18/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
threaded_to_1x1  )

◆ TEST() [19/26]

blender::imbuf::tests::TEST ( imbuf_scaling ,
threaded_to_1x1_fl3  )

◆ TEST() [20/26]

blender::imbuf::tests::TEST ( imbuf_transform ,
bilinear_2x_smaller  )

◆ TEST() [21/26]

blender::imbuf::tests::TEST ( imbuf_transform ,
box_2x_smaller  )

◆ TEST() [22/26]

blender::imbuf::tests::TEST ( imbuf_transform ,
cubic_bspline_2x_smaller  )

◆ TEST() [23/26]

blender::imbuf::tests::TEST ( imbuf_transform ,
cubic_mitchell_2x_smaller  )

◆ TEST() [24/26]

blender::imbuf::tests::TEST ( imbuf_transform ,
cubic_mitchell_fractional_larger  )

◆ TEST() [25/26]

blender::imbuf::tests::TEST ( imbuf_transform ,
nearest_2x_smaller  )

◆ TEST() [26/26]

◆ transform_2x_smaller()

static ImBuf * blender::imbuf::tests::transform_2x_smaller ( eIMBInterpolationFilterMode filter)
static

◆ transform_fractional_larger()

static ImBuf * blender::imbuf::tests::transform_fractional_larger ( eIMBInterpolationFilterMode filter)
static

Variable Documentation

◆ EPS

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

Definition at line 191 of file IMB_scaling_test.cc.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().