Blender V5.3
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"
9
10#include "COM_context.hh"
11#include "COM_result.hh"
12
13namespace 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. */
20 const Result &input,
22 const float2 &radius,
24 const bool extend_bounds = false);
25
26} // namespace blender::compositor
#define output
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)