Blender V4.3
image.h File Reference

Go to the source code of this file.

Classes

struct  CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >
 

Namespaces

namespace  CCL_NAMESPACE_BEGIN
 

Macros

#define SET_CUBIC_SPLINE_WEIGHTS(u, t)
 
#define DATA(x, y, z)   (read(data, xc[x], yc[y], zc[z], width, height, depth))
 
#define COL_TERM(col, row)
 
#define ROW_TERM(row)    (w[row] * (COL_TERM(0, row) + COL_TERM(1, row) + COL_TERM(2, row) + COL_TERM(3, row)))
 
#define DATA(x, y)   (read_clip(data, xc[x], yc[y], width, height))
 
#define TERM(col)
 

Functions

ccl_device_inline float CCL_NAMESPACE_BEGIN::frac (float x, int *ix)
 
ccl_device float4 CCL_NAMESPACE_BEGIN::kernel_tex_image_interp (KernelGlobals kg, int id, float x, float y)
 
ccl_device float4 CCL_NAMESPACE_BEGIN::kernel_tex_image_interp_3d (KernelGlobals kg, int id, float3 P, InterpolationType interp)
 

Macro Definition Documentation

◆ COL_TERM

#define COL_TERM ( col,
row )
Value:
(v[col] * (u[0] * DATA(0, col, row) + u[1] * DATA(1, col, row) + u[2] * DATA(2, col, row) + \
u[3] * DATA(3, col, row)))
ATTR_WARN_UNUSED_RESULT const BMVert * v
#define DATA(x, y, z)
uint col

◆ DATA [1/2]

#define DATA ( x,
y )   (read_clip(data, xc[x], yc[y], width, height))

◆ DATA [2/2]

#define DATA ( x,
y,
z )   (read(data, xc[x], yc[y], zc[z], width, height, depth))

◆ ROW_TERM

#define ROW_TERM ( row)     (w[row] * (COL_TERM(0, row) + COL_TERM(1, row) + COL_TERM(2, row) + COL_TERM(3, row)))

◆ SET_CUBIC_SPLINE_WEIGHTS

#define SET_CUBIC_SPLINE_WEIGHTS ( u,
t )
Value:
{ \
u[0] = (((-1.0f / 6.0f) * t + 0.5f) * t - 0.5f) * t + (1.0f / 6.0f); \
u[1] = ((0.5f * t - 1.0f) * t) * t + (2.0f / 3.0f); \
u[2] = ((-0.5f * t + 0.5f) * t + 0.5f) * t + (1.0f / 6.0f); \
u[3] = (1.0f / 6.0f) * t * t * t; \
} \
(void)0

Definition at line 17 of file cycles/kernel/device/cpu/image.h.

Referenced by CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_cubic(), and CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::tricubic_lookup().

◆ TERM

#define TERM ( col)
Value:
(v[col] * \
(u[0] * DATA(0, col) + u[1] * DATA(1, col) + u[2] * DATA(2, col) + u[3] * DATA(3, col)))

Referenced by CCL_NAMESPACE_BEGIN::TextureInterpolator< TexT, OutT >::interp_cubic().