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

Public Functions

 Blend_RGB16_on_RGB16_ConstAlpha (quint32 alpha)
 
void flush (void *)
 
void write (quint16 *dst, quint16 src)
 

Public Variables

quint32 m_alpha
 
quint32 m_ialpha
 

Detailed Description

Definition at line 95 of file qblendfunctions.cpp.

Constructors and Destructors

◆ Blend_RGB16_on_RGB16_ConstAlpha()

Blend_RGB16_on_RGB16_ConstAlpha::Blend_RGB16_on_RGB16_ConstAlpha ( quint32  alpha)
inline

Definition at line 96 of file qblendfunctions.cpp.

96  {
97  m_alpha = (alpha * 255) >> 8;
98  m_ialpha = 255 - m_alpha;
99  }

Functions

◆ flush()

void Blend_RGB16_on_RGB16_ConstAlpha::flush ( void *  )
inline

Definition at line 105 of file qblendfunctions.cpp.

105 {}

◆ write()

void Blend_RGB16_on_RGB16_ConstAlpha::write ( quint16 dst,
quint16  src 
)
inline

Definition at line 101 of file qblendfunctions.cpp.

101  {
102  *dst = BYTE_MUL_RGB16(src, m_alpha) + BYTE_MUL_RGB16(*dst, m_ialpha);
103  }
Q_STATIC_INLINE_FUNCTION uint BYTE_MUL_RGB16(uint x, uint a)

Properties

◆ m_alpha

quint32 Blend_RGB16_on_RGB16_ConstAlpha::m_alpha

Definition at line 107 of file qblendfunctions.cpp.

◆ m_ialpha

quint32 Blend_RGB16_on_RGB16_ConstAlpha::m_ialpha

Definition at line 108 of file qblendfunctions.cpp.


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