Krita Source Code Documentation
Loading...
Searching...
No Matches
PixelStateRecoverHelper< float, _impl > Struct Template Reference

#include <KoStreamedMath.h>

Public Types

using float_m = typename float_v::batch_bool_type
 
using float_v = xsimd::batch<float, _impl>
 

Public Member Functions

ALWAYS_INLINE PixelStateRecoverHelper (const float_v &c1, const float_v &c2, const float_v &c3)
 
ALWAYS_INLINE void recoverPixels (const float_m &mask, float_v &c1, float_v &c2, float_v &c3) const
 

Private Attributes

const float_v m_orig_c1
 
const float_v m_orig_c2
 
const float_v m_orig_c3
 

Detailed Description

template<class _impl>
struct PixelStateRecoverHelper< float, _impl >

Definition at line 534 of file KoStreamedMath.h.

Member Typedef Documentation

◆ float_m

template<class _impl >
using PixelStateRecoverHelper< float, _impl >::float_m = typename float_v::batch_bool_type

Definition at line 536 of file KoStreamedMath.h.

◆ float_v

template<class _impl >
using PixelStateRecoverHelper< float, _impl >::float_v = xsimd::batch<float, _impl>

Definition at line 535 of file KoStreamedMath.h.

Constructor & Destructor Documentation

◆ PixelStateRecoverHelper()

template<class _impl >
ALWAYS_INLINE PixelStateRecoverHelper< float, _impl >::PixelStateRecoverHelper ( const float_v & c1,
const float_v & c2,
const float_v & c3 )
inline

Definition at line 539 of file KoStreamedMath.h.

Member Function Documentation

◆ recoverPixels()

template<class _impl >
ALWAYS_INLINE void PixelStateRecoverHelper< float, _impl >::recoverPixels ( const float_m & mask,
float_v & c1,
float_v & c2,
float_v & c3 ) const
inline

Definition at line 547 of file KoStreamedMath.h.

547 {
548 if (xsimd::any(mask)) {
549 c1 = xsimd::select(mask, m_orig_c1, c1);
550 c2 = xsimd::select(mask, m_orig_c2, c2);
551 c3 = xsimd::select(mask, m_orig_c3, c3);
552 }
553 }

Member Data Documentation

◆ m_orig_c1

template<class _impl >
const float_v PixelStateRecoverHelper< float, _impl >::m_orig_c1
private

Definition at line 556 of file KoStreamedMath.h.

◆ m_orig_c2

template<class _impl >
const float_v PixelStateRecoverHelper< float, _impl >::m_orig_c2
private

Definition at line 557 of file KoStreamedMath.h.

◆ m_orig_c3

template<class _impl >
const float_v PixelStateRecoverHelper< float, _impl >::m_orig_c3
private

Definition at line 558 of file KoStreamedMath.h.


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