Blender  V3.3
Public Types | Public Member Functions | Static Public Attributes | List of all members
blender::imbuf::transform::Sampler< Filter, StorageType, NumChannels, UVWrapping > Class Template Reference

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
 

Detailed Description

template<eIMBInterpolationFilterMode Filter, typename StorageType, int NumChannels, typename UVWrapping>
class blender::imbuf::transform::Sampler< Filter, StorageType, NumChannels, UVWrapping >

Read a sample from an image buffer.

A sampler can read from an image buffer.

Definition at line 282 of file transform.cc.

Member Typedef Documentation

◆ ChannelType

template<eIMBInterpolationFilterMode Filter, typename StorageType , int NumChannels, typename UVWrapping >
using blender::imbuf::transform::Sampler< Filter, StorageType, NumChannels, UVWrapping >::ChannelType = StorageType

Definition at line 286 of file transform.cc.

◆ SampleType

template<eIMBInterpolationFilterMode Filter, typename StorageType , int NumChannels, typename UVWrapping >
using blender::imbuf::transform::Sampler< Filter, StorageType, NumChannels, UVWrapping >::SampleType = std::array<StorageType, NumChannels>

Definition at line 288 of file transform.cc.

Member Function Documentation

◆ sample()

template<eIMBInterpolationFilterMode Filter, typename StorageType , int NumChannels, typename UVWrapping >
void blender::imbuf::transform::Sampler< Filter, StorageType, NumChannels, UVWrapping >::sample ( const ImBuf source,
const float  u,
const float  v,
SampleType r_sample 
)
inline

Member Data Documentation

◆ ChannelLen

template<eIMBInterpolationFilterMode Filter, typename StorageType , int NumChannels, typename UVWrapping >
const int blender::imbuf::transform::Sampler< Filter, StorageType, NumChannels, UVWrapping >::ChannelLen = NumChannels
static

Definition at line 287 of file transform.cc.


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