Blender  V3.3
COM_GaussianBokehBlurOperation.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. */
3 
4 #pragma once
5 
7 #include "COM_NodeOperation.h"
9 
10 namespace blender::compositor {
11 
13  private:
14  float *gausstab_;
15  int radx_, rady_;
16  float radxf_;
17  float radyf_;
18  void update_gauss();
19 
20  public:
22  void init_data() override;
23  void init_execution() override;
24  void *initialize_tile_data(rcti *rect) override;
28  void execute_pixel(float output[4], int x, int y, void *data) override;
29 
33  void deinit_execution() override;
34 
36  ReadBufferOperation *read_operation,
37  rcti *output) override;
38 
39  void get_area_of_interest(int input_idx, const rcti &output_area, rcti &r_input_area) override;
41  const rcti &area,
42  Span<MemoryBuffer *> inputs) override;
43 };
44 
46  private:
47  float **maintabs_;
48 
49  void update_gauss();
50  int filtersizex_;
51  int filtersizey_;
52  float radx_;
53  float rady_;
54 
55  public:
57  void init_data() override;
58  void init_execution() override;
59  void *initialize_tile_data(rcti *rect) override;
63  void execute_pixel(float output[4], int x, int y, void *data) override;
64 
68  void deinit_execution() override;
69 
71  ReadBufferOperation *read_operation,
72  rcti *output) override;
73 
74  void get_area_of_interest(int input_idx, const rcti &output_area, rcti &r_input_area) override;
76  const rcti &area,
77  Span<MemoryBuffer *> inputs) override;
78 };
79 
80 } // 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
bool determine_depending_area_of_interest(rcti *input, ReadBufferOperation *read_operation, rcti *output) 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.
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
void execute_pixel(float output[4], int x, int y, void *data) override
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
bool determine_depending_area_of_interest(rcti *input, ReadBufferOperation *read_operation, rcti *output) 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.
void execute_pixel(float output[4], int x, int y, void *data) override
a MemoryBuffer contains access to the data of a chunk
ccl_global KernelShaderEvalInput ccl_global float * output
ccl_global KernelShaderEvalInput * input
static void area(int d1, int d2, int e1, int e2, float weights[2])
static bNodeSocketTemplate inputs[]