Blender V4.3
IMB_scaling_test.cc File Reference
#include "testing/testing.h"
#include "BLI_math_vector_types.hh"
#include "IMB_imbuf.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::imbuf
 
namespace  blender::imbuf::tests
 

Functions

static ImBufblender::imbuf::tests::create_6x2_test_image ()
 
static ImBufblender::imbuf::tests::create_6x2_test_image_fl (int channels)
 
static ImBufblender::imbuf::tests::scale_2x_smaller (bool nearest, bool threaded, int float_channels=0)
 
static ImBufblender::imbuf::tests::scale_to_1x1 (bool nearest, bool threaded, int float_channels=0)
 
static ImBufblender::imbuf::tests::scale_fractional_larger (bool nearest, bool threaded, int float_channels=0)
 
 blender::imbuf::tests::TEST (imbuf_scaling, nearest_2x_smaller)
 
 blender::imbuf::tests::TEST (imbuf_scaling, threaded_2x_smaller)
 
 blender::imbuf::tests::TEST (imbuf_scaling, bilinear_2x_smaller)
 
 blender::imbuf::tests::TEST (imbuf_scaling, nearest_to_1x1)
 
 blender::imbuf::tests::TEST (imbuf_scaling, threaded_to_1x1)
 
 blender::imbuf::tests::TEST (imbuf_scaling, bilinear_to_1x1)
 
 blender::imbuf::tests::TEST (imbuf_scaling, nearest_fractional_larger)
 
 blender::imbuf::tests::TEST (imbuf_scaling, bilinear_fractional_larger)
 
 blender::imbuf::tests::TEST (imbuf_scaling, nearest_2x_smaller_fl1)
 
 blender::imbuf::tests::TEST (imbuf_scaling, nearest_2x_smaller_fl2)
 
 blender::imbuf::tests::TEST (imbuf_scaling, nearest_2x_smaller_fl3)
 
 blender::imbuf::tests::TEST (imbuf_scaling, nearest_2x_smaller_fl4)
 
 blender::imbuf::tests::TEST (imbuf_scaling, nearest_to_1x1_fl3)
 
 blender::imbuf::tests::TEST (imbuf_scaling, threaded_to_1x1_fl3)
 
 blender::imbuf::tests::TEST (imbuf_scaling, bilinear_to_1x1_fl3)
 
 blender::imbuf::tests::TEST (imbuf_scaling, bilinear_2x_smaller_fl3)
 
 blender::imbuf::tests::TEST (imbuf_scaling, bilinear_2x_smaller_fl4)
 
 blender::imbuf::tests::TEST (imbuf_scaling, threaded_2x_smaller_fl3)
 
 blender::imbuf::tests::TEST (imbuf_scaling, threaded_2x_smaller_fl4)
 

Variables

static constexpr float blender::imbuf::tests::EPS = 0.0001f