Blender  V2.93
COM_ConvertOperation.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 2011, Blender Foundation.
17  */
18 
19 #pragma once
20 
21 #include "COM_NodeOperation.h"
22 
23 namespace blender::compositor {
24 
26  protected:
28 
29  public:
31 
32  void initExecution() override;
33  void deinitExecution() override;
34 };
35 
37  public:
39 
40  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
41 };
42 
44  public:
46 
47  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
48 };
49 
51  public:
53 
54  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
55 };
56 
58  public:
60 
61  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
62 };
63 
65  public:
67 
68  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
69 };
70 
72  public:
74 
75  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
76 };
77 
79  public:
81 
82  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
83 };
84 
86  private:
88  int m_mode;
89 
90  public:
92 
93  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
94 
96  void setMode(int mode);
97 };
98 
100  private:
102  int m_mode;
103 
104  public:
106 
107  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
108 
110  void setMode(int mode);
111 };
112 
114  public:
116 
117  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
118 };
119 
121  public:
123 
124  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
125 };
126 
128  public:
130 
131  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
132 };
133 
135  public:
137 
138  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
139 };
140 
142  public:
144 
145  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
146 };
147 
149  public:
151 
152  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
153 };
154 
156  private:
157  SocketReader *m_inputOperation;
158  int m_channel;
159 
160  public:
162  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
163 
164  void initExecution() override;
165  void deinitExecution() override;
166 
167  void setChannel(int channel)
168  {
169  this->m_channel = channel;
170  }
171 };
172 
174  private:
175  SocketReader *m_inputChannel1Operation;
176  SocketReader *m_inputChannel2Operation;
177  SocketReader *m_inputChannel3Operation;
178  SocketReader *m_inputChannel4Operation;
179 
180  public:
182  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
183 
184  void initExecution() override;
185  void deinitExecution() override;
186 };
187 
188 } // namespace blender::compositor
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
#define output
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
NodeOperation contains calculation logic.
void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel