Blender
V5.3
source
blender
compositor
algorithms
COM_algorithm_symmetric_separable_blur.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 "
BLI_math_filter.hh
"
8
#include "
BLI_math_vector_types.hh
"
9
10
#include "
COM_context.hh
"
11
#include "
COM_result.hh
"
12
13
namespace
blender::compositor
{
14
15
/* Blur the input using a horizontal and a vertical separable blur passes given a certain radius
16
* and filter type using SymmetricSeparableBlurWeights. If extend_bounds is true, the input will be
17
* zero padded by radius amount of pixels. The result is written to the given output, which will be
18
* allocated internally and is thus expected not to be previously allocated. */
19
void
symmetric_separable_blur
(
Context
&context,
20
const
Result
&input,
21
Result
&
output
,
22
const
float2
&radius,
23
const
math::FilterKernel
filter_type =
math::FilterKernel::Gauss
,
24
const
bool
extend_bounds =
false
);
25
26
}
// namespace blender::compositor
BLI_math_filter.hh
BLI_math_vector_types.hh
COM_context.hh
COM_result.hh
output
#define output
blender::compositor::Context
Definition
COM_context.hh:53
blender::compositor::Result
Definition
COM_result.hh:125
blender::compositor
Definition
BKE_node.hh:77
blender::compositor::symmetric_separable_blur
void symmetric_separable_blur(Context &context, const Result &input, Result &output, const float2 &radius, const math::FilterKernel filter_type=math::FilterKernel::Gauss, const bool extend_bounds=false)
Definition
symmetric_separable_blur.cc:152
blender::gpu::shader::metadata::float2
@ float2
Definition
metadata.hh:72
blender::math::FilterKernel
FilterKernel
Definition
BLI_math_filter.hh:13
blender::math::FilterKernel::Gauss
@ Gauss
Definition
BLI_math_filter.hh:19
Generated on
for Blender by
doxygen
1.18.0