Krita Source Code Documentation
Loading...
Searching...
No Matches
KoStreamedMathFunctions Namespace Reference

Functions

template<int pixelSize>
ALWAYS_INLINE void clearPixel (quint8 *dst)
 
template<int pixelSize>
ALWAYS_INLINE void copyPixel (const quint8 *src, quint8 *dst)
 

Function Documentation

◆ clearPixel()

template<int pixelSize>
ALWAYS_INLINE void KoStreamedMathFunctions::clearPixel ( quint8 * dst)

Definition at line 848 of file KoStreamedMath.h.

849{
850 std::memset(dst, 0, pixelSize);
851}

◆ copyPixel()

template<int pixelSize>
ALWAYS_INLINE void KoStreamedMathFunctions::copyPixel ( const quint8 * src,
quint8 * dst )

Definition at line 854 of file KoStreamedMath.h.

855{
856 std::memcpy(dst, src, pixelSize);
857}