Blender V5.0
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
10namespace 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. */
16void smaa(Context &context,
17 const Result &input,
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
#define input
#define output
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