Blender V4.3
COM_DespeckleOperation.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
12 private:
13 constexpr static int IMAGE_INPUT_INDEX = 0;
14 constexpr static int FACTOR_INPUT_INDEX = 1;
15
16 float threshold_;
17 float threshold_neighbor_;
18
19 // int filter_width_;
20 // int filter_height_;
21
22 public:
24
25 void set_threshold(float threshold)
26 {
27 threshold_ = threshold;
28 }
29 void set_threshold_neighbor(float threshold)
30 {
31 threshold_neighbor_ = threshold;
32 }
33
34 void get_area_of_interest(int input_idx, const rcti &output_area, rcti &r_input_area) override;
36 const rcti &area,
37 Span<MemoryBuffer *> inputs) override;
38};
39
40} // namespace blender::compositor
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
void get_area_of_interest(int input_idx, const rcti &output_area, rcti &r_input_area) override
Get input operation area being read by this operation on rendering given output area.
a MemoryBuffer contains access to the data