Blender  V3.3
Public Types | Public Member Functions | List of all members
blender::imbuf::transform::ChannelConverter< StorageType, SourceNumChannels, DestinationNumChannels > Class Template Reference

Change the number of channels and store it. More...

Public Types

using SampleType = std::array< StorageType, SourceNumChannels >
 
using PixelType = PixelPointer< StorageType, DestinationNumChannels >
 

Public Member Functions

void convert_and_store (const SampleType &sample, PixelType &pixel_pointer)
 Convert the number of channels of the given sample to match the pixel pointer and store it at the location the pixel_pointer points at. More...
 

Detailed Description

template<typename StorageType, int SourceNumChannels, int DestinationNumChannels>
class blender::imbuf::transform::ChannelConverter< StorageType, SourceNumChannels, DestinationNumChannels >

Change the number of channels and store it.

Template class to convert and store a sample in a PixelPointer. It supports:

Definition at line 385 of file transform.cc.

Member Typedef Documentation

◆ PixelType

template<typename StorageType , int SourceNumChannels, int DestinationNumChannels>
using blender::imbuf::transform::ChannelConverter< StorageType, SourceNumChannels, DestinationNumChannels >::PixelType = PixelPointer<StorageType, DestinationNumChannels>

Definition at line 388 of file transform.cc.

◆ SampleType

template<typename StorageType , int SourceNumChannels, int DestinationNumChannels>
using blender::imbuf::transform::ChannelConverter< StorageType, SourceNumChannels, DestinationNumChannels >::SampleType = std::array<StorageType, SourceNumChannels>

Definition at line 387 of file transform.cc.

Member Function Documentation

◆ convert_and_store()

template<typename StorageType , int SourceNumChannels, int DestinationNumChannels>
void blender::imbuf::transform::ChannelConverter< StorageType, SourceNumChannels, DestinationNumChannels >::convert_and_store ( const SampleType sample,
PixelType pixel_pointer 
)
inline

Convert the number of channels of the given sample to match the pixel pointer and store it at the location the pixel_pointer points at.

Definition at line 394 of file transform.cc.

References BLI_assert_unreachable, BLI_STATIC_ASSERT, copy_v4_fl4(), copy_v4_v4(), copy_v4_v4_uchar(), blender::imbuf::transform::PixelPointer< StorageType, NumChannels >::get_pointer(), and sample.


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