Blender  V2.93
COM_DenoiseOperation.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * Copyright 2019, Blender Foundation.
17  */
18 
19 #pragma once
20 
22 #include "DNA_node_types.h"
23 
24 namespace blender::compositor {
25 
27  private:
31  SocketReader *m_inputProgramColor;
32  SocketReader *m_inputProgramAlbedo;
33  SocketReader *m_inputProgramNormal;
34 
38  NodeDenoise *m_settings;
39 
40  public:
45  void initExecution() override;
46 
50  void deinitExecution() override;
51 
53  {
54  this->m_settings = settings;
55  }
57  ReadBufferOperation *readOperation,
58  rcti *output) override;
59 
60  protected:
61  void generateDenoise(float *data,
62  MemoryBuffer *inputTileColor,
63  MemoryBuffer *inputTileNormal,
64  MemoryBuffer *inputTileAlbedo,
65  NodeDenoise *settings);
66 
67  MemoryBuffer *createMemoryBuffer(rcti *rect) override;
68 };
69 
70 } // namespace blender::compositor
#define output
void setDenoiseSettings(NodeDenoise *settings)
bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) override
MemoryBuffer * createMemoryBuffer(rcti *rect) override
void generateDenoise(float *data, MemoryBuffer *inputTileColor, MemoryBuffer *inputTileNormal, MemoryBuffer *inputTileAlbedo, NodeDenoise *settings)
a MemoryBuffer contains access to the data of a chunk
NodeOperation contains calculation logic.