Blender
V3.3
source
blender
compositor
operations
COM_KeyingOperation.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 <
string.h
>
7
8
#include "
COM_MultiThreadedOperation.h
"
9
10
#include "
BLI_listbase.h
"
11
12
namespace
blender::compositor
{
13
17
class
KeyingOperation
:
public
MultiThreadedOperation
{
18
protected
:
19
SocketReader
*
pixel_reader_
;
20
SocketReader
*
screen_reader_
;
21
22
float
screen_balance_
;
23
24
public
:
25
KeyingOperation
();
26
27
void
init_execution
()
override
;
28
void
deinit_execution
()
override
;
29
30
void
set_screen_balance
(
float
value)
31
{
32
screen_balance_
= value;
33
}
34
35
void
execute_pixel_sampled
(
float
output
[4],
float
x
,
float
y
,
PixelSampler
sampler
)
override
;
36
37
void
update_memory_buffer_partial
(
MemoryBuffer
*
output
,
38
const
rcti
&
area
,
39
Span<MemoryBuffer *>
inputs
)
override
;
40
};
41
42
}
// namespace blender::compositor
x
x
Definition:
BLI_expr_pylike_eval_test.cc:342
BLI_listbase.h
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::KeyingOperation
Definition:
COM_KeyingOperation.h:17
blender::compositor::KeyingOperation::set_screen_balance
void set_screen_balance(float value)
Definition:
COM_KeyingOperation.h:30
blender::compositor::KeyingOperation::KeyingOperation
KeyingOperation()
Definition:
COM_KeyingOperation.cc:24
blender::compositor::KeyingOperation::init_execution
void init_execution() override
Definition:
COM_KeyingOperation.cc:36
blender::compositor::KeyingOperation::deinit_execution
void deinit_execution() override
Definition:
COM_KeyingOperation.cc:42
blender::compositor::KeyingOperation::update_memory_buffer_partial
void update_memory_buffer_partial(MemoryBuffer *output, const rcti &area, Span< MemoryBuffer * > inputs) override
Definition:
COM_KeyingOperation.cc:95
blender::compositor::KeyingOperation::pixel_reader_
SocketReader * pixel_reader_
Definition:
COM_KeyingOperation.h:19
blender::compositor::KeyingOperation::screen_balance_
float screen_balance_
Definition:
COM_KeyingOperation.h:22
blender::compositor::KeyingOperation::execute_pixel_sampled
void execute_pixel_sampled(float output[4], float x, float y, PixelSampler sampler) override
calculate a single pixel
Definition:
COM_KeyingOperation.cc:48
blender::compositor::KeyingOperation::screen_reader_
SocketReader * screen_reader_
Definition:
COM_KeyingOperation.h:20
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
string.h
rcti
Definition:
DNA_vec_types.h:62
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1