Blender  V2.93
Namespaces | Macros | Functions
COM_DespeckleOperation.cc File Reference
#include "MEM_guardedalloc.h"
#include "COM_DespeckleOperation.h"
#include "BLI_utildefines.h"

Go to the source code of this file.

Namespaces

 blender
 
 blender::compositor
 

Macros

#define TOT_DIV_ONE   1.0f
 
#define TOT_DIV_CNR   (float)M_SQRT1_2
 
#define WTOT   (TOT_DIV_ONE * 4 + TOT_DIV_CNR * 4)
 
#define COLOR_ADD(fac)
 

Functions

BLI_INLINE int blender::compositor::color_diff (const float a[3], const float b[3], const float threshold)
 

Macro Definition Documentation

◆ COLOR_ADD

#define COLOR_ADD (   fac)
Value:
{ \
madd_v4_v4fl(color_mid, in1, fac); \
if (color_diff(in1, color_org, this->m_threshold)) { \
w += fac; \
madd_v4_v4fl(color_mid_ok, in1, fac); \
} \
}
BLI_INLINE int color_diff(const float a[3], const float b[3], const float threshold)

◆ TOT_DIV_CNR

#define TOT_DIV_CNR   (float)M_SQRT1_2

◆ TOT_DIV_ONE

#define TOT_DIV_ONE   1.0f

◆ WTOT

#define WTOT   (TOT_DIV_ONE * 4 + TOT_DIV_CNR * 4)