Qt 4.8
Public Functions | Public Variables | List of all members
Blend_RGB32_on_RGB32_ConstAlpha Struct Reference

Public Functions

 Blend_RGB32_on_RGB32_ConstAlpha (quint32 alpha)
 
void flush (void *)
 
void write (quint32 *dst, quint32 src)
 

Public Variables

quint32 m_alpha
 
quint32 m_ialpha
 

Detailed Description

Definition at line 572 of file qblendfunctions.cpp.

Constructors and Destructors

◆ Blend_RGB32_on_RGB32_ConstAlpha()

Blend_RGB32_on_RGB32_ConstAlpha::Blend_RGB32_on_RGB32_ConstAlpha ( quint32  alpha)
inline

Definition at line 573 of file qblendfunctions.cpp.

573  {
574  m_alpha = (alpha * 255) >> 8;
575  m_ialpha = 255 - m_alpha;
576  }

Functions

◆ flush()

void Blend_RGB32_on_RGB32_ConstAlpha::flush ( void *  )
inline

Definition at line 582 of file qblendfunctions.cpp.

582 {}

◆ write()

void Blend_RGB32_on_RGB32_ConstAlpha::write ( quint32 dst,
quint32  src 
)
inline

Definition at line 578 of file qblendfunctions.cpp.

578  {
579  *dst = BYTE_MUL(src, m_alpha) + BYTE_MUL(*dst, m_ialpha);
580  }
Q_STATIC_INLINE_FUNCTION uint BYTE_MUL(uint x, uint a)

Properties

◆ m_alpha

quint32 Blend_RGB32_on_RGB32_ConstAlpha::m_alpha

Definition at line 584 of file qblendfunctions.cpp.

◆ m_ialpha

quint32 Blend_RGB32_on_RGB32_ConstAlpha::m_ialpha

Definition at line 585 of file qblendfunctions.cpp.


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