Blender V4.5
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
8
9#include "DNA_scene_types.h"
10
11#include "COM_context.hh"
12#include "COM_result.hh"
13
14namespace blender::compositor {
15
16/* Blur the input using a horizontal and a vertical separable blur passes given a certain radius
17 * and filter type using SymmetricSeparableBlurWeights. The output is written to the given output
18 * result, which will be allocated internally and is thus expected not to be previously allocated.
19 * If extend_bounds is true, the output will have an extra radius amount of pixels on the boundary
20 * of the image, where blurring can take place assuming a fully transparent out of bound values. */
22 const Result &input,
24 const float2 &radius,
25 const int filter_type = R_FILTER_GAUSS,
26 const bool extend_bounds = false);
27
28} // namespace blender::compositor
@ R_FILTER_GAUSS
#define input
#define output
void symmetric_separable_blur(Context &context, const Result &input, Result &output, const float2 &radius, const int filter_type=R_FILTER_GAUSS, const bool extend_bounds=false)
VecBase< float, 2 > float2