Blender
V5.3
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
output
#define output
blender::gpu::Context
Definition
gpu_context_private.hh:35
blender::compositor
Definition
BKE_node.hh:77
blender::compositor::PaddingMethod
PaddingMethod
Definition
COM_algorithm_pad.hh:15
blender::compositor::PaddingMethod::Zero
@ Zero
Definition
COM_algorithm_pad.hh:17
blender::int2
VecBase< int32_t, 2 > int2
Definition
BLI_math_vector_types.hh:781
blender::uint8_t
unsigned char uint8_t
Definition
BKE_text.h:79
Generated on
for Blender by
doxygen
1.18.0