New ("fullframe") CPU compositor backend is being used now, and all the code
related to "tiled" CPU compositor is just never used anymore. The new backend
is faster, uses less memory, better matches GPU compositor, etc.
TL;DR: 20 thousand lines of code gone.
This commit:
- Removes various bits and pieces related to "tiled" compositor (execution
groups, one-pixel-at-a-time node processing, read/write buffer operations
related to node execution groups).
- "GPU" (OpenCL) execution device, that was only used by several nodes of
the tiled compositor.
- With that, remove CLEW external library too, since nothing within Blender
uses OpenCL directly anymore.
Pull Request: https://projects.blender.org/blender/blender/pulls/118819
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
/* SPDX-FileCopyrightText: 2011 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include "COM_MultiThreadedOperation.h"
|
|
|
|
namespace blender::compositor {
|
|
|
|
class DisplaceOperation : public MultiThreadedOperation {
|
|
private:
|
|
float width_x4_;
|
|
float height_x4_;
|
|
|
|
int input_vector_width_;
|
|
int input_vector_height_;
|
|
|
|
std::function<void(float x, float y, float *out)> vector_read_fn_;
|
|
std::function<void(float x, float y, float *out)> scale_x_read_fn_;
|
|
std::function<void(float x, float y, float *out)> scale_y_read_fn_;
|
|
|
|
public:
|
|
DisplaceOperation();
|
|
|
|
void pixel_transform(const float xy[2], float r_uv[2], float r_deriv[2][2]);
|
|
|
|
void init_execution() override;
|
|
|
|
void get_area_of_interest(int input_idx, const rcti &output_area, rcti &r_input_area) override;
|
|
void update_memory_buffer_started(MemoryBuffer *output,
|
|
const rcti &area,
|
|
Span<MemoryBuffer *> inputs) override;
|
|
void update_memory_buffer_partial(MemoryBuffer *output,
|
|
const rcti &area,
|
|
Span<MemoryBuffer *> inputs) override;
|
|
|
|
private:
|
|
bool read_displacement(
|
|
float x, float y, float xscale, float yscale, const float origin[2], float &r_u, float &r_v);
|
|
};
|
|
|
|
} // namespace blender::compositor
|