Blender V4.3
COM_BuffersIterator_test.cc File Reference
#include "testing/testing.h"
#include "BLI_array.hh"
#include "COM_BuffersIterator.h"

Go to the source code of this file.

Classes

class  blender::compositor::tests::BuffersIteratorTest

Namespaces

namespace  blender
namespace  blender::compositor
namespace  blender::compositor::tests

Typedefs

using blender::compositor::tests::IterFunc = std::function<void(BuffersIterator<float> &it, const rcti &area)>
using blender::compositor::tests::ValidateElemFunc = std::function<void(float *out, Span<const float *> ins, int x, int y)>

Functions

static floatblender::compositor::tests::create_buffer (int len)
static const floatblender::compositor::tests::create_input_buffer (int input_idx, bool is_a_single_elem)
static void blender::compositor::tests::iterate_coordinates (BuffersIterator< float > &it, const rcti &area)
 blender::compositor::tests::TEST_F (BuffersIteratorTest, CoordinatesIterationWithNoInputs)
 blender::compositor::tests::TEST_F (BuffersIteratorTest, CoordinatesIterationWithInputs)
 blender::compositor::tests::TEST_F (BuffersIteratorTest, OutputIteration)
 blender::compositor::tests::TEST_F (BuffersIteratorTest, OutputAndInputsIteration)

Variables

constexpr int blender::compositor::tests::BUFFER_WIDTH = 5
constexpr int blender::compositor::tests::BUFFER_HEIGHT = 4
constexpr int blender::compositor::tests::BUFFER_OFFSET_X = 5
constexpr int blender::compositor::tests::BUFFER_OFFSET_Y = 6
constexpr int blender::compositor::tests::NUM_CHANNELS = 4
constexpr int blender::compositor::tests::FULL_BUFFER_LEN = BUFFER_WIDTH * BUFFER_HEIGHT * NUM_CHANNELS
constexpr int blender::compositor::tests::SINGLE_ELEM_BUFFER_LEN = NUM_CHANNELS
constexpr int blender::compositor::tests::NUM_INPUTS = 2