|
Blender V4.3
|
#include "testing/testing.h"#include "IMB_imbuf.hh"#include "BLI_math_base.hh"#include "BLI_math_matrix.hh"#include "BLI_timeit.hh"Go to the source code of this file.
Functions | |
| static ImBuf * | create_src_image (bool use_float) |
| static void | imb_scale_via_transform (ImBuf *&src, int width, int height, eIMBInterpolationFilterMode filter) |
| static void | imb_xform_nearest (ImBuf *&src, int width, int height) |
| static void | imb_xform_bilinear (ImBuf *&src, int width, int height) |
| static void | imb_xform_box (ImBuf *&src, int width, int height) |
| static void | imb_scale_nearest_st (ImBuf *&src, int width, int height) |
| static void | imb_scale_nearest (ImBuf *&src, int width, int height) |
| static void | imb_scale_bilinear_st (ImBuf *&src, int width, int height) |
| static void | imb_scale_bilinear (ImBuf *&src, int width, int height) |
| static void | imb_scale_box_st (ImBuf *&src, int width, int height) |
| static void | imb_scale_box (ImBuf *&src, int width, int height) |
| static void | scale_perf_impl (const char *name, bool use_float, void(*func)(ImBuf *&src, int width, int height)) |
| static void | test_scaling_perf (bool use_float) |
| TEST (imbuf_scaling, scaling_perf_byte) | |
| TEST (imbuf_scaling, scaling_perf_float) | |
Variables | |
| static constexpr int | SRC_X = 5123 |
| static constexpr int | SRC_Y = 4091 |
| static constexpr int | DST_SMALLER_X = int(SRC_X * 0.21f) |
| static constexpr int | DST_SMALLER_Y = int(SRC_Y * 0.67f) |
| static constexpr int | DST_LARGER_X = int(SRC_X * 1.19f) |
| static constexpr int | DST_LARGER_Y = int(SRC_Y * 2.13f) |
|
static |
Definition at line 24 of file IMB_scaling_performance_test.cc.
References ImBuf::byte_buffer, ImBufByteBuffer::data, ImBufFloatBuffer::data, ImBuf::float_buffer, IB_rect, IB_rectfloat, IMB_allocImBuf(), blender::math::mod(), SRC_X, SRC_Y, ImBuf::x, and ImBuf::y.
Referenced by scale_perf_impl().
Definition at line 91 of file IMB_scaling_performance_test.cc.
References Bilinear, and IMB_scale().
Referenced by test_scaling_perf().
Definition at line 87 of file IMB_scaling_performance_test.cc.
References Bilinear, and IMB_scale().
Referenced by test_scaling_perf().
Definition at line 99 of file IMB_scaling_performance_test.cc.
References Box, and IMB_scale().
Referenced by test_scaling_perf().
Definition at line 95 of file IMB_scaling_performance_test.cc.
References Box, and IMB_scale().
Referenced by test_scaling_perf().
Definition at line 83 of file IMB_scaling_performance_test.cc.
References IMB_scale(), and Nearest.
Referenced by test_scaling_perf().
Definition at line 79 of file IMB_scaling_performance_test.cc.
References IMB_scale(), and Nearest.
Referenced by test_scaling_perf().
|
static |
Definition at line 50 of file IMB_scaling_performance_test.cc.
References ImBuf::flags, blender::math::from_scale(), IMB_allocImBuf(), IMB_freeImBuf(), IMB_transform(), IMB_TRANSFORM_MODE_REGULAR, ImBuf::planes, ImBuf::x, and ImBuf::y.
Referenced by imb_xform_bilinear(), imb_xform_box(), and imb_xform_nearest().
Definition at line 67 of file IMB_scaling_performance_test.cc.
References IMB_FILTER_BILINEAR, and imb_scale_via_transform().
Referenced by test_scaling_perf().
Definition at line 71 of file IMB_scaling_performance_test.cc.
References IMB_FILTER_BILINEAR, IMB_FILTER_BOX, and imb_scale_via_transform().
Referenced by test_scaling_perf().
Definition at line 63 of file IMB_scaling_performance_test.cc.
References IMB_FILTER_NEAREST, and imb_scale_via_transform().
Referenced by test_scaling_perf().
|
static |
Definition at line 104 of file IMB_scaling_performance_test.cc.
References create_src_image(), DST_LARGER_X, DST_LARGER_Y, DST_SMALLER_X, DST_SMALLER_Y, IMB_freeImBuf(), SCOPED_TIMER, SRC_X, and SRC_Y.
Referenced by test_scaling_perf().
| TEST | ( | imbuf_scaling | , |
| scaling_perf_byte | ) |
Definition at line 134 of file IMB_scaling_performance_test.cc.
References test_scaling_perf().
| TEST | ( | imbuf_scaling | , |
| scaling_perf_float | ) |
Definition at line 139 of file IMB_scaling_performance_test.cc.
References test_scaling_perf().
|
static |
Definition at line 119 of file IMB_scaling_performance_test.cc.
References imb_scale_bilinear(), imb_scale_bilinear_st(), imb_scale_box(), imb_scale_box_st(), imb_scale_nearest(), imb_scale_nearest_st(), imb_xform_bilinear(), imb_xform_box(), imb_xform_nearest(), and scale_perf_impl().
Definition at line 21 of file IMB_scaling_performance_test.cc.
Referenced by scale_perf_impl().
Definition at line 22 of file IMB_scaling_performance_test.cc.
Referenced by scale_perf_impl().
Definition at line 18 of file IMB_scaling_performance_test.cc.
Referenced by scale_perf_impl().
Definition at line 19 of file IMB_scaling_performance_test.cc.
Referenced by scale_perf_impl().
|
staticconstexpr |
Definition at line 15 of file IMB_scaling_performance_test.cc.
Referenced by create_src_image(), and scale_perf_impl().
|
staticconstexpr |
Definition at line 16 of file IMB_scaling_performance_test.cc.
Referenced by create_src_image(), and scale_perf_impl().