Blender  V2.93
COM_FastGaussianBlurOperation.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_BlurBaseOperation.h"
22 #include "DNA_node_types.h"
23 
24 namespace blender::compositor {
25 
27  private:
28  float m_sx;
29  float m_sy;
30  MemoryBuffer *m_iirgaus;
31 
32  public:
35  ReadBufferOperation *readOperation,
36  rcti *output) override;
37  void executePixel(float output[4], int x, int y, void *data) override;
38 
39  static void IIR_gauss(MemoryBuffer *src, float sigma, unsigned int channel, unsigned int xy);
40  void *initializeTileData(rcti *rect) override;
41  void deinitExecution() override;
42  void initExecution() override;
43 };
44 
45 enum {
49 };
50 
52  private:
53  float m_sigma;
54  MemoryBuffer *m_iirgaus;
55  SocketReader *m_inputprogram;
56 
61  int m_overlay;
62 
63  public:
66  ReadBufferOperation *readOperation,
67  rcti *output) override;
68  void executePixel(float output[4], int x, int y, void *data) override;
69 
70  void *initializeTileData(rcti *rect) override;
71  void deinitExecution() override;
72  void initExecution() override;
73  void setSigma(float sigma)
74  {
75  this->m_sigma = sigma;
76  }
77 
78  /* used for DOF blurring ZBuffer */
79  void setOverlay(int overlay)
80  {
81  this->m_overlay = overlay;
82  }
83 };
84 
85 } // 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 executePixel(float output[4], int x, int y, void *data) override
calculate a single pixel
static void IIR_gauss(MemoryBuffer *src, float sigma, unsigned int channel, unsigned int xy)
bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) override
bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) override
void executePixel(float output[4], int x, int y, void *data) override
calculate a single pixel
a MemoryBuffer contains access to the data of a chunk
NodeOperation contains calculation logic.