Blender V4.3
COM_ChannelMatteOperation.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2012 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9namespace blender::compositor {
10
16 private:
17 // int color_space_; /* node->custom1 */ /* UNUSED */ /* TODO? */
18 int matte_channel_; /* node->custom2 */
19 int limit_method_; /* node->algorithm */
20 int limit_channel_; /* node->channel */
21 float limit_max_; /* node->storage->t1 */
22 float limit_min_; /* node->storage->t2 */
23
24 float limit_range_;
25
35 int ids_[3];
36
37 public:
39
40 void init_execution() override;
41
42 void set_settings(NodeChroma *node_chroma, const int custom2)
43 {
44 limit_max_ = node_chroma->t1;
45 limit_min_ = node_chroma->t2;
46 limit_method_ = node_chroma->algorithm;
47 limit_channel_ = node_chroma->channel;
48 matte_channel_ = custom2;
49 }
50
52 const rcti &area,
53 Span<MemoryBuffer *> inputs) override;
54};
55
56} // namespace blender::compositor
void set_settings(NodeChroma *node_chroma, const int custom2)
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
a MemoryBuffer contains access to the data