Blender
V3.3
|
Read a sample from an image buffer. More...
Public Types | |
using | ChannelType = StorageType |
using | SampleType = std::array< StorageType, NumChannels > |
Public Member Functions | |
void | sample (const ImBuf *source, const float u, const float v, SampleType &r_sample) |
Static Public Attributes | |
static const int | ChannelLen = NumChannels |
Read a sample from an image buffer.
A sampler can read from an image buffer.
Definition at line 282 of file transform.cc.
using blender::imbuf::transform::Sampler< Filter, StorageType, NumChannels, UVWrapping >::ChannelType = StorageType |
Definition at line 286 of file transform.cc.
using blender::imbuf::transform::Sampler< Filter, StorageType, NumChannels, UVWrapping >::SampleType = std::array<StorageType, NumChannels> |
Definition at line 288 of file transform.cc.
|
inline |
Definition at line 290 of file transform.cc.
References bilinear_interpolation_color_char(), bilinear_interpolation_color_fl(), BLI_assert_unreachable, BLI_bilinear_interpolation_fl(), BLI_bilinear_interpolation_wrap_fl(), IMB_FILTER_BILINEAR, IMB_FILTER_NEAREST, nearest_interpolation_color_char(), ImBuf::rect_float, v, ImBuf::x, and ImBuf::y.
|
static |
Definition at line 287 of file transform.cc.