Blender V4.3
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
6
7namespace blender::compositor {
8
9float 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
MINLINE float len_v2v2(const float v1[2], const float v2[2]) ATTR_WARN_UNUSED_RESULT
float calculate_distance(const float key[4], const float image[4]) override