Blender V4.3
BLI_math_interp_test.cc File Reference
#include "testing/testing.h"
#include "BLI_color.hh"
#include "BLI_math_interp.hh"

Go to the source code of this file.

Functions

 TEST (math_interp, NearestCharExactSamples)
 
 TEST (math_interp, NearestCharHalfwaySamples)
 
 TEST (math_interp, NearestFloatExactSamples)
 
 TEST (math_interp, NearestFloatHalfwaySamples)
 
 TEST (math_interp, BilinearCharExactSamples)
 
 TEST (math_interp, BilinearCharHalfwayUSamples)
 
 TEST (math_interp, BilinearCharHalfwayVSamples)
 
 TEST (math_interp, BilinearCharSamples)
 
 TEST (math_interp, BilinearFloatSamples)
 
 TEST (math_interp, BilinearCharPartiallyOutsideImageBorder)
 
 TEST (math_interp, BilinearCharPartiallyOutsideImage)
 
 TEST (math_interp, BilinearCharPartiallyOutsideImageWrap)
 
 TEST (math_interp, BilinearFloatPartiallyOutsideImageBorder)
 
 TEST (math_interp, BilinearFloatPartiallyOutsideImage)
 
 TEST (math_interp, BilinearFloatPartiallyOutsideImageWrap)
 
 TEST (math_interp, BilinearCharFullyOutsideImage)
 
 TEST (math_interp, CubicBSplineCharExactSamples)
 
 TEST (math_interp, CubicBSplineCharSamples)
 
 TEST (math_interp, CubicBSplineFloatSamples)
 
 TEST (math_interp, CubicBSplineCharPartiallyOutsideImage)
 
 TEST (math_interp, CubicBSplineFloatPartiallyOutsideImage)
 
 TEST (math_interp, CubicBSplineCharFullyOutsideImage)
 
 TEST (math_interp, CubicMitchellCharExactSamples)
 
 TEST (math_interp, CubicMitchellCharSamples)
 
 TEST (math_interp, CubicMitchellFloatSamples)
 
 TEST (math_interp, CubicMitchellCharPartiallyOutsideImage)
 
 TEST (math_interp, CubicMitchellFloatPartiallyOutsideImage)
 

Variables

static constexpr float float_tolerance = 0.00005f
 
static constexpr int image_width = 3
 
static constexpr int image_height = 3
 
static constexpr uchar image_char [image_height][image_width][4]
 
static constexpr float image_fl [image_height][image_width][4]
 

Function Documentation

◆ TEST() [1/27]

TEST ( math_interp ,
BilinearCharExactSamples  )

◆ TEST() [2/27]

TEST ( math_interp ,
BilinearCharFullyOutsideImage  )

◆ TEST() [3/27]

TEST ( math_interp ,
BilinearCharHalfwayUSamples  )

◆ TEST() [4/27]

TEST ( math_interp ,
BilinearCharHalfwayVSamples  )

◆ TEST() [5/27]

TEST ( math_interp ,
BilinearCharPartiallyOutsideImage  )

◆ TEST() [6/27]

TEST ( math_interp ,
BilinearCharPartiallyOutsideImageBorder  )

◆ TEST() [7/27]

TEST ( math_interp ,
BilinearCharPartiallyOutsideImageWrap  )

◆ TEST() [8/27]

TEST ( math_interp ,
BilinearCharSamples  )

◆ TEST() [9/27]

TEST ( math_interp ,
BilinearFloatPartiallyOutsideImage  )

◆ TEST() [10/27]

TEST ( math_interp ,
BilinearFloatPartiallyOutsideImageBorder  )

◆ TEST() [11/27]

TEST ( math_interp ,
BilinearFloatPartiallyOutsideImageWrap  )

◆ TEST() [12/27]

TEST ( math_interp ,
BilinearFloatSamples  )

◆ TEST() [13/27]

TEST ( math_interp ,
CubicBSplineCharExactSamples  )

◆ TEST() [14/27]

TEST ( math_interp ,
CubicBSplineCharFullyOutsideImage  )

◆ TEST() [15/27]

TEST ( math_interp ,
CubicBSplineCharPartiallyOutsideImage  )

◆ TEST() [16/27]

TEST ( math_interp ,
CubicBSplineCharSamples  )

◆ TEST() [17/27]

TEST ( math_interp ,
CubicBSplineFloatPartiallyOutsideImage  )

◆ TEST() [18/27]

TEST ( math_interp ,
CubicBSplineFloatSamples  )

◆ TEST() [19/27]

TEST ( math_interp ,
CubicMitchellCharExactSamples  )

◆ TEST() [20/27]

TEST ( math_interp ,
CubicMitchellCharPartiallyOutsideImage  )

◆ TEST() [21/27]

TEST ( math_interp ,
CubicMitchellCharSamples  )

◆ TEST() [22/27]

TEST ( math_interp ,
CubicMitchellFloatPartiallyOutsideImage  )

◆ TEST() [23/27]

TEST ( math_interp ,
CubicMitchellFloatSamples  )

◆ TEST() [24/27]

TEST ( math_interp ,
NearestCharExactSamples  )

◆ TEST() [25/27]

TEST ( math_interp ,
NearestCharHalfwaySamples  )

◆ TEST() [26/27]

TEST ( math_interp ,
NearestFloatExactSamples  )

◆ TEST() [27/27]

TEST ( math_interp ,
NearestFloatHalfwaySamples  )

Variable Documentation

◆ float_tolerance

float float_tolerance = 0.00005f
staticconstexpr

Definition at line 13 of file BLI_math_interp_test.cc.

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

◆ image_char

uchar image_char[image_height][image_width][4]
staticconstexpr
Initial value:
= {
{{255, 254, 217, 216}, {230, 230, 230, 230}, {240, 160, 90, 20}},
{{0, 1, 2, 3}, {62, 72, 82, 92}, {126, 127, 128, 129}},
{{1, 2, 3, 4}, {73, 108, 153, 251}, {128, 129, 130, 131}},
}

Definition at line 16 of file BLI_math_interp_test.cc.

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

◆ image_fl

float image_fl[image_height][image_width][4]
staticconstexpr
Initial value:
= {
{{255, 254, 217, 216}, {230, 230, 230, 230}, {240, 160, 90, 20}},
{{0, 1, 2, 3}, {62, 72, 82, 92}, {126, 127, 128, 129}},
{{1, 2, 3, 4}, {73, 108, 153, 251}, {128, 129, 130, 131}},
}

Definition at line 21 of file BLI_math_interp_test.cc.

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

◆ image_height

◆ image_width