Blender
V3.3
source
blender
compositor
operations
COM_ChannelMatteOperation.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
6
#include "
COM_MultiThreadedOperation.h
"
7
8
namespace
blender::compositor
{
9
14
class
ChannelMatteOperation
:
public
MultiThreadedOperation
{
15
private
:
16
SocketReader
*input_image_program_;
17
18
/* int color_space_; */
/* node->custom1 */
/* UNUSED */
/* TODO ? */
19
int
matte_channel_;
/* node->custom2 */
20
int
limit_method_;
/* node->algorithm */
21
int
limit_channel_;
/* node->channel */
22
float
limit_max_;
/* node->storage->t1 */
23
float
limit_min_;
/* node->storage->t2 */
24
25
float
limit_range_;
26
35
int
ids_[3];
36
37
public
:
41
ChannelMatteOperation
();
42
46
void
execute_pixel_sampled
(
float
output
[4],
float
x
,
float
y
,
PixelSampler
sampler
)
override
;
47
48
void
init_execution
()
override
;
49
void
deinit_execution
()
override
;
50
51
void
set_settings
(
NodeChroma
*node_chroma,
const
int
custom2)
52
{
53
limit_max_ = node_chroma->
t1
;
54
limit_min_ = node_chroma->
t2
;
55
limit_method_ = node_chroma->
algorithm
;
56
limit_channel_ = node_chroma->
channel
;
57
matte_channel_ = custom2;
58
}
59
60
void
update_memory_buffer_partial
(
MemoryBuffer
*
output
,
61
const
rcti
&
area
,
62
Span<MemoryBuffer *>
inputs
)
override
;
63
};
64
65
}
// 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::ChannelMatteOperation
Definition:
COM_ChannelMatteOperation.h:14
blender::compositor::ChannelMatteOperation::deinit_execution
void deinit_execution() override
Definition:
COM_ChannelMatteOperation.cc:65
blender::compositor::ChannelMatteOperation::init_execution
void init_execution() override
Definition:
COM_ChannelMatteOperation.cc:17
blender::compositor::ChannelMatteOperation::execute_pixel_sampled
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
Definition:
COM_ChannelMatteOperation.cc:70
blender::compositor::ChannelMatteOperation::set_settings
void set_settings(NodeChroma *node_chroma, const int custom2)
Definition:
COM_ChannelMatteOperation.h:51
blender::compositor::ChannelMatteOperation::update_memory_buffer_partial
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
Definition:
COM_ChannelMatteOperation.cc:109
blender::compositor::ChannelMatteOperation::ChannelMatteOperation
ChannelMatteOperation()
Definition:
COM_ChannelMatteOperation.cc:8
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
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
NodeChroma
Definition:
DNA_node_types.h:807
NodeChroma::algorithm
short algorithm
Definition:
DNA_node_types.h:811
NodeChroma::t1
float t1
Definition:
DNA_node_types.h:808
NodeChroma::channel
short channel
Definition:
DNA_node_types.h:811
NodeChroma::t2
float t2
Definition:
DNA_node_types.h:808
rcti
Definition:
DNA_vec_types.h:62
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1