Blender  V3.3
COM_ConvertOperation.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 
8 namespace blender::compositor {
9 
11  protected:
13 
14  public:
16 
17  void init_execution() override;
18  void deinit_execution() override;
19 
21  const rcti &area,
23 
24  protected:
25  virtual void hash_output_params() override;
27 };
28 
30  public:
32 
33  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
34 
35  protected:
37 };
38 
40  public:
42 
43  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
44 
45  protected:
47 };
48 
50  public:
52 
53  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
54 
55  protected:
57 };
58 
60  public:
62 
63  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
64 
65  protected:
67 };
68 
70  public:
72 
73  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
74 
75  protected:
77 };
78 
80  public:
82 
83  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
84 
85  protected:
87 };
88 
90  public:
92 
93  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
94 
95  protected:
97 };
98 
100  private:
102  int mode_;
103 
104  public:
106 
107  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
108 
110  void set_mode(int mode);
111 
112  protected:
113  void hash_output_params() override;
115 };
116 
118  private:
120  int mode_;
121 
122  public:
124 
125  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
126 
128  void set_mode(int mode);
129 
130  protected:
131  void hash_output_params() override;
133 };
134 
136  public:
138 
139  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
140 
141  protected:
143 };
144 
146  public:
148 
149  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
150 
151  protected:
153 };
154 
156  public:
158 
159  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
160 
161  protected:
163 };
164 
166  public:
168 
169  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
170 
171  protected:
173 };
174 
176  public:
178 
179  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
180 
181  protected:
183 };
184 
186  public:
188 
189  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
190 
191  protected:
193 };
194 
196  public:
198 
199  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
200 
201  protected:
203 };
204 
206  public:
208 
209  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
210 
211  protected:
213 };
214 
216  private:
217  SocketReader *input_operation_;
218  int channel_;
219 
220  public:
222  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
223 
224  void init_execution() override;
225  void deinit_execution() override;
226 
227  void set_channel(int channel)
228  {
229  channel_ = channel;
230  }
231 
233  const rcti &area,
234  Span<MemoryBuffer *> inputs) override;
235 };
236 
238  private:
239  SocketReader *input_channel1_operation_;
240  SocketReader *input_channel2_operation_;
241  SocketReader *input_channel3_operation_;
242  SocketReader *input_channel4_operation_;
243 
244  public:
246  void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override;
247 
248  void init_execution() override;
249  void deinit_execution() override;
250 
252  const rcti &area,
253  Span<MemoryBuffer *> inputs) override;
254 };
255 
256 } // 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
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) final
virtual void update_memory_buffer_partial(BuffersIterator< float > &it)=0
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(BuffersIterator< float > &it) override
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
a MemoryBuffer contains access to the data of a chunk
NodeOperation contains calculation logic.
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
depth_tx sampler(1, ImageType::FLOAT_2D, "combined_tx") .sampler(2
ccl_global KernelShaderEvalInput ccl_global float * output
static void area(int d1, int d2, int e1, int e2, float weights[2])
typename BuffersIteratorBuilder< T >::Iterator BuffersIterator
static bNodeSocketTemplate inputs[]