Blender  V2.93
COM_MathBaseOperation.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 
30  protected:
37 
38  bool m_useClamp;
39 
40  protected:
45 
46  void clampIfNeeded(float color[4]);
47 
48  public:
52  void initExecution() override;
53 
57  void deinitExecution() override;
58 
62  void determineResolution(unsigned int resolution[2],
63  unsigned int preferredResolution[2]) override;
64 
65  void setUseClamp(bool value)
66  {
67  this->m_useClamp = value;
68  }
69 };
70 
72  public:
74  {
75  }
76  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
77 };
79  public:
81  {
82  }
83  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
84 };
86  public:
88  {
89  }
90  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
91 };
93  public:
95  {
96  }
97  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
98 };
100  public:
102  {
103  }
104  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
105 };
107  public:
109  {
110  }
111  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
112 };
114  public:
116  {
117  }
118  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
119 };
120 
122  public:
124  {
125  }
126  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
127 };
129  public:
131  {
132  }
133  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
134 };
136  public:
138  {
139  }
140  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
141 };
142 
144  public:
146  {
147  }
148  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
149 };
151  public:
153  {
154  }
155  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
156 };
158  public:
160  {
161  }
162  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
163 };
165  public:
167  {
168  }
169  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
170 };
172  public:
174  {
175  }
176  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
177 };
179  public:
181  {
182  }
183  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
184 };
186  public:
188  {
189  }
190  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
191 };
193  public:
195  {
196  }
197  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
198 };
200  public:
202  {
203  }
204  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
205 };
207  public:
209  {
210  }
211  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
212 };
213 
215  public:
217  {
218  }
219  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
220 };
221 
223  public:
225  {
226  }
227  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
228 };
229 
231  public:
233  {
234  }
235  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
236 };
237 
239  public:
241  {
242  }
243  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
244 };
245 
247  public:
249  {
250  }
251  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
252 };
253 
255  public:
257  {
258  }
259  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
260 };
261 
263  public:
265  {
266  }
267  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
268 };
269 
271  public:
273  {
274  }
275  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
276 };
277 
279  public:
281  {
282  }
283  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
284 };
285 
287  public:
289  {
290  }
291  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
292 };
293 
295  public:
297  {
298  }
299  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
300 };
301 
303  public:
305  {
306  }
307  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
308 };
309 
311  public:
313  {
314  }
315  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
316 };
317 
319  public:
321  {
322  }
323  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
324 };
325 
327  public:
329  {
330  }
331  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
332 };
333 
335  public:
337  {
338  }
339  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
340 };
341 
343  public:
345  {
346  }
347  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
348 };
349 
351  public:
353  {
354  }
355  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
356 };
357 
359  public:
361  {
362  }
363  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
364 };
365 
367  public:
369  {
370  }
371  void executePixelSampled(float output[4], float x, float y, PixelSampler sampler) override;
372 };
373 
374 } // 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 determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]) override
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
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
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.