Blender
V4.3
source
blender
compositor
operations
COM_DistanceYCCMatteOperation.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2011 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#include "
COM_DistanceYCCMatteOperation.h
"
6
7
namespace
blender::compositor
{
8
9
float
DistanceYCCMatteOperation::calculate_distance
(
const
float
key[4],
const
float
image[4])
10
{
11
/* only measure the second 2 values */
12
return
len_v2v2
(key + 1, image + 1);
13
}
14
15
}
// namespace blender::compositor
len_v2v2
MINLINE float len_v2v2(const float v1[2], const float v2[2]) ATTR_WARN_UNUSED_RESULT
Definition
math_vector_inline.c:1021
COM_DistanceYCCMatteOperation.h
blender::compositor::DistanceYCCMatteOperation::calculate_distance
float calculate_distance(const float key[4], const float image[4]) override
Definition
COM_DistanceYCCMatteOperation.cc:9
blender::compositor
Definition
COM_JumpFloodingAlgorithm.cc:20
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0