Blender
V3.3
source
blender
compositor
operations
COM_ColorSpillOperation.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
6
#include "
COM_MultiThreadedOperation.h
"
7
8
namespace
blender::compositor
{
9
14
class
ColorSpillOperation
:
public
MultiThreadedOperation
{
15
protected
:
16
NodeColorspill
*
settings_
;
17
SocketReader
*
input_image_reader_
;
18
SocketReader
*
input_fac_reader_
;
19
int
spill_channel_
;
20
int
spill_method_
;
21
int
channel2_
;
22
int
channel3_
;
23
float
rmut_
,
gmut_
,
bmut_
;
24
25
public
:
29
ColorSpillOperation
();
30
34
void
execute_pixel_sampled
(
float
output
[4],
float
x
,
float
y
,
PixelSampler
sampler
)
override
;
35
36
void
init_execution
()
override
;
37
void
deinit_execution
()
override
;
38
39
void
set_settings
(
NodeColorspill
*node_color_spill)
40
{
41
settings_
= node_color_spill;
42
}
43
void
set_spill_channel
(
int
channel)
44
{
45
spill_channel_
= channel;
46
}
47
void
set_spill_method
(
int
method)
48
{
49
spill_method_
= method;
50
}
51
52
float
calculate_map_value
(
float
fac,
float
*
input
);
53
54
void
update_memory_buffer_partial
(
MemoryBuffer
*
output
,
55
const
rcti
&
area
,
56
Span<MemoryBuffer *>
inputs
)
override
;
57
};
58
59
}
// namespace blender::compositor
x
x
Definition:
BLI_expr_pylike_eval_test.cc:342
COM_MultiThreadedOperation.h
y
_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
Definition:
GPU_legacy_stubs.h:190
blender::Span
Definition:
BLI_span.hh:73
blender::compositor::ColorSpillOperation
Definition:
COM_ColorSpillOperation.h:14
blender::compositor::ColorSpillOperation::input_image_reader_
SocketReader * input_image_reader_
Definition:
COM_ColorSpillOperation.h:17
blender::compositor::ColorSpillOperation::set_settings
void set_settings(NodeColorspill *node_color_spill)
Definition:
COM_ColorSpillOperation.h:39
blender::compositor::ColorSpillOperation::set_spill_method
void set_spill_method(int method)
Definition:
COM_ColorSpillOperation.h:47
blender::compositor::ColorSpillOperation::rmut_
float rmut_
Definition:
COM_ColorSpillOperation.h:23
blender::compositor::ColorSpillOperation::gmut_
float gmut_
Definition:
COM_ColorSpillOperation.h:23
blender::compositor::ColorSpillOperation::channel2_
int channel2_
Definition:
COM_ColorSpillOperation.h:21
blender::compositor::ColorSpillOperation::init_execution
void init_execution() override
Definition:
COM_ColorSpillOperation.cc:22
blender::compositor::ColorSpillOperation::update_memory_buffer_partial
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
Definition:
COM_ColorSpillOperation.cc:104
blender::compositor::ColorSpillOperation::ColorSpillOperation
ColorSpillOperation()
Definition:
COM_ColorSpillOperation.cc:9
blender::compositor::ColorSpillOperation::input_fac_reader_
SocketReader * input_fac_reader_
Definition:
COM_ColorSpillOperation.h:18
blender::compositor::ColorSpillOperation::settings_
NodeColorspill * settings_
Definition:
COM_ColorSpillOperation.h:16
blender::compositor::ColorSpillOperation::channel3_
int channel3_
Definition:
COM_ColorSpillOperation.h:22
blender::compositor::ColorSpillOperation::spill_method_
int spill_method_
Definition:
COM_ColorSpillOperation.h:20
blender::compositor::ColorSpillOperation::spill_channel_
int spill_channel_
Definition:
COM_ColorSpillOperation.h:19
blender::compositor::ColorSpillOperation::calculate_map_value
float calculate_map_value(float fac, float *input)
blender::compositor::ColorSpillOperation::execute_pixel_sampled
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
Definition:
COM_ColorSpillOperation.cc:71
blender::compositor::ColorSpillOperation::set_spill_channel
void set_spill_channel(int channel)
Definition:
COM_ColorSpillOperation.h:43
blender::compositor::ColorSpillOperation::bmut_
float bmut_
Definition:
COM_ColorSpillOperation.h:23
blender::compositor::ColorSpillOperation::deinit_execution
void deinit_execution() override
Definition:
COM_ColorSpillOperation.cc:65
blender::compositor::MemoryBuffer
a MemoryBuffer contains access to the data of a chunk
Definition:
COM_MemoryBuffer.h:43
blender::compositor::MultiThreadedOperation
Definition:
COM_MultiThreadedOperation.h:10
blender::compositor::NodeOperation
NodeOperation contains calculation logic.
Definition:
COM_NodeOperation.h:303
sampler
depth_tx sampler(1, ImageType::FLOAT_2D, "combined_tx") .sampler(2
output
ccl_global KernelShaderEvalInput ccl_global float * output
Definition:
kernel/device/gpu/kernel.h:751
input
ccl_global KernelShaderEvalInput * input
Definition:
kernel/device/gpu/kernel.h:750
blender::compositor
Definition:
COM_defines.h:10
blender::compositor::area
static void area(int d1, int d2, int e1, int e2, float weights[2])
Definition:
COM_SMAAOperation.cc:113
blender::compositor::PixelSampler
PixelSampler
Definition:
COM_Enums.h:75
inputs
static bNodeSocketTemplate inputs[]
Definition:
node_texture_at.c:11
NodeColorspill
Definition:
DNA_node_types.h:887
rcti
Definition:
DNA_vec_types.h:62
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1