Blender
V5.0
source
blender
compositor
algorithms
COM_algorithm_pad.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2025 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
BLI_math_vector_types.hh
"
8
9
#include "
COM_context.hh
"
10
#include "
COM_result.hh
"
11
12
namespace
blender::compositor
{
13
14
/* Possible padding method to use. */
15
enum class
PaddingMethod
: uint8_t {
16
/* Pads with zeros. */
17
Zero
,
18
/* Pads by extending the edge. */
19
Extend
,
20
};
21
22
/* Pads the given input in both directions with the given size number of pixels. The output will be
23
* allocated internally and is thus expected not to be previously allocated. */
24
void
pad
(Context &context,
25
const
Result &
input
,
26
Result &
output
,
27
const
int2
size
,
28
const
PaddingMethod
padding_method);
29
30
}
// namespace blender::compositor
BLI_math_vector_types.hh
COM_context.hh
COM_result.hh
pad
int pad[32 - sizeof(int)]
Definition
atomic_ops_unix.h:3
size
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition
btDbvt.cpp:52
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::PaddingMethod
PaddingMethod
Definition
COM_algorithm_pad.hh:15
blender::compositor::PaddingMethod::Extend
@ Extend
Definition
COM_algorithm_pad.hh:19
blender::compositor::PaddingMethod::Zero
@ Zero
Definition
COM_algorithm_pad.hh:17
blender::int2
VecBase< int32_t, 2 > int2
Definition
BLI_math_vector_types.hh:601
Generated on
for Blender by
doxygen
1.16.1