Blender
V3.3
|
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... | |
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.
using blender::imbuf::transform::ChannelConverter< StorageType, SourceNumChannels, DestinationNumChannels >::PixelType = PixelPointer<StorageType, DestinationNumChannels> |
Definition at line 388 of file transform.cc.
using blender::imbuf::transform::ChannelConverter< StorageType, SourceNumChannels, DestinationNumChannels >::SampleType = std::array<StorageType, SourceNumChannels> |
Definition at line 387 of file transform.cc.
|
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.