(svn r26255) -Codechange: improve performance of brightness adjustment (MJP)

This commit is contained in:
rubidium
2014-01-13 18:05:47 +00:00
parent 2f7c4f6d12
commit 70901e04c5
4 changed files with 21 additions and 22 deletions

View File

@@ -54,6 +54,12 @@ typedef union ALIGN(16) um128i {
}
#define INSR64(m_val, m_into, m_rank) (*(um128i*) &m_into).m128i_u64[m_rank] = (m_val)
#ifdef _SQ64
#define LOAD64(m_val, m_into) m_into = _mm_cvtsi64_si128(m_val);
#else
#define LOAD64(m_val, m_into) INSR64(m_val, m_into, 0)
#endif
/* PUT_ALPHA_IN_FRONT_OF_RGB is redefined in 32bpp_ssse3.hpp. */
#define PUT_ALPHA_IN_FRONT_OF_RGB(m_from, m_into) \
m_into = _mm_shufflelo_epi16(m_from, 0x3F); /* PSHUFLW, put alpha1 in front of each rgb1 */ \