Blender V5.3
COM_symmetric_separable_blur_weights.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 <cstdint>
8#include <memory>
9
10#include "BLI_map.hh"
11#include "BLI_math_filter.hh"
12
14#include "COM_result.hh"
15
16namespace blender::compositor {
17
18class Context;
19
20/* -------------------------------------------------------------------- */
23
33
36
38
39/* -------------------------------------------------------------------- */
47
56
58
59/* -------------------------------------------------------------------- */
62
64 private:
66
67 public:
68 void reset() override;
69
70 /* Check if there is an available SymmetricSeparableBlurWeights cached resource with the given
71 * parameters in the container, if one exists, return it, otherwise, return a newly created one
72 * and add it to the container. In both cases, tag the cached resource as needed to keep it
73 * cached for the next evaluation. */
74 Result &get(Context &context, math::FilterKernel type, float radius);
75};
76
78
79} // namespace blender::compositor
Result & get(Context &context, math::FilterKernel type, float radius)
SymmetricSeparableBlurWeights(Context &context, math::FilterKernel type, float radius)
bool operator==(const BokehKernelKey &a, const BokehKernelKey &b)
unsigned __int64 uint64_t
Definition BKE_text.h:91