Blender V4.3
COM_DistanceRGBMatteOperation.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:
18
19 virtual float calculate_distance(const float key[4], const float image[4]);
20
21 public:
23
24 void set_settings(const NodeChroma *node_chroma)
25 {
26 settings_ = node_chroma;
27 }
28
30 const rcti &area,
31 Span<MemoryBuffer *> inputs) override;
32};
33
34} // namespace blender::compositor
virtual float calculate_distance(const float key[4], const float image[4])
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
a MemoryBuffer contains access to the data