Blender  V3.3
COM_KeyingClipOperation.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2012 Blender Foundation. */
3 
4 #pragma once
5 
7 
8 namespace blender::compositor {
9 
14  protected:
15  float clip_black_;
16  float clip_white_;
17 
20 
22 
23  public:
25 
26  void set_clip_black(float value)
27  {
28  clip_black_ = value;
29  }
30  void set_clip_white(float value)
31  {
32  clip_white_ = value;
33  }
34 
35  void set_kernel_radius(int value)
36  {
37  kernel_radius_ = value;
38  }
39  void set_kernel_tolerance(float value)
40  {
41  kernel_tolerance_ = value;
42  }
43 
44  void set_is_edge_matte(bool value)
45  {
46  is_edge_matte_ = value;
47  }
48 
49  void *initialize_tile_data(rcti *rect) override;
50 
51  void execute_pixel(float output[4], int x, int y, void *data) override;
52 
54  ReadBufferOperation *read_operation,
55  rcti *output) override;
56 
57  void get_area_of_interest(int input_idx, const rcti &output_area, rcti &r_input_area) override;
59  const rcti &area,
60  Span<MemoryBuffer *> inputs) override;
61 };
62 
63 } // 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 execute_pixel(float output[4], int x, int y, void *data) override
calculate a single pixel
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) 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.
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[]