Blender  V2.93
Static Public Member Functions | List of all members
CCL_NAMESPACE_BEGIN::TextureInterpolator< T > Struct Template Reference

#include <kernel_cpu_image.h>

Static Public Member Functions

static ccl_always_inline float4 read (float4 r)
 
static ccl_always_inline float4 read (uchar4 r)
 
static ccl_always_inline float4 read (uchar r)
 
static ccl_always_inline float4 read (float r)
 
static ccl_always_inline float4 read (half4 r)
 
static ccl_always_inline float4 read (half r)
 
static ccl_always_inline float4 read (uint16_t r)
 
static ccl_always_inline float4 read (ushort4 r)
 
static ccl_always_inline float4 read (const T *data, int x, int y, int width, int height)
 
static ccl_always_inline int wrap_periodic (int x, int width)
 
static ccl_always_inline int wrap_clamp (int x, int width)
 
static ccl_always_inline float4 interp_closest (const TextureInfo &info, float x, float y)
 
static ccl_always_inline float4 interp_linear (const TextureInfo &info, float x, float y)
 
static ccl_always_inline float4 interp_cubic (const TextureInfo &info, float x, float y)
 
static ccl_always_inline float4 interp (const TextureInfo &info, float x, float y)
 
static ccl_always_inline float4 interp_3d_closest (const TextureInfo &info, float x, float y, float z)
 
static ccl_always_inline float4 interp_3d_linear (const TextureInfo &info, float x, float y, float z)
 
static ccl_never_inline float4 interp_3d_cubic (const TextureInfo &info, float x, float y, float z)
 
static ccl_always_inline float4 interp_3d (const TextureInfo &info, float x, float y, float z, InterpolationType interp)
 

Detailed Description

template<typename T>
struct CCL_NAMESPACE_BEGIN::TextureInterpolator< T >

Definition at line 48 of file kernel_cpu_image.h.

Member Function Documentation

◆ interp()

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::interp ( const TextureInfo info,
float  x,
float  y 
)
inlinestatic

◆ interp_3d()

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::interp_3d ( const TextureInfo info,
float  x,
float  y,
float  z,
InterpolationType  interp 
)
inlinestatic

◆ interp_3d_closest()

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::interp_3d_closest ( const TextureInfo info,
float  x,
float  y,
float  z 
)
inlinestatic

◆ interp_3d_cubic()

template<typename T >
static ccl_never_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::interp_3d_cubic ( const TextureInfo info,
float  x,
float  y,
float  z 
)
inlinestatic

◆ interp_3d_linear()

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::interp_3d_linear ( const TextureInfo info,
float  x,
float  y,
float  z 
)
inlinestatic

◆ interp_closest()

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::interp_closest ( const TextureInfo info,
float  x,
float  y 
)
inlinestatic

◆ interp_cubic()

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::interp_cubic ( const TextureInfo info,
float  x,
float  y 
)
inlinestatic

◆ interp_linear()

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::interp_linear ( const TextureInfo info,
float  x,
float  y 
)
inlinestatic

◆ read() [1/9]

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::read ( const T data,
int  x,
int  y,
int  width,
int  height 
)
inlinestatic

Definition at line 97 of file kernel_cpu_image.h.

References data, height, make_float4, width, x, and y.

◆ read() [2/9]

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::read ( float  r)
inlinestatic

Definition at line 67 of file kernel_cpu_image.h.

References make_float4, and r.

◆ read() [3/9]

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::read ( float4  r)
inlinestatic

Definition at line 50 of file kernel_cpu_image.h.

References r.

◆ read() [4/9]

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::read ( half  r)
inlinestatic

Definition at line 79 of file kernel_cpu_image.h.

References half_to_float(), make_float4, and r.

◆ read() [5/9]

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::read ( half4  r)
inlinestatic

Definition at line 74 of file kernel_cpu_image.h.

References half4_to_float4(), and r.

◆ read() [6/9]

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::read ( uchar  r)
inlinestatic

Definition at line 61 of file kernel_cpu_image.h.

References make_float4, and r.

◆ read() [7/9]

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::read ( uchar4  r)
inlinestatic

Definition at line 55 of file kernel_cpu_image.h.

References make_float4, and r.

◆ read() [8/9]

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::read ( uint16_t  r)
inlinestatic

Definition at line 85 of file kernel_cpu_image.h.

References make_float4, and r.

◆ read() [9/9]

template<typename T >
static ccl_always_inline float4 CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::read ( ushort4  r)
inlinestatic

Definition at line 91 of file kernel_cpu_image.h.

References make_float4, and r.

◆ wrap_clamp()

template<typename T >
static ccl_always_inline int CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::wrap_clamp ( int  x,
int  width 
)
inlinestatic

Definition at line 113 of file kernel_cpu_image.h.

References clamp(), width, and x.

◆ wrap_periodic()

template<typename T >
static ccl_always_inline int CCL_NAMESPACE_BEGIN::TextureInterpolator< T >::wrap_periodic ( int  x,
int  width 
)
inlinestatic

Definition at line 105 of file kernel_cpu_image.h.

References width, and x.


The documentation for this struct was generated from the following file: