Blender V4.3
COM_ColorSpillOperation.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9namespace blender::compositor {
10
16 protected:
22 float rmut_, gmut_, bmut_;
23
24 public:
26
27 void init_execution() override;
28
29 void set_settings(NodeColorspill *node_color_spill)
30 {
31 settings_ = node_color_spill;
32 }
33 void set_spill_channel(int channel)
34 {
35 spill_channel_ = channel;
36 }
37 void set_spill_method(int method)
38 {
39 spill_method_ = method;
40 }
41
42 float calculate_map_value(float fac, float *input);
43
45 const rcti &area,
46 Span<MemoryBuffer *> inputs) override;
47};
48
49} // namespace blender::compositor
void set_settings(NodeColorspill *node_color_spill)
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
float calculate_map_value(float fac, float *input)
a MemoryBuffer contains access to the data