Blender V5.0
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
8
9#include "COM_context.hh"
10#include "COM_result.hh"
11
12namespace blender::compositor {
13
14/* Possible padding method to use. */
15enum class PaddingMethod : uint8_t {
16 /* Pads with zeros. */
18 /* Pads by extending the edge. */
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. */
24void pad(Context &context,
25 const Result &input,
26 Result &output,
27 const int2 size,
28 const PaddingMethod padding_method);
29
30} // namespace blender::compositor
int pad[32 - sizeof(int)]
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
#define input
#define output
VecBase< int32_t, 2 > int2