Blender
V3.3
source
blender
compositor
operations
COM_DistanceYCCMatteOperation.cc
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2011 Blender Foundation. */
3
4
#include "
COM_DistanceYCCMatteOperation.h
"
5
6
namespace
blender::compositor
{
7
8
float
DistanceYCCMatteOperation::calculate_distance
(
const
float
key[4],
const
float
image
[4])
9
{
10
/* only measure the second 2 values */
11
return
len_v2v2
(key + 1,
image
+ 1);
12
}
13
14
}
// namespace blender::compositor
len_v2v2
MINLINE float len_v2v2(const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
Definition:
math_vector_inline.c:1022
COM_DistanceYCCMatteOperation.h
blender::compositor::DistanceYCCMatteOperation::calculate_distance
float calculate_distance(const float key[4], const float image[4]) override
Definition:
COM_DistanceYCCMatteOperation.cc:8
image
depth_tx normal_tx diffuse_light_tx specular_light_tx volume_light_tx environment_tx ambient_occlusion_tx aov_value_tx in_weight_img image(1, GPU_R32F, Qualifier::WRITE, ImageType::FLOAT_2D_ARRAY, "out_weight_img") .image(3
blender::compositor
Definition:
COM_defines.h:10
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1