Blender
V5.0
source
blender
compositor
algorithms
COM_algorithm_smaa.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
COM_context.hh
"
8
#include "
COM_result.hh
"
9
10
namespace
blender::compositor
{
11
12
/* Anti-alias the given input using the SMAA algorithm and write the result into the given output.
13
* See the SMAA_THRESHOLD, SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR, and SMAA_CORNER_ROUNDING defines
14
* in the implementation for information on the parameters. Only Float and Color result types are
15
* supported. */
16
void
smaa
(
Context
&context,
17
const
Result
&
input
,
18
Result
&
output
,
19
const
float
threshold = 0.1f,
20
const
float
local_contrast_adaptation_factor = 2.0f,
21
const
int
corner_rounding = 25);
22
23
}
// namespace blender::compositor
COM_context.hh
COM_result.hh
blender::compositor::Context
Definition
COM_context.hh:44
blender::compositor::Result
Definition
COM_result.hh:100
input
#define input
Definition
gpu_shader_compat_cxx.hh:170
output
#define output
Definition
gpu_shader_compat_cxx.hh:171
blender::compositor
Definition
BKE_node.hh:77
blender::compositor::smaa
void smaa(Context &context, const Result &input, Result &output, const float threshold=0.1f, const float local_contrast_adaptation_factor=2.0f, const int corner_rounding=25)
Definition
smaa.cc:1646
Generated on
for Blender by
doxygen
1.16.1